/* ==========================================================================
   APEX CX — site styles
   Quiet, editorial layout: Inter / Inter Tight, soft grey cards with hairline
   borders, compact 8px buttons, generous whitespace. Blue (#0860CC) is the
   only accent and is used sparingly.
   ========================================================================== */

:root {
  --blue: #0860CC;
  --blue-hover: #0753b3;
  --blue-soft: #EAF2FC;
  --black: #000000;
  --ink: #1F1F1F;
  --white: #FFFFFF;
  --bone: #E0E0DB;
  --panel: #FAFAFA;          /* card + panel fill */
  --line: #E6E6E9;           /* hairline borders */
  --line-strong: #D6D6DB;
  --ink-2: #55544E;          /* body grey (warm) */
  --ink-3: #8A8984;          /* captions */

  --font-head: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: var(--font-body);
  --font-serif: var(--font-head);

  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 136px;

  --max: 1240px;
  --gutter: 24px;
  --nav-h: 62px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-xs); z-index: 100; }
.skip:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding: var(--s6) 0 0; position: relative; }
.section:last-of-type { padding-bottom: var(--s6); }
.section--tight { padding-top: 96px; }
.section--white { background: var(--white); }
.section--bone { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 112px 0; margin-top: var(--s6); }
.section--bone + .section { padding-top: 112px; }

/* Faint dot grid, only where we ask for it */
.dots { position: relative; isolation: isolate; }
.dots::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin: 0; }
h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.12; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.18; letter-spacing: -0.02em; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
h4 { font-size: 17px; line-height: 1.4; }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}
.label--blue { color: var(--blue); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

h1, h2 { text-wrap: balance; }
.section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.section-head .label { display: none; }
.section-head .lede { margin: 16px auto 0; font-size: 16px; max-width: 34em; }
.section-head p { margin-top: 16px; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--left .lede { margin-left: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border-radius: var(--r-xs);
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: var(--white); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(8,96,204,.25); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--dark { background: linear-gradient(#2E2E2E, #0D0D0D); color: var(--white); }
.btn--dark:hover { background: linear-gradient(#3a3a3a, #161616); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--white { background: var(--blue); color: var(--white); }
.btn--white:hover { background: var(--blue-hover); }
.btn--ghost-white { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost-white:hover { border-color: var(--ink); }
.btn--sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 48px; padding: 0 28px; font-size: 15px; }
.btn .arrow { display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link-arrow { font-weight: 500; font-size: 15px; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 20px; pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: var(--max); margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 12px 0 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}
.brand { display: inline-flex; align-items: center; height: 40px; color: var(--ink); }
.brand svg { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px;
  font-size: 15px; font-weight: 500; color: var(--ink); border-radius: var(--r-xs);
  transition: background-color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--panel); }
.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; border-radius: var(--r-xs); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 1.6px; background: var(--ink); position: relative; transition: transform .25s var(--ease), background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  display: none; pointer-events: auto;
  max-width: var(--max); margin: 8px auto 0; padding: 10px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.06));
}
.mobile-menu a { display: block; padding: 13px 14px; font-size: 16px; font-weight: 500; border-radius: var(--r-xs); }
.mobile-menu a:hover { background: var(--panel); }
.mobile-menu .btn { width: 100%; margin-top: 8px; }
.nav-open .mobile-menu { display: block; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 110px) 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.hero h1 { max-width: 13em; }
.hero .lede { margin-top: 24px; max-width: 32em; }
.hero .btn-row { margin-top: 36px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.proof { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.proof-faces { display: flex; }
.proof-faces > * { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--white); margin-left: -10px; flex: none; object-fit: cover; }
.proof-faces > :first-child { margin-left: 0; }
.face { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--white); background: #2A2A2A; }
.face--blue { background: var(--blue); }
.face--grey { background: #8D8C86; }
.face--photo { overflow: hidden; background: #3A3A3A; position: relative; z-index: 1; }
.face--photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.proof p { font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* Pain-point card (hero right) */
.pain {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px -24px rgba(0,0,0,.14);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.pain-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
.pain-top .label { color: var(--ink-2); font-weight: 500; }
.pain-top .win { display: flex; gap: 6px; }
.pain-top .win i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.pain-count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pain-stage { position: relative; flex: 1; padding: 36px 32px 8px; min-height: 250px; }
.pain-slide {
  position: absolute; inset: 36px 32px 8px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
  display: flex; flex-direction: column;
}
.pain-slide.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; inset: auto; }
.pain-who { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; color: var(--ink-3); }
.pain-who .face { width: 28px; height: 28px; font-size: 11px; background: var(--bone); color: var(--ink-2); }
.pain-quote { font-family: var(--font-head); font-weight: 500; letter-spacing: -0.015em; font-size: clamp(22px, 2.1vw, 27px); line-height: 1.3; color: var(--ink); }
.pain-fix { margin-top: auto; padding-top: 28px; display: flex; gap: 12px; align-items: flex-start; }
.pain-fix .check { margin-top: 2px; }
.pain-fix .label { display: block; color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.pain-fix p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.pain-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 18px 32px; }
.pain-dots { display: flex; gap: 6px; }
.pain-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--line-strong); transition: width .3s var(--ease), background-color .3s; }
.pain-dots button[aria-selected="true"] { width: 22px; background: var(--ink); }
.pain-arrows { display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: var(--r-xs); border: 1px solid var(--line); background: var(--white); display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 14px; height: 14px; }

/* Check icon */
.check { width: 22px; height: 22px; flex: none; color: var(--blue); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 24px;
  transition: border-color .25s var(--ease);
}
.card--white { background: var(--white); }
.card--bone { background: var(--panel); }
.card--blue { background: var(--panel); }
.card--hover:hover { border-color: var(--line-strong); }
.card .num { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 20px; }
.card .check { margin-bottom: 36px; }
.card h3 + p, .card h4 + p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* Feature grid (homepage) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.features .card { min-height: 230px; }
.section-cta { text-align: center; margin-top: 40px; }
.section-cta p { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }

/* ---------- Resources (guides + assessment) ---------- */
.resources { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.resource {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .25s var(--ease);
}
.resource:hover { border-color: var(--line-strong); }
.resource-body { padding: 28px 28px 0; }
.resource-body p { margin-top: 8px; color: var(--ink-2); font-size: 15px; max-width: 30em; }
.resource-body .link-arrow { margin-top: 20px; }
.resource-art { margin-top: 28px; height: 300px; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.resource-art img { transition: transform .6s var(--ease); }
.resource:hover .resource-art img { transform: translateY(-6px); }
.art-claude { background: linear-gradient(180deg, #F6F2EC, #EFE8DE); align-items: flex-start; }
.art-claude img { width: 72%; max-width: none; margin-top: -6%; filter: drop-shadow(0 24px 30px rgba(60,30,10,.18)); }
.art-chatgpt { background: linear-gradient(180deg, #EEF1F5, #E3E8EF); }
.art-chatgpt img { width: 46%; margin-bottom: -18%; border-radius: 4px; box-shadow: 0 30px 50px -20px rgba(10,25,50,.45); }
.resource--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch; }
.resource--wide .resource-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.resource--wide .resource-art { margin: 0; height: auto; min-height: 320px; background: var(--white); border-left: 1px solid var(--line); align-items: center; padding: 32px; }

/* Assessment result preview (looks like the real results screen) */
.preview { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 20px 40px -24px rgba(0,0,0,.18); }
.preview-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.preview-top .label { display: block; margin-bottom: 4px; }
.preview-score { font-family: var(--font-head); font-weight: 600; font-size: 52px; line-height: 1; letter-spacing: -0.03em; }
.preview-score small { font-size: 18px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.preview-level { font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); }
.preview-bars { display: grid; gap: 12px; margin-top: 18px; }
.preview-bars div { display: grid; grid-template-columns: 1fr 120px 28px; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.preview-bars i { display: block; height: 6px; border-radius: 99px; background: #EDEDEF; position: relative; overflow: hidden; }
.preview-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); border-radius: 99px; }
.preview-bars .gap { color: var(--blue); font-weight: 500; }
.preview-bars .gap i::after { background: var(--blue); }
.preview-bars b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

/* Legacy product cards (kept for inner pages) */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.product-art { aspect-ratio: 4 / 3; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-art--bone { background: #F2F2F0; }
.product-art--black { background: #111; }
.product-art--blue { background: var(--blue); }
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-body p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.product-body .link-arrow { margin-top: auto; padding-top: 20px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service { display: flex; flex-direction: column; padding: 32px 28px; }
.service h3 { font-size: 21px; }
.service .num { margin-bottom: 8px; color: var(--blue); }
.service > p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.service ul { list-style: none; padding: 20px 0 0; margin: 20px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.service li { position: relative; padding-left: 28px; color: var(--ink); font-size: 15px; }
.service li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230860CC' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='m8 12.4 2.7 2.6L16 9.6'/%3E%3C/svg%3E");
}
.service .service-foot { margin-top: auto; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.service .fit { font-size: 13px; color: var(--ink-3); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: center; }
.founder-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: #5D5D5D; border: 1px solid var(--line); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.32); transform-origin: 50% 36%; }
.founder-copy h2 { max-width: 15em; }
.founder-copy p { color: var(--ink-2); margin-top: 16px; max-width: 36em; }
.founder-copy .btn-row { margin-top: 32px; }
.pull { font-family: var(--font-head); font-weight: 600; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.pull cite { display: block; margin-top: 16px; font-style: normal; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); font-family: var(--font-body); }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--white); font-size: 13px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.facts div { padding: 20px 20px 0 0; }
.facts strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.facts > div > span { font-size: 13px; color: var(--ink-3); }
.facts strong span { font: inherit; color: inherit; font-variant-numeric: tabular-nums; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.testimonial { margin: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.testimonial .tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; margin-bottom: 20px; }
.testimonial blockquote { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink); }
.testimonial--feature { background: var(--white); }
.testimonial .who { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #2A2A2A; color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: none; }
.who strong { display: block; font-size: 14px; font-weight: 600; }
.who span { font-size: 13px; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 4px; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231F1F1F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer { padding: 0 4px 22px; color: var(--ink-2); max-width: 44em; font-size: 15px; }
.faq .answer a { color: var(--blue); }

/* ---------- CTA panel ---------- */
.cta-band {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 72px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band > * { position: relative; }
.cta-band .label { display: none; }
.cta-band h2 { max-width: 16em; margin: 0 auto; }
.cta-band p { color: var(--ink-2); max-width: 34em; margin: 16px auto 0; font-size: 16px; }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }
.cta-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; text-align: left; }
.cta-split h2 { margin: 0; }
.cta-split p { margin: 0; }
.cta-split .btn-row { justify-content: flex-start; margin-top: 24px; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 40px; border-top: 1px solid var(--line); background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand svg { height: 22px; }
.footer p { color: var(--ink-2); font-size: 14px; margin-top: 16px; max-width: 26em; }
.footer h5 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--ink-2); }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-3); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + 110px) 0 0; }
.page-hero h1 { max-width: 14em; }
.page-hero .lede { margin-top: 24px; }
.page-hero .btn-row { margin-top: 32px; }
.guide-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.guide-hero-art { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; display: flex; align-items: flex-end; justify-content: center; }
.guide-hero-art.art-claude { align-items: center; }
.guide-hero-art.art-claude img { width: 92%; margin: 0; }
.guide-hero-art.art-chatgpt { align-items: center; }
.guide-hero-art.art-chatgpt img { width: 56%; margin: 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* Section list (guide contents) */
.toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line); padding: 0; margin: 0; }
.toc li { list-style: none; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.toc ol { padding: 0; margin: 0; display: contents; }
.toc .n { font-size: 13px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc .t { font-weight: 500; }
.toc .m { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* About: principles */
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 64px 1fr 1.4fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.principle .num { font-size: 13px; font-weight: 500; color: var(--ink-3); padding-top: 6px; }
.principle h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.015em; }
.principle-body p + p { margin-top: 16px; }
.principle-body p { color: var(--ink-2); }

/* ---------- Reveal animations (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .06s; } .reveal-d2 { transition-delay: .12s; } .reveal-d3 { transition-delay: .18s; }
.reveal.reveal-now { transition: none; animation: fadeUp .8s var(--ease) both; }
.reveal-now.reveal-d1 { animation-delay: .06s; } .reveal-now.reveal-d2 { animation-delay: .12s; } .reveal-now.reveal-d3 { animation-delay: .18s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.reveal-now { opacity: 1; transform: none; transition: none; animation: none; }
  .pain-slide { transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  :root { --s6: 104px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .hero-grid, .guide-hero, .founder, .cta-split { grid-template-columns: 1fr; gap: 48px; }
  .founder-photo { max-width: 360px; }
  .founder[style] { grid-template-columns: 1fr !important; }
  .features, .products, .testimonials { grid-template-columns: 1fr 1fr; }
  .resource--wide { grid-template-columns: 1fr; }
  .resource--wide .resource-art { border-left: 0; border-top: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .testimonials > :first-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
  .principle { grid-template-columns: 48px 1fr; }
  .principle-body { grid-column: 2; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --s6: 88px; }
  .section--bone { padding: 80px 0; }
  .section--bone + .section { padding-top: 88px; }
  .nav { padding-left: 16px; }
  .hero { padding-top: calc(var(--nav-h) + 64px); }
  .page-hero { padding-top: calc(var(--nav-h) + 64px); }
  .pain-stage { padding: 28px 22px 8px; min-height: 320px; }
  .pain-slide { inset: 28px 22px 8px; }
  .pain-nav { padding-left: 22px; }
  .section-head { margin-bottom: 40px; }
  .features, .grid-2, .grid-3, .grid-4, .services, .products, .resources, .testimonials, .toc { grid-template-columns: 1fr; }
  .resource--wide, .testimonials > :first-child { grid-column: auto; }
  .resource-art { height: 260px; }
  .resource--wide .resource-body { padding: 28px 24px; }
  .resource--wide .resource-art { padding: 20px; min-height: 0; }
  .preview-bars div { grid-template-columns: 1fr 80px 24px; }
  .card, .service, .testimonial { padding: 24px 20px; }
  .features .card { min-height: 0; }
  .facts strong { font-size: 24px; }
  .principle { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .principle-body { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   MOTION & COLOUR LAYER
   Deep-navy "night" panels with neon brand-blue artwork, word-by-word
   headline reveals, a 3D grid floor, floating chips, a tool marquee,
   an animated system flow and animated service illustrations.
   Everything here stops under prefers-reduced-motion.
   ========================================================================== */
:root {
  --night: #050B1F;
  --night-2: #0A1838;
  --neon: #3B8BFF;
  --neon-2: #7CC4FF;
  --ember: #FF8A3D;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--neon-2)); }

/* Richer reveal: blur + rise */
.reveal { filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
.reveal.is-in { filter: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Word-by-word headline */
.split .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.4em) scale(.97); animation: wordIn .9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wordIn { to { opacity: 1; filter: none; transform: none; } }
.hl { color: var(--blue); }
.no-js .split .w { opacity: 1; filter: none; transform: none; }

/* Buttons: tactile */
.btn { transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease-out), transform .15s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px -8px rgba(8,96,204,.65); transform: translateY(-1px); }

/* ---------- Hero FX ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 120px; }
.hero.dots::before { display: none; }
.hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-fx::before { /* square grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(10,30,80,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(10,30,80,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
}
.hero-glow { position: absolute; width: 900px; height: 900px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,139,255,.30) 0%, rgba(124,196,255,.16) 35%, transparent 68%);
  animation: breathe 7s ease-in-out infinite; }
.hero-glow--2 { left: -380px; right: auto; top: 260px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(255,138,61,.12), transparent 65%); animation-delay: -3s; }
@keyframes breathe { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.hero-floor { position: absolute; left: -25%; right: -25%; bottom: -10px; height: 300px; perspective: 520px; perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 95%); mask-image: linear-gradient(to top, #000 10%, transparent 95%); }
.hero-floor::before { content: ""; position: absolute; inset: 0 0 -200px; transform: rotateX(72deg); transform-origin: 50% 0;
  background-image: linear-gradient(rgba(8,96,204,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(8,96,204,.35) 1px, transparent 1px);
  background-size: 64px 64px; animation: floorMove 3.5s linear infinite; }
@keyframes floorMove { to { background-position: 0 64px; } }

/* Floating chips around the carousel */
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 8% -6% -4% 6%; z-index: -1; border-radius: 40px; background: linear-gradient(135deg, rgba(8,96,204,.35), rgba(124,196,255,.25) 50%, rgba(255,138,61,.22)); filter: blur(40px); animation: breathe 8s ease-in-out infinite; }
.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; white-space: nowrap;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line);
  box-shadow: 0 12px 30px -12px rgba(5,11,31,.25); animation: bob 6s ease-in-out infinite; }
.float-chip--a { top: -22px; left: -34px; }
.float-chip--b { bottom: -22px; right: -26px; animation-duration: 7s; animation-delay: -2s; background: var(--night); color: #fff; border-color: rgba(255,255,255,.1); }
.float-chip .check { width: 18px; height: 18px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; flex: none; }
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.8); opacity: 0; } }
.pain { z-index: 2; }

/* ---------- Tool marquee ---------- */
.marquee { padding: 8px 0 0; }
.marquee-label { text-align: center; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.marquee-mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tool { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 6px 16px -10px rgba(5,11,31,.2); font-weight: 500; font-size: 15px; white-space: nowrap; }
.tool i { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; font-weight: 700; color: #fff; background: var(--c, #222); }

/* ---------- Night panels (shared) ---------- */
.night { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #fff; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.06); }
.night::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.4px), radial-gradient(rgba(124,196,255,.4) 1px, transparent 1.4px);
  background-size: 120px 120px, 190px 190px; background-position: 0 0, 60px 90px; opacity: .45; animation: drift 80s linear infinite; }
.night::after { content: ""; position: absolute; z-index: -1; width: 120%; height: 140%; left: -10%; top: 30%; background: radial-gradient(ellipse at 50% 50%, rgba(8,96,204,.55), transparent 60%); animation: breathe 8s ease-in-out infinite; }
@keyframes drift { to { background-position: 520px -420px, 580px -330px; } }
.night h2, .night h3 { color: #fff; }
.night p { color: rgba(255,255,255,.72); }
.kicker--light { color: rgba(255,255,255,.6); }
.kicker--light::before { background: var(--neon-2); box-shadow: 0 0 10px var(--neon); }

/* ---------- System flow ---------- */
.flow { padding: 48px 40px 44px; margin-bottom: 24px; }
.flow-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.flow-head h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; margin-top: 10px; max-width: 18em; }
.flow-head p { font-size: 14px; max-width: 26em; }
.flow-track { display: grid; grid-template-columns: repeat(11, auto); grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr 40px 1fr 40px 1fr; align-items: center; }
.node { --T: 6s; position: relative; text-align: center; padding: 18px 8px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(124,196,255,.18); transition: border-color .3s; animation: nodeGlow var(--T) ease-out infinite; animation-delay: calc(var(--i) * 1s); }
.node-ico { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(59,139,255,.35), rgba(8,96,204,.15)); border: 1px solid rgba(124,196,255,.35); color: var(--neon-2); }
.node-ico svg { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(124,196,255,.8)); }
.node b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.node small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.55); }
@keyframes nodeGlow { 0% { border-color: rgba(124,196,255,.9); box-shadow: 0 0 0 1px rgba(124,196,255,.5), 0 0 34px rgba(59,139,255,.55); background: rgba(59,139,255,.16); } 18%, 100% { border-color: rgba(124,196,255,.18); box-shadow: none; background: rgba(255,255,255,.04); } }
.link { position: relative; height: 2px; background: rgba(124,196,255,.2); border-radius: 2px; overflow: visible; }
.link::after { content: ""; position: absolute; top: 50%; left: 0; width: 14px; height: 6px; margin-top: -3px; border-radius: 6px; background: #fff; box-shadow: 0 0 12px 3px var(--neon), 0 0 4px #fff; opacity: 0;
  animation: pulseRun 6s linear infinite; animation-delay: calc(var(--i) * 1s + .35s); }
@keyframes pulseRun { 0% { left: -4px; opacity: 1; } 10% { left: calc(100% - 10px); opacity: 1; } 11%, 100% { left: calc(100% - 10px); opacity: 0; } }

/* ---------- Spotlight + lift on cards ---------- */
.card, .resource { position: relative; }
.features .card, .service, .resource { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s; }
.features .card:hover, .service:hover, .resource:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(5,11,31,.35); }
.features .card::after, .service::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(8,96,204,.10), transparent 60%); }
.features .card:hover::after, .service:hover::after { opacity: 1; }
.features .card .check { width: 40px; height: 40px; padding: 9px; border-radius: 11px; color: #fff; background: linear-gradient(160deg, #3B8BFF, #0860CC); box-shadow: 0 8px 20px -8px rgba(8,96,204,.8); margin-bottom: 28px; transition: transform .4s var(--ease-out); }
.features .card:hover .check { transform: rotate(-8deg) scale(1.08); }

/* ---------- Resource art: bold + tilt ---------- */
.resource-art { perspective: 900px; }
.art-claude { background: radial-gradient(circle at 50% 75%, rgba(255,138,61,.75), rgba(255,138,61,0) 55%), linear-gradient(180deg, #1A1030, #0B0718); }
.art-chatgpt { background: radial-gradient(circle at 50% 80%, rgba(59,139,255,.8), rgba(59,139,255,0) 55%), linear-gradient(180deg, #071A3D, #040B1C); }
.art-claude img { filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.art-chatgpt img { box-shadow: 0 30px 60px -16px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }
.resource-art img { transition: transform .6s var(--ease-out); }
.resource:hover .resource-art img { transform: translateY(-10px) rotate(-1.5deg) scale(1.02); }
.resource--wide .resource-art { background: radial-gradient(circle at 70% 30%, rgba(124,196,255,.55), transparent 50%), linear-gradient(135deg, #0860CC, #06327A); border-left: 0; }
.preview { transition: transform .5s var(--ease-out); transform-style: preserve-3d; }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.preview-bars i::after { width: 0; transition: width 1.3s var(--ease-out); }
.is-on .preview-bars i::after { width: var(--w); }
.is-on .preview-bars div:nth-child(2) i::after { transition-delay: .1s; } .is-on .preview-bars div:nth-child(3) i::after { transition-delay: .2s; }
.is-on .preview-bars div:nth-child(4) i::after { transition-delay: .3s; } .is-on .preview-bars div:nth-child(5) i::after { transition-delay: .4s; }

/* ---------- Service illustrations ---------- */
.service { padding-top: 0; overflow: hidden; }
.service-art { margin: 0 -28px 28px; height: 170px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, rgba(8,96,204,.75), transparent 60%), linear-gradient(180deg, #071233, #040A1E); border-bottom: 1px solid var(--line); }
.service-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(124,196,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(124,196,255,.08) 1px, transparent 1px); background-size: 24px 24px; }
.service-art svg { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(59,139,255,.75)); }
.service-art * { animation-play-state: paused !important; }
.service-art.is-on * { animation-play-state: running !important; }
.sv-stroke { fill: rgba(59,139,255,.10); stroke: var(--neon); stroke-width: 1.5; }
.sv-fill { fill: rgba(124,196,255,.35); }
.sv-hot { fill: var(--neon-2); }
.sv-ember { fill: var(--ember); filter: drop-shadow(0 0 6px rgba(255,138,61,.9)); }
.sv-line { fill: none; stroke: var(--neon-2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sv-anim { transform-box: fill-box; }
/* audit: scanning magnifier + lines lighting up */
.mag { animation: scan 6s var(--ease) infinite; transform-box: view-box; }
@keyframes scan { 0%, 100% { transform: translate(-70px, -14px); } 33% { transform: translate(0, 10px); } 66% { transform: translate(-40px, 34px); } }
.scanline { animation: lineLit 6s ease-in-out infinite; }
@keyframes lineLit { 0%, 100% { fill: rgba(124,196,255,.3); } 40%, 60% { fill: #7CC4FF; } }
/* build: blocks drop and stack */
.blk { transform-box: fill-box; animation: drop 6s var(--ease-out) infinite; opacity: 0; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-70px); } 12%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }
/* workshop: bars grow, line draws */
.bar-g { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 6s var(--ease-out) infinite; }
@keyframes grow { 0% { transform: scaleY(.08); } 30%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.08); } }
.draw { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 6s var(--ease-out) infinite; }
@keyframes draw { 0%, 15% { stroke-dashoffset: 260; } 50%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 260; } }
/* advisory: bubbles pop, typing dots */
.bub { transform-box: fill-box; transform-origin: 0 100%; animation: pop 6s var(--ease-out) infinite; }
.bub--r { transform-origin: 100% 100%; }
@keyframes pop { 0% { transform: scale(0); opacity: 0; } 10%, 88% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
.tdot { transform-box: fill-box; animation: typing 1.2s ease-in-out infinite; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ---------- Founder ring ---------- */
.ring { position: relative; padding: 4px; border-radius: 21px; overflow: hidden; isolation: isolate; }
.ring::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from var(--ang), transparent 0deg, var(--neon) 60deg, var(--neon-2) 110deg, transparent 160deg, transparent 200deg, var(--ember) 260deg, transparent 320deg); animation: spin 6s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }
.ring .founder-photo { border: 0; border-radius: 17px; }
.ring-glow { position: absolute; inset: 10% -8% -8%; z-index: -2; background: radial-gradient(circle, rgba(8,96,204,.45), transparent 65%); filter: blur(30px); }
.founder-media { position: relative; isolation: isolate; }

/* ---------- Testimonials: lift ---------- */
.testimonial { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.testimonial:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(5,11,31,.3); }

/* ---------- CTA: night ---------- */
.cta-band { background: var(--night); color: #fff; border: 1px solid rgba(255,255,255,.06); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.4px), radial-gradient(rgba(124,196,255,.4) 1px, transparent 1.4px); background-size: 120px 120px, 190px 190px; background-position: 0 0, 60px 90px; opacity: .5; animation: drift 80s linear infinite; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 110%; height: 160%; left: -5%; top: 35%; background: radial-gradient(ellipse at 50% 50%, rgba(8,96,204,.7), transparent 60%); animation: breathe 8s ease-in-out infinite; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.75); }
.cta-band .btn--secondary, .cta-band .btn--ghost-white { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.25); }
.cta-band .btn--secondary:hover, .cta-band .btn--ghost-white:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* ---------- Inner page heroes get the glow too ---------- */
.page-hero { position: relative; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 800px; height: 800px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(59,139,255,.22), transparent 65%); animation: breathe 7s ease-in-out infinite; pointer-events: none; }
.guide-hero-art.art-claude, .guide-hero-art.art-chatgpt { border: 0; box-shadow: 0 40px 80px -40px rgba(5,11,31,.55); }
.guide-hero-art img { animation: bob 7s ease-in-out infinite; }

/* ---------- Responsive + reduced motion ---------- */
@media (max-width: 1020px) {
  .flow-track { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .flow-track .link { display: none; }
  .float-chip--a { left: 8px; } .float-chip--b { right: 8px; }
}
@media (max-width: 720px) {
  .flow { padding: 32px 20px; }
  .flow-track { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-art { margin: 0 -20px 24px; height: 150px; }
  .hero-floor { height: 200px; }
  .hero-glow { width: 600px; height: 600px; right: -300px; }
  .float-chip { font-size: 12px; padding: 7px 11px; }
  .float-chip--a { top: -18px; left: 6px; } .float-chip--b { bottom: -18px; right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .split .w { opacity: 1; filter: none; transform: none; animation: none; }
  .reveal { filter: none; }
  .hero-glow, .hero-floor::before, .hero-visual::before, .float-chip, .live::after, .marquee-track, .night::before, .night::after, .node, .link::after,
  .ring::before, .cta-band::before, .cta-band::after, .page-hero::before, .guide-hero-art img, .service-art *, .scroll-progress { animation: none !important; }
  .blk { opacity: 1; } .draw { stroke-dashoffset: 0; } .bar-g { transform: none; }
  .preview-bars i::after { width: var(--w); transition: none; }
}
.grid .card { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s; }
.grid .card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(5,11,31,.35); }
.toc li { transition: padding-left .3s var(--ease-out), color .2s; }
.toc li:hover { padding-left: 8px; }
.toc li:hover .n { color: var(--blue); }

/* ==========================================================================
   ROUND 3: hero video, bigger headline, stars, photo slots, newsletter
   ========================================================================== */
.hero-h1 { font-size: clamp(46px, 6.4vw, 86px); line-height: 1.04; letter-spacing: -0.035em; max-width: 10.5em; }
.hero-grid { grid-template-columns: 1.15fr .85fr; }

/* Hero video (vertical-friendly 4:5 frame) */
.vid { position: relative; z-index: 2; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--night);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 40px 80px -36px rgba(5,11,31,.55); border: 1px solid rgba(255,255,255,.08); }
.vid video, .vid-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-poster { object-position: 50% 30%; transform: scale(1.25); transform-origin: 50% 35%; }
.vid video { opacity: 0; transition: opacity .6s var(--ease-out); }
.vid.has-video video { opacity: 1; }
.vid::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(5,11,31,.75)); }
.vid-caption { position: absolute; left: 20px; bottom: 18px; z-index: 2; color: #fff; display: grid; line-height: 1.3; }
.vid-caption strong { font-size: 16px; }
.vid-caption span { font-size: 13px; color: rgba(255,255,255,.75); }
.vid-sound { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(5,11,31,.45); color: #fff; display: inline-flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .2s, transform .2s var(--ease-out); }
.vid-sound:hover { background: rgba(8,96,204,.8); transform: scale(1.06); }
.vid-sound svg { width: 20px; height: 20px; }
.vid-sound .wave { display: none; } .vid.is-unmuted .vid-sound .wave { display: inline; } .vid.is-unmuted .vid-sound .mute { display: none; }
.vid-dots { position: absolute; top: 14px; left: 16px; right: 16px; z-index: 3; display: flex; gap: 6px; }
.vid-dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.vid-dots i b { position: absolute; inset: 0; width: 0; background: #fff; }
.vid-dots i.done b { width: 100%; }

/* Pain carousel as its own section */
.pain-wrap { max-width: 820px; margin: 0 auto; }
.pain-wrap .pain { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 30px 60px -30px rgba(8,96,204,.35); }

/* Guide videos (replace the cover image once loaded) */
.resource-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease-out); }
.resource-art.has-video video { opacity: 1; }
.resource-art.has-video img { opacity: 0; }

/* Photo slots (tool icons, client avatars) */
.tool i, .avatar { position: relative; overflow: hidden; }
.tool i img, .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tool i.has-photo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tool i.has-photo img { object-fit: contain; padding: 4px; }
.avatar { width: 48px; height: 48px; }

/* Stars */
.t-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.t-top .tag { margin: 0; }
.stars { display: inline-flex; gap: 2px; color: #F5A623; }
.stars svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(245,166,35,.35)); }

/* Founder photo: clean, no ring */
.founder-media { position: relative; }
.founder-media .founder-photo { border: 0; box-shadow: 0 40px 80px -40px rgba(5,11,31,.55); }
.photo-chip { position: absolute; right: -18px; bottom: 28px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px -14px rgba(5,11,31,.3); animation: bob 6s ease-in-out infinite; }
.photo-chip .check { width: 18px; height: 18px; }

/* Newsletter */
.news { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-lg);
  background: radial-gradient(circle at 100% 0%, rgba(124,196,255,.35), transparent 45%), radial-gradient(circle at 0% 100%, rgba(255,138,61,.14), transparent 45%), var(--panel); border: 1px solid var(--line); }
.news h2 { margin-top: 14px; }
.news-copy p { color: var(--ink-2); margin-top: 14px; max-width: 30em; }
.news-form { display: grid; gap: 12px; }
.news-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.news-form input { height: 50px; padding: 0 16px; font: inherit; font-size: 15px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
.news-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,96,204,.15); }
.news-form .btn { width: 100%; }
.news-msg { font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.news-msg.ok { color: #1E8E5A; font-weight: 500; }
.news-msg.err { color: #B00020; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .news { grid-template-columns: 1fr; gap: 28px; }
  .photo-chip { right: 8px; }
}
@media (max-width: 720px) {
  .news-fields { grid-template-columns: 1fr; }
  .hero-h1 { font-size: clamp(40px, 11vw, 52px); }
}
@media (prefers-reduced-motion: reduce) { .photo-chip { animation: none; } }
.guide-hero-art { position: relative; }
.guide-hero-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease-out); }
.guide-hero-art.has-video video { opacity: 1; }
.guide-hero-art.has-video img { opacity: 0; }
.vid-sound[hidden] { display: none; }
/* Real tool icons */
.tool i.has-photo { background: transparent; box-shadow: none; border-radius: 8px; }
.tool i.has-photo img { object-fit: contain; padding: 0; }
.avatar.has-photo { background: #ddd !important; }
/* Guide videos are 4:5 (1080x1350): show the whole frame */
.resource-art[data-video] { height: auto; aspect-ratio: 4 / 5; margin-top: 24px; }
.resource-art[data-video] video { object-fit: cover; }
.resource-art[data-video] img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
.resource:hover .resource-art[data-video] img { transform: translate(-50%, -54%); }
.art-claude[data-video] img { width: 92%; }
.art-chatgpt[data-video] img { width: 70%; }
.guide-hero-art[data-video] { aspect-ratio: 4 / 5; max-width: 520px; justify-self: end; width: 100%; }
@media (max-width: 1020px) { .guide-hero-art[data-video] { justify-self: start; } }
/* Hero video: no photo; two stacked players cross-fade */
.vid video { opacity: 0; transition: opacity .35s ease; }
.vid video.is-active { opacity: 1; }
.vid.has-video video:not(.is-active) { opacity: 0; }

/* ---------- Claude guide page: Claude orange instead of brand blue (page content only, nav stays blue) ---------- */
.page-claude main { --blue: #D97757; --blue-hover: #C6613F; --blue-soft: #FBEEE8; }
.page-claude main .btn--primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(217,119,87,.3); }
.page-claude main .btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px -8px rgba(217,119,87,.7); }
