/* Thinqee, shared base: reset, nav, footer, buttons, section primitives.
   Page-specific styles live in styles/<page>.css. Tokens in styles/tokens.css. */

*, *::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-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(249,115,22,0.3); color: var(--white); }
:focus-visible { outline: 2px solid var(--sunrise); 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(--golden);
}

/* ─── 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(15,5,0,0.8);
  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.2rem; color: var(--white); letter-spacing: -0.02em; }
.logo-mark {
  width: 20px; height: 20px; border-radius: 6px;
  background: linear-gradient(135deg, var(--sunrise), var(--golden));
  box-shadow: 0 0 14px rgba(249,115,22,0.4); flex-shrink: 0;
}
.nav-links { display: flex; gap: 26px; font-size: 0.85rem; 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(--golden); background: rgba(249,115,22,0.06); }
.btn-primary {
  background: linear-gradient(135deg, var(--sunrise), var(--golden));
  color: #fff; font-weight: 600; padding: 9px 18px; border-radius: 100px; font-size: 0.85rem;
  box-shadow: 0 4px 18px rgba(249,115,22,0.28); transition: transform .15s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(249,115,22,0.36); }
.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(15,5,0,0.97); 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); }
  .nav-cta .btn-ghost { display: none; }
}

/* ─── 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.05rem; line-height: 1.7; }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); padding: 60px 0 34px; background: rgba(10,3,0,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: 280px; }
.footer-promise strong { color: var(--peach); 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.75; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; }
.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 (reused across pages, page-specific CSS covers the rest) ─── */

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.text-link { display: inline-flex; gap: 7px; align-items: center; color: var(--sunrise); 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: the gradient text starts dim, then sweeps left to right into full
   color once on load, with a brief warm highlight riding the leading edge of the wipe. */
.accent {
  background-image: linear-gradient(90deg,
    var(--golden) 0%,
    #fde68a 27.5%,
    var(--sunrise) 50%,
    var(--cream) 53%,
    var(--plum) 58%,
    var(--plum) 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(249,115,22,0.14), 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.15; 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 (Trust & Privacy, About, Pricing footnotes, …) */
.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(--peach); 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; }
  /* Left/right alternation is a wide-screen-only device: stacked on mobile,
     the visual (stat card, phone, dashboard, ...) always goes above its
     copy, reverse sections included, so reading order stays visual-then-text. */
  .split-visual { order: -1; }
}

/* ─── FABULOUS TRIFECTA (venn diagram, shared by every trifecta page) ─── */
.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; }

/* Single description panel below the diagram, content crossfades by which
   circle is hovered/focused/tapped. Avoids positioning a floating tooltip
   near the circle itself, which is what broke on narrow screens. */
.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; }

/* The center pillar (Fabulous Leadership) is the default, always-on story: its
   statements rotate the moment the page loads. Hovering, focusing, or
   tapping one of the three outer circles swaps the content over to that
   pillar; leaving it reverts to the center by default (see the JS state
   machine that ships with each page's venn diagram, which always resolves
   to a key). */

/* Lead label (which pillar) plus the rotating "...because" statement, cycled
   in from JS: each new statement animates in, holds, fades, then the next
   one takes its place. The lead line reuses the same orange glow the circle
   itself gets on hover, so a text change reads as continuous with it. */
.venn-panel-lead {
  font: 700 0.72rem 'Inter', system-ui, sans-serif; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--golden);
}
.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(249,115,22,0); }
  45% { text-shadow: 0 0 14px rgba(249,115,22,0.65); }
  100% { text-shadow: 0 0 0 rgba(249,115,22,0); }
}
@media (max-width: 480px) {
  .venn-panel-quote { max-width: 32ch; font-size: 0.88rem; }
}

/* ─── PILLAR PROOF CARD (per-pillar stat callout, shared) ─── */
.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(249,115,22,0.12);
}
.pillar-icon img { width: 26px; height: 26px; }
.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(--golden), #fde68a 55%, var(--sunrise));
  -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; }

/* app screenshots, already cropped to the phone (its own bezel included) */
.phone {
  width: 250px; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-glow);
  align-self: center;
}
.phone img { width: 100%; height: auto; display: block; }
.phone-sm { width: 208px; border-radius: 20px; }
/* "peek": crop the tall screen so it rises from the section floor beside shorter copy */
.phone-peek { max-height: 440px; border-radius: 24px 24px 0 0; align-self: flex-end; }
.phone-peek img { border-radius: 24px 24px 0 0; }

/* ─── CHAT CARD (product-conversation mockup) ─── */
.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(--sunrise); box-shadow: 0 0 8px var(--sunrise); }
.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(--sunrise), var(--golden)); 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 STRIP ─── */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(30,10,0,0.5); }
.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(--peach); font-size: 0.85rem; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--border2); padding-bottom: 3px; margin-left: auto; }

/* ─── FABWISDOM CALLOUT ─── */
.fabwisdom { border-top: 1px solid var(--border); background: radial-gradient(ellipse at 50% 0%, rgba(249,115,22,0.1), transparent 58%); text-align: center; }
.fw-inner { max-width: 720px; margin: 0 auto; }
.fw-inner .eyebrow { display: block; margin-bottom: 14px; }
.fw-inner h2 { margin-bottom: 18px; }
.fw-angles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.fw-angles span {
  font-size: 0.78rem; font-weight: 600; color: var(--peach);
  border: 1px solid var(--border2); border-radius: 100px; padding: 7px 16px;
  background: rgba(249,115,22,0.06);
}

/* ─── DIMENSION CARD SCROLLER ─── */
.dimensions { border-top: 1px solid var(--border); }
.dim-scroller { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 4px 0 14px; }
.dim-scroller::-webkit-scrollbar { height: 4px; }
.dim-scroller::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.dim-track { display: flex; gap: 24px; padding: 0 24px; width: max-content; margin: 0 auto; }
.dim-card { width: 208px; flex-shrink: 0; scroll-snap-align: center; display: flex; flex-direction: column; gap: 14px; }
.dim-card figcaption { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.dim-card figcaption b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--golden); font-weight: 600; margin-bottom: 3px; }

/* ─── CUBE FACE CAROUSEL (the three ThinqShift Cube dimensions) ─── */
.cube-mark { width: min(480px, 100%); height: auto; filter: drop-shadow(0 12px 40px rgba(249,115,22,0.14)); }
.cube-face-wrap { margin-top: clamp(44px, 6vw, 72px); }
.face-carousel { position: relative; }
.face-track {
  display: flex; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.face-track::-webkit-scrollbar { display: none; }
.face-slide {
  flex: 0 0 100%; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.face-slide img {
  width: 100%; max-width: 860px; margin: 0 auto; height: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.face-slide figcaption { color: var(--muted); font-size: 0.88rem; text-align: center; }
.face-slide figcaption b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--golden); font-weight: 600; margin-bottom: 3px; }
@media (max-width: 620px) {
  .face-slide img { min-width: 480px; }
}
.face-nav {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card-solid); border: 1px solid var(--border2); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .2s, background .2s; z-index: 2;
}
.face-nav:hover { border-color: var(--sunrise); background: rgba(249,115,22,0.12); }
.face-nav.prev { left: -8px; }
.face-nav.next { right: -8px; }
@media (max-width: 700px) { .face-nav { display: none; } }
.face-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.face-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border2); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.face-dot.active { background: var(--sunrise); transform: scale(1.3); }

/* ─── CLOSING CTA ─── */
.cta { text-align: center; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(59,18,0,0.5)); }
.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; }
}

@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
