:root { --ink: #0b111c; --ink2: #121a28; --line: #243045; --text: #e8ecf3; --muted: #9aa6b8; --accent: #d9a441; --accent2: #f0c46a; --paper: #f4f2ed; --paperink: #1a2130;
  --ui: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; --serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: var(--accent2); }
img { display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.nav { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: linear-gradient(rgba(11,17,28,.85), rgba(11,17,28,0)); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .22em; font-size: 14px; }
.brand img { width: 40px; }
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a { color: #cfd6e2; text-decoration: none; font-size: 14px; }
.nav nav a:hover { color: #fff; }
.nav-cta { border: 1px solid rgba(255,255,255,.35); padding: 7px 14px; border-radius: 999px; }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 60% center; filter: saturate(.85); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,17,28,.96) 0%, rgba(11,17,28,.82) 42%, rgba(11,17,28,.25) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 25%); }
.hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 120px 28px 80px; width: 100%; }
.kicker { color: var(--accent); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; margin: 0 0 14px; }
.hero h1 { margin: 0; font: 900 clamp(52px, 9vw, 112px)/.95 var(--ui); letter-spacing: .04em; }
.sub { font: italic 400 clamp(20px, 2.4vw, 28px)/1.3 var(--serif); color: #d7dce6; margin: 14px 0 26px; }
.lede { max-width: 560px; color: #c3cbd8; font-size: 18.5px; margin: 0 0 34px; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 16px; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #17120a; }
.btn.primary:hover { background: var(--accent2); }
.btn.ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn.big { padding: 17px 34px; font-size: 18px; margin-top: 8px; }

.band { padding: 110px 0; }
.band h2, .split h2 { font: 800 clamp(30px, 4vw, 44px)/1.15 var(--ui); margin: 0 0 18px; letter-spacing: -.01em; }
.intro { color: var(--muted); font-size: 19px; max-width: 700px; margin: 0 0 48px; }
.center .intro { margin-left: auto; margin-right: auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards article { background: var(--ink2); border: 1px solid var(--line); border-radius: 12px; padding: 30px 28px; }
.cards h3 { margin: 10px 0 10px; font-size: 21px; }
.cards p { margin: 0; color: var(--muted); font-size: 16px; }
.num { color: var(--accent); font: 700 14px var(--ui); letter-spacing: .15em; }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; background: var(--ink2); border-block: 1px solid var(--line); }
.split-img { background-size: cover; background-position: center; }
.split-text { padding: 90px 60px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 16px; color: #c3cbd8; }
.checks li::before { content: ''; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border: 2px solid var(--accent); transform: rotate(45deg); }
.checks b { color: #fff; }

.dark { background: #070b13; }
blockquote { margin: 0; font: italic 400 clamp(22px, 2.8vw, 30px)/1.45 var(--serif); color: #e4e8ef; }
.cite { color: var(--accent); margin-top: 22px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.fine { color: var(--muted); font-size: 14px; margin-top: 22px; }

.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-row span:first-child { display: flex; align-items: center; gap: 10px; }
.foot-row img { width: 28px; }
.foot a { color: var(--muted); }
.disclaimer { font-size: 12.5px; opacity: .7; margin-top: 14px; }

.doc { max-width: 760px; margin: 0 auto; padding: 130px 28px 80px; }
.doc h1 { font-size: 38px; margin: 0 0 6px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc p, .doc li { color: #c3cbd8; }
.doc .updated { color: var(--muted); font-size: 14px; }

@media (max-width: 820px) {

  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-img { min-height: 260px; }
  .split-text { padding: 60px 28px; }
  .band { padding: 80px 0; }
  .hero::after { background: linear-gradient(0deg, rgba(11,17,28,.97) 30%, rgba(11,17,28,.6) 100%); }
}

/* ---- v2: Griggs Labs site ---- */
.nav nav { gap: 22px; }
.nav nav a.on { color: #fff; }
.nav-signin { color: #cfd6e2; }
.nav-cta { background: var(--accent); color: #17120a !important; border: 0; font-weight: 700; }
.nav-cta:hover { background: var(--accent2); }
.dd { position: relative; }
.dd-btn { background: none; border: 0; color: #cfd6e2; font: 14px var(--ui); cursor: pointer; padding: 6px 0; }
.dd-btn:hover, .dd:hover .dd-btn, .dd.open .dd-btn { color: #fff; }
.caret { font-size: 10px; opacity: .7; }
.dd-menu { position: absolute; top: 100%; left: -16px; min-width: 300px; margin-top: 8px; padding: 8px; background: #1a263c; border: 1px solid #3a4b68; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; }
.dd-menu::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a, .dd-soon { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.dd-menu a:hover { background: #24324d; }
.dd-menu b { color: #fff; font-size: 14px; letter-spacing: .04em; }
.dd-menu span { color: var(--muted); font-size: 13px; }
.dd-soon { opacity: .45; cursor: default; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; border-radius: 0; }

.hero .h-big { margin: 0; font: 800 clamp(34px, 4vw, 54px)/1.1 var(--ui); letter-spacing: -.015em; max-width: 980px; }
.hero .h-big span { color: var(--accent2); }
.hero .lede { margin-top: 24px; }
.big-p { font-size: 20px; color: #c9d0dc; margin: 0 0 20px; line-height: 1.65; }
.big-p b { color: #fff; }
.tint { background: var(--ink2); border-block: 1px solid var(--line); }
.split-text p { color: #c3cbd8; }
.split-text .btn { margin-top: 10px; }
.text-link { color: var(--accent2); font-weight: 700; text-decoration: none; display: inline-block; margin-top: 8px; }
.split.reverse .split-img { order: 2; }
.kicker + h2 { margin-top: 0; }

.products { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; margin-top: 40px; }
.product { display: flex; flex-direction: column; background: var(--ink2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.product:hover { transform: translateY(-2px); border-color: #3a4a66; }
.product-img { height: 240px; background-size: cover; background-position: center; }
.product-body { padding: 26px 28px 30px; }
.product h3 { margin: 8px 0 10px; font-size: 22px; color: #fff; }
.product p { color: var(--muted); margin: 0 0 6px; }
.product p b { color: #dfe4ec; }
.product.soon { opacity: .6; }
.tag { color: var(--accent); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; align-items: stretch; }
.price { position: relative; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; display: flex; flex-direction: column; }
.price h3 { margin: 0; font-size: 18px; color: #dfe4ec; }
.price .amt { font: 800 46px/1 var(--ui); margin: 14px 0 14px; color: #fff; }
.price .amt small { font-size: 16px; font-weight: 500; color: var(--muted); }
.price p { color: var(--muted); font-size: 15.5px; flex: 1; margin: 0 0 20px; }
.price .btn { text-align: center; }
.price.feature { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #17120a; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: '+'; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 12px 0 0; }

.story h1 { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.15; margin: 0 0 22px; }
.story .lead { font-size: 21px; color: #dfe4ec; }
.story p, .story li { font-size: 18px; line-height: 1.7; }
.story h2 { font-size: 25px; margin-top: 50px; }
.story figure.wide { margin: 40px -60px; }
.story figure img { width: 100%; border-radius: 12px; }
.story .sig { margin-top: 40px; font-weight: 700; color: #fff; }
.story .sig span { font-weight: 400; color: var(--muted); font-size: 15px; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 120px 20px 60px; background: radial-gradient(ellipse at top, #16223a, var(--ink) 60%); }
.auth-card { width: 100%; max-width: 420px; background: var(--ink2); border: 1px solid var(--line); border-radius: 16px; padding: 38px 34px; text-align: center; }
.auth-mark { width: 64px; margin: 0 auto 18px; }
.auth h1 { margin: 0 0 6px; font-size: 26px; }
.auth-sub { color: var(--muted); margin: 0 0 24px; }
.auth form { display: grid; gap: 14px; text-align: left; }
.auth label { display: grid; gap: 6px; font-size: 14px; color: #c3cbd8; }
.auth input { background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 12px; color: var(--text); font: 15px var(--ui); }
.auth input:disabled, .auth button:disabled { opacity: .5; cursor: not-allowed; }
.auth button { margin-top: 6px; border: 0; cursor: pointer; }
.auth-note { margin-top: 22px; padding: 14px; border-radius: 10px; background: rgba(217,164,65,.1); border: 1px solid rgba(217,164,65,.35); color: #e9d6ad; font-size: 14px; }
.auth-alt { color: var(--muted); font-size: 14px; margin-top: 20px; }

@media (max-width: 980px) {
  .nav nav > a:not(.nav-cta):not(.nav-signin) { display: none; }
  .products, .prices { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
  .story figure.wide { margin: 30px 0; }
}
@media (max-width: 560px) { .dd { display: none; } .nav-signin { display: none; } }
.dd-btn { text-decoration: none; display: inline-block; }
.page { min-height: 80vh; padding: 140px 0 100px; }
.page-h { font: 800 clamp(34px, 4.5vw, 52px)/1.1 var(--ui); margin: 0 0 14px; letter-spacing: -.015em; }
.page .products { margin-top: 10px; }
.hero .lede { font-size: 20px; }
.band.slim { padding: 10px 0 80px; margin-top: -60px; position: relative; z-index: 2; }
.believe { background: var(--ink2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 34px 38px; max-width: 860px; }
.believe-h { font: 700 clamp(22px, 2.6vw, 30px)/1.35 var(--ui); color: #fff; margin: 0 0 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px -60px 14px; }
.stat { background: var(--ink2); border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px; }
.stat b { display: block; font: 800 42px/1 var(--ui); color: var(--accent2); margin-bottom: 10px; }
.stat p { font-size: 15.5px !important; line-height: 1.5 !important; margin: 0 0 10px; }
.stat a { color: var(--muted); font-size: 13px; }
.golden { color: var(--accent); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; margin: 60px 0 0; }
.golden + h2 { margin-top: 8px; }
.join { margin-top: 56px; background: var(--ink2); border: 1px solid var(--accent); border-radius: 14px; padding: 30px 32px; }
.join h2 { margin-top: 0 !important; }
@media (max-width: 980px) { .stats { grid-template-columns: 1fr; margin-left: 0; margin-right: 0; } }
/* Home v3: belief-led hero with a then/now image pair */
.hero2 { padding: 120px 0 34px; background: radial-gradient(ellipse at 75% 30%, #16223a, var(--ink) 65%); }
.hero2-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.h2-big { margin: 0; font: 800 clamp(32px, 3.6vw, 50px)/1.12 var(--ui); letter-spacing: -.015em; }
.h2-big span { color: var(--accent2); }
.hero2 .lede { margin-top: 22px; font-size: 19px; }
.duo { display: grid; gap: 14px; }
.duo figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.duo img { display: block; width: 100%; height: 205px; object-fit: cover; }
.duo figcaption { position: absolute; inset: auto 0 0; padding: 26px 16px 12px; font-size: 14.5px; color: #dfe4ec; background: linear-gradient(transparent, rgba(11,17,28,.92)); }
.duo figcaption b { color: var(--accent2); }
.beliefs { padding: 10px 0 90px; }
.beliefs h3 { font-size: 19px; line-height: 1.3; }
@media (max-width: 980px) { .hero2-grid { grid-template-columns: 1fr; gap: 30px; } .duo { grid-template-columns: 1fr 1fr; } .duo img { height: 170px; } }
@media (max-width: 560px) { .duo { grid-template-columns: 1fr; } }
.hero2 .h2-big { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; }
.belief-line { font: 600 clamp(19px, 1.8vw, 23px)/1.4 var(--ui); color: #fff; margin: 22px 0 0; max-width: 560px; border-left: 3px solid var(--accent); padding-left: 16px; }
.hero2 .belief-line + .lede { margin-top: 16px; }
/* Home v4: full-bleed kid hero + game vs training contrast */
.hero .h-huge { font-size: clamp(46px, 6.4vw, 92px); line-height: 1.02; }
.hero .belief-line { margin-top: 28px; }
.hero .belief-line + .ctas { margin-top: 34px; }
.contrast { padding: 90px 0 110px; }
.q { font: 800 clamp(26px, 3.2vw, 40px)/1.25 var(--ui); max-width: 940px; margin: 0 0 50px; letter-spacing: -.01em; }
.q span { color: var(--muted); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vs-col { border-radius: 14px; padding: 30px 32px; border: 1px solid var(--line); }
.vs-col.game { background: linear-gradient(160deg, rgba(217,164,65,.14), var(--ink2) 60%); border-color: rgba(217,164,65,.45); }
.vs-col.train { background: var(--ink2); }
.vs-h { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 800; margin: 0 0 16px; }
.game .vs-h { color: var(--accent); }
.train .vs-h { color: var(--muted); }
.vs ul { list-style: none; margin: 0; padding: 0; }
.vs li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 18px; }
.game li { color: #fff; }
.train li { color: var(--muted); }
.vs-close { font-size: 22px; margin: 44px 0 0; color: #c9d0dc; max-width: 820px; }
.vs-close b { color: #fff; }
@media (max-width: 820px) { .vs { grid-template-columns: 1fr; } }
.hero-bg.shift { left: 30%; background-position: 55% center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.q-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; margin-bottom: 50px; }
.q-row .q { margin: 0; }
.q-img { margin: 0; }
.q-img img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line); }
@media (max-width: 820px) { .q-row { grid-template-columns: 1fr; gap: 26px; } }
.tagline { margin: 28px 0 34px; font: 600 clamp(18px, 1.7vw, 22px)/1.45 var(--ui); max-width: 620px; }
.tagline span { display: block; }
.tagline .t1 { color: var(--muted); }
.tagline .t2 { color: #fff; }
.tagline .t3 { color: var(--accent2); }
.story .vs { margin: 28px -60px; }
.story .vs li { font-size: 17px; line-height: 1.45; }
@media (max-width: 980px) { .story .vs { margin: 28px 0; } }
.org-cards { margin-top: 10px; }
.org-cards a { color: var(--accent2); }
.org-cta { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--ink2); border: 1px solid var(--accent); border-radius: 14px; padding: 30px 34px; }
.org-cta h2 { margin: 0 0 6px; font-size: 26px; }
.org-cta p { margin: 0; color: var(--muted); max-width: 620px; }
@media (max-width: 820px) { .org-cta { flex-direction: column; align-items: flex-start; } }
@media (max-width: 760px) { .nav nav a[href="/organizations"] { display: none; } }
