/* =============================================================
   SITE.CSS — static placeholder layout
   Builds on meridian.css (design tokens + components).
   Landing + content pages. Zero JS.
   ============================================================= */

/* ---------- layout primitives ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 48px; }
.wrap-prose { max-width: 900px; margin: 0 auto; padding: 0 48px; }
.section { border-bottom: 1px solid var(--border); }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 80px 0; }
.section--sunken { background: var(--bg-sunken); }

.section-head { margin-bottom: 32px; }
.section-head .eyebrow { margin-bottom: 12px; display: block; }
.section-head h2 { font-size: var(--fs-3xl); margin: 0; line-height: 1.15; }
.section-head .kicker { margin-top: 12px; font-size: 15px; max-width: 840px; color: var(--text-secondary); }

.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: var(--lh-tight); color: var(--text); }
em.soft { font-style: italic; font-weight: 400; }

/* ---------- top nav (static) ---------- */
.site-nav { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 12px 48px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-nav .nav-right { display: flex; align-items: center; gap: 18px; }

/* ---------- theme toggle ---------- */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); background: transparent; cursor: pointer; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle .icon-moon { display: inline-flex; }
.theme-toggle .icon-sun { display: none; }
[data-theme="bourse"] .theme-toggle .icon-moon { display: none; }
[data-theme="bourse"] .theme-toggle .icon-sun { display: inline-flex; }

/* In dark mode the always-dark CTA band would merge with the page background; lift and separate it. */
[data-theme="bourse"] .cta-band { background: var(--bg-elev); border-top: 1px solid var(--border); }

/* ---------- brand logo (nav + footer) — theme-aware light/dark swap ---------- */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo-stacked { height: 68px; }
.site-footer .brand-logo { height: 28px; }
.brand-dark-only { display: none; }
[data-theme="bourse"] .brand-light-only { display: none; }
[data-theme="bourse"] .brand-dark-only { display: block; }

/* ---------- end-of-page nav (back to top / learn / home) ---------- */
html { scroll-behavior: smooth; }
.section[id], .cta-band[id] { scroll-margin-top: 72px; }
.page-end-nav { display: flex; flex-wrap: wrap; gap: 12px; margin: 48px 0; padding-top: 28px; border-top: 1px solid var(--border); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero .hero-grid { position: absolute; inset: 0; opacity: var(--texture-opacity); }
.hero .hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, var(--bg) 100%); }
.hero .hero-rule-l { position: absolute; left: 48px; top: 0; bottom: 0; width: 1px; background: var(--hairline); }
.hero .hero-rule-r { position: absolute; right: 48px; top: 0; bottom: 0; width: 1px; background: var(--hairline); }
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 120px 48px 132px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); margin: 0 0 28px; max-width: 980px; line-height: 1.04; letter-spacing: -0.02em; }
.hero .lede { font-size: 18px; line-height: 1.55; color: var(--text-secondary); max-width: 960px; margin: 0 0 40px; }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.statrow { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 60px; color: var(--text-tertiary); font-size: 12.5px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.statrow .sep { width: 1px; height: 12px; background: var(--border); }

/* ---------- "what you'll learn" grid ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.learn-item { padding: 32px 28px 32px 28px; border-left: 1px solid var(--hairline); }
.learn-item:first-child { padding-left: 0; border-left: none; }
.learn-item .ico { margin-bottom: 20px; color: var(--accent); display: block; }
.learn-item .num { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-tertiary); margin-bottom: 8px; }
.learn-item h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0 0 10px; line-height: 1.2; }
.learn-item p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); }

/* ---------- "who it's for" ---------- */
.aud-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.aud-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 32px; margin: 0; }
.aud-head .aside { font-size: 13px; max-width: 480px; color: var(--text-secondary); }
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.aud-card { padding: 24px; }
.aud-card .num { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-tertiary); margin-bottom: 14px; }
.aud-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin: 0 0 8px; }
.aud-card p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.aud-card.lead { border-color: var(--border-strong); }
.aud-card .lead-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* ---------- module list ---------- */
.mod-list { border-top: 1px solid var(--border); }
.mod-row { border-bottom: 1px solid var(--hairline); }
.mod-row > summary { list-style: none; display: grid; grid-template-columns: 78px 1fr 96px 24px; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; transition: background var(--dur) var(--ease); }
.mod-row > summary::-webkit-details-marker { display: none; }
.mod-row > summary:hover { background: var(--bg-hover); }
.mod-row .m-no { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text); }
.mod-row .m-title { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--text); }
.mod-row .m-dur { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.06em; text-align: right; }
.mod-row .m-chev { color: var(--text-tertiary); justify-self: end; transition: transform var(--dur) var(--ease); }
.mod-row[open] .m-chev { transform: rotate(180deg); }
.mod-row .m-body { padding: 0 32px 28px 78px; color: var(--text-secondary); font-size: 14px; line-height: 1.65; max-width: 1000px; }
.mod-row .m-body p { margin: 0 0 14px; }
.mod-tag-elective { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--border); padding: 1px 6px; border-radius: var(--radius-sm); margin-left: 10px; vertical-align: middle; }

/* ---------- "why trust" grid ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 8px 32px 8px 32px; border-left: 1px solid var(--hairline); }
.trust-item:first-child { padding-left: 0; border-left: none; }
.trust-item .ico { color: var(--accent); margin-bottom: 16px; display: block; }
.trust-item h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin: 0 0 10px; line-height: 1.25; }
.trust-item p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); }

/* ---------- email capture ---------- */
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.signup .input { flex: 1; min-width: 220px; }
.signup-note { margin-top: 12px; font-size: 12px; color: var(--text-tertiary); }

/* ---------- CTA band (intentionally always dark) ---------- */
.cta-band { background: #0E1219; color: #E8ECF2; position: relative; overflow: hidden; }
.cta-band .cta-grid { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 48px 48px; }
.cta-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 88px 48px; }
.cta-inner .eyebrow { color: #95A0B3; margin-bottom: 16px; display: block; }
.cta-inner h2 { font-family: var(--font-display); font-weight: 500; font-size: 44px; margin: 0 0 16px; color: #fff; line-height: 1.1; letter-spacing: -0.01em; }
.cta-inner p { margin: 0 0 28px; color: #95A0B3; font-size: 15px; max-width: 760px; line-height: 1.6; }
.cta-band .input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #E8ECF2; }
.cta-band .input::placeholder { color: #6E7787; }
.cta-band .btn-white { background: #fff; color: #0E1219; }
.cta-band .signup-note { color: #6E7787; }
.signup-status { margin-top: 14px; font-size: 14px; line-height: 1.5; max-width: 480px; }
.cta-band .signup-status { color: #E8ECF2; }
.signup-status[data-state="success"] { color: #fff; font-weight: 500; }
.signup-status[data-state="error"] { color: #FFB4A8; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); }
.site-footer .foot-inner { max-width: 1180px; margin: 0 auto; padding: 40px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .foot-links { display: flex; gap: 20px; font-size: 12.5px; color: var(--text-secondary); }
.site-footer .foot-links a:hover { color: var(--text); }
.foot-copy { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-tertiary); }

/* ---------- article / content pages ---------- */
.article { padding: 64px 0 88px; }
.article .crumbs { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 24px; }
.article .crumbs a:hover { color: var(--text); }
.article h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 20px; }
.article .standfirst { font-size: 19px; line-height: 1.55; color: var(--text-secondary); margin: 0 0 40px; font-weight: 300; }
.article h2 { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -0.005em; margin: 44px 0 16px; line-height: 1.2; }
.article h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 32px 0 12px; }
.article p { font-size: var(--fs-md); line-height: 1.7; margin: 0 0 18px; color: var(--text); }
.article ul { font-size: var(--fs-md); line-height: 1.7; color: var(--text); padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 8px; }
.article .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-tertiary); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-cta { margin-top: 48px; padding: 28px 32px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-elev); }
.article-cta .eyebrow { display: block; margin-bottom: 8px; }
.article-cta h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 0 0 8px; }
.article-cta p { font-size: 14px; color: var(--text-secondary); margin: 0 0 16px; }

/* learn hub */
.learn-hub { padding: 64px 0 88px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--border); }
.hub-card { padding: 28px 28px 28px 28px; border-left: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); display: block; transition: background var(--dur) var(--ease); }
.hub-card:nth-child(odd) { padding-left: 0; border-left: none; }
.hub-card:hover { background: var(--bg-hover); }
.hub-card .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 10px; }
.hub-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; margin: 0 0 8px; line-height: 1.25; }
.hub-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .wrap, .hero-inner, .cta-inner, .site-nav, .site-footer .foot-inner { padding-left: 28px; padding-right: 28px; }
  .wrap-prose { padding-left: 28px; padding-right: 28px; }
  .learn-grid { grid-template-columns: repeat(2, 1fr); }
  .learn-item, .learn-item:first-child { border-left: none; padding-left: 0; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:first-child { border-left: none; padding-left: 0; padding-top: 24px; padding-bottom: 24px; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card, .hub-card:nth-child(odd) { border-left: none; padding-left: 0; }
  .cta-inner h2 { font-size: 34px; }
}
@media (max-width: 560px) {
  .hero-inner { padding: 80px 24px 80px; }
  .section-pad { padding: 64px 0; }
  .learn-grid, .aud-grid { grid-template-columns: 1fr; }
  .statrow { gap: 14px; }
  .mod-row > summary { grid-template-columns: 60px 1fr 24px; }
  .mod-row .m-dur { display: none; }
  .mod-row .m-body { padding-left: 0; }
}
