/*
 * Pinnacle public site components, v0.1 (19 October 2026).
 * Uses only the tokens in pinnacle-tokens.css. Shared by the home, Institutions
 * and Pinnacle High landing pages; a page adds layout of its own, never colours.
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pn-paper);
  color: var(--pn-ink);
  font-family: var(--pn-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:where(a, button, [tabindex]):focus-visible { outline: 3px solid var(--pn-focus); outline-offset: 4px; border-radius: 6px; }
.pn-skip { position: absolute; left: -999px; top: 8px; background: var(--pn-ink); color: #fff; padding: 10px 16px; border-radius: 99px; z-index: 50; }
.pn-skip:focus { left: 16px; }
.pn-shell { width: min(var(--pn-shell), calc(100% - 2 * var(--pn-gutter))); margin-inline: auto; }
.pn-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Labels */
.pn-kicker, .pn-label {
  font-size: 11px; font-weight: 800; letter-spacing: var(--pn-track-label);
  text-transform: uppercase; color: var(--pn-muted);
}
.pn-label { font-size: 10px; font-weight: 700; letter-spacing: .13em; }

/* Glass: navigation and chosen foreground layers only */
.pn-glass {
  background: var(--pn-glass-fallback);
  border: 1px solid var(--pn-glass-edge);
  box-shadow: var(--pn-glass-shadow);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pn-glass {
    background: var(--pn-glass-fill);
    backdrop-filter: var(--pn-glass-blur);
    -webkit-backdrop-filter: var(--pn-glass-blur);
  }
}

/* Header */
.pn-header { position: sticky; top: 0; z-index: 20; padding: 14px 0; }
.pn-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 22px; border-radius: var(--pn-radius-control);
}
.pn-brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: .14em; }
.pn-brand small { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--pn-muted); }
.pn-nav { display: flex; align-items: center; gap: 4px; }
.pn-nav a { text-decoration: none; font-size: 13px; font-weight: 700; color: var(--pn-ink-soft); padding: 10px 14px; border-radius: var(--pn-radius-control); }
.pn-nav a:hover { background: rgba(17, 20, 25, .05); }
.pn-nav a[aria-current="page"] { color: var(--pn-ink); background: rgba(17, 20, 25, .06); }
.pn-header__actions { display: flex; align-items: center; gap: 8px; }

/* Menu button: shown where the nav folds away */
.pn-burger { display: none; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; border-radius: var(--pn-radius-control); border: 1px solid var(--pn-line); background: rgba(255, 255, 255, .7); cursor: pointer; }
.pn-burger span, .pn-burger span::before, .pn-burger span::after { display: block; width: 18px; height: 2px; background: var(--pn-ink); border-radius: 2px; }
.pn-burger span { position: relative; }
.pn-burger span::before, .pn-burger span::after { content: ''; position: absolute; left: 0; }
.pn-burger span::before { top: -6px; }
.pn-burger span::after { top: 6px; }

/* Questions and answers */
.pn-faq { display: grid; gap: 10px; max-width: 860px; margin-top: 28px; }
.faq-item { border-radius: var(--pn-radius-card); background: var(--pn-paper-raised); border: 1px solid var(--pn-line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 20px 24px; background: none; border: 0; cursor: pointer; font-size: 17px; font-weight: 700; color: var(--pn-ink); letter-spacing: -.02em; }
.faq-q::after { content: '+'; font-size: 22px; font-weight: 500; color: var(--pn-muted); transition: transform .3s var(--pn-ease); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 24px 22px; color: var(--pn-muted); line-height: 1.75; font-size: 15px; }
.faq-item.open .faq-a { display: block; }

/* Buttons */
.pn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 13px 22px; border-radius: var(--pn-radius-control);
  font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--pn-ease), box-shadow .3s var(--pn-ease), background .2s;
}
.pn-btn--dark { background: var(--pn-ink); color: #fff; border-color: var(--pn-ink); }
.pn-btn--dark:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(0, 0, 0, .14); }
.pn-btn--quiet { background: rgba(255, 255, 255, .7); color: var(--pn-ink); border-color: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .04); }
.pn-btn--quiet:hover { background: #fff; }
.pn-btn--light { background: var(--pn-on-obsidian); color: var(--pn-obsidian); }
.pn-btn--ghost-light { background: transparent; color: var(--pn-on-obsidian); border-color: rgba(244, 244, 241, .45); }
.pn-btn--small { min-height: 40px; padding: 9px 16px; font-size: 13px; }

/* Hero */
.pn-hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px; padding: 48px 0 56px; }
.pn-hero h1 {
  font-size: clamp(48px, 6.3vw, 100px); line-height: 1.02; letter-spacing: -.085em; font-weight: 600;
  margin: 20px 0; max-width: 11ch;
}
.pn-hero h1 em { font-style: normal; color: var(--pn-muted-large); }
.pn-lede { font-size: 17px; line-height: 1.8; color: var(--pn-muted); max-width: 34em; margin: 0; }
.pn-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pn-fineprint { font-size: 13px; color: var(--pn-muted); margin-top: 16px; }

/* The bulb stage */
.pn-stage { position: relative; height: 470px; display: grid; place-items: center; isolation: isolate; }
.pn-orb { position: absolute; width: 380px; height: 380px; border-radius: 50%; z-index: -1; filter: blur(6px);
  background: radial-gradient(circle, #fff 4%, #e7e8e7 30%, rgba(215, 216, 213, .67) 54%, transparent 74%); }
.pn-halo { position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(151, 156, 157, .25); animation: pn-spin 55s linear infinite; }
.pn-halo::after { content: ''; position: absolute; top: 5%; left: 15%; width: 5px; height: 5px; border-radius: 50%; background: #2c2e2e; box-shadow: 0 0 15px #fff; }
.pn-halo--outer { width: 450px; height: 450px; border-style: dashed; opacity: .36; animation-direction: reverse; }
.pn-bulb { width: 250px; height: 300px; animation: pn-levitate 7s ease-in-out infinite; filter: drop-shadow(0 22px 17px rgba(0, 0, 0, .08)); }
.pn-bulb svg { width: 100%; height: 100%; overflow: visible; }
.pn-filament { stroke-dasharray: 230; stroke-dashoffset: 230; animation: pn-write 4s ease-in-out infinite alternate; }
.pn-float { position: absolute; display: flex; gap: 12px; align-items: center; min-width: 170px; padding: 14px 18px; border-radius: 17px; font-size: 12px; line-height: 1.4; }
.pn-float strong { display: block; font-size: 13px; }
.pn-float small { color: var(--pn-muted); }
.pn-float__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pn-ink); flex: none; }
.pn-float--a { top: 50px; left: 0; }
.pn-float--b { right: 0; bottom: 70px; }
@keyframes pn-levitate { 50% { transform: translateY(-16px) rotate(1.3deg); } }
@keyframes pn-write { to { stroke-dashoffset: 0; } }
@keyframes pn-spin { to { transform: rotate(360deg); } }

/* Sections */
.pn-section { padding: 72px 0; }
.pn-section--tight { padding: 40px 0; }
.pn-rule { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--pn-line); padding: 18px 0; }
.pn-section h2 { font-size: clamp(36px, 4.6vw, 66px); line-height: 1.08; letter-spacing: -.075em; font-weight: 600; margin: 14px 0 16px; max-width: 16ch; }
.pn-section h2 em { font-style: normal; color: var(--pn-muted-large); }
.pn-section-intro { max-width: 46em; color: var(--pn-muted); font-size: 16px; line-height: 1.8; margin: 0; }

/* Card grids */
.pn-grid { display: grid; gap: 14px; }
.pn-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pn-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pn-card { border-radius: var(--pn-radius-card); padding: 28px; }
.pn-card h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.055em; font-weight: 700; margin: 10px 0 10px; }
.pn-card p { margin: 0; color: var(--pn-muted); font-size: 15px; line-height: 1.75; }
.pn-card--plain { background: var(--pn-paper-raised); border: 1px solid var(--pn-line); }

/* Product cards */
.pn-product { display: flex; flex-direction: column; gap: 14px; min-height: 340px; border-radius: var(--pn-radius-feature); padding: 30px; text-decoration: none; transition: transform .35s var(--pn-ease), box-shadow .35s var(--pn-ease); }
.pn-product:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(34, 34, 34, .1); }
.pn-product h3 { font-size: 34px; letter-spacing: -.065em; line-height: 1.1; margin: 4px 0 0; font-weight: 700; }
.pn-product p { margin: 0; color: var(--pn-muted); line-height: 1.75; font-size: 15px; }
.pn-product ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--pn-ink-soft); }
.pn-product li { display: flex; gap: 10px; }
.pn-product li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--pn-ink); }
.pn-product__go { margin-top: auto; font-weight: 700; font-size: 14px; }
.pn-product--obsidian { background: var(--pn-obsidian); color: var(--pn-on-obsidian); }
.pn-product--obsidian p, .pn-product--obsidian ul { color: var(--pn-on-obsidian-muted); }
.pn-product--obsidian li::before { background: var(--pn-on-obsidian); }
.pn-product--obsidian .pn-kicker { color: var(--pn-on-obsidian-muted); }

/* Obsidian band */
.pn-obsidian { position: relative; overflow: hidden; background: var(--pn-obsidian); color: var(--pn-on-obsidian); border-radius: var(--pn-radius-feature); padding: 56px; }
.pn-obsidian::before { content: ''; position: absolute; width: 440px; height: 440px; right: -60px; top: -80px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(221, 221, 221, .27) 0%, rgba(170, 170, 170, .07) 18%, transparent 65%); }
.pn-obsidian h2 { color: var(--pn-on-obsidian); }
.pn-obsidian h2 em { color: var(--pn-on-obsidian-muted); }
.pn-obsidian p { color: var(--pn-on-obsidian-muted); }
.pn-obsidian .pn-kicker, .pn-obsidian .pn-label { color: var(--pn-on-obsidian-muted); }

/* Steps */
.pn-steps { counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.pn-steps li { border-top: 1px solid var(--pn-line-strong); padding-top: 18px; }
.pn-steps strong { display: block; font-size: 21px; letter-spacing: -.04em; margin: 8px 0; }
.pn-steps p { margin: 0; color: var(--pn-muted); font-size: 15px; line-height: 1.75; }

/* Sample diagnostic */
.pn-diag { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pn-question { border-radius: var(--pn-radius-feature); padding: 32px; }
.pn-question h3 { font-size: 26px; line-height: 1.35; letter-spacing: -.05em; margin: 16px 0 22px; font-weight: 700; }
.pn-math { font-family: var(--pn-font-math); font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.pn-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pn-answer { min-height: 56px; border: 1px solid #d5d6d6; background: rgba(255, 255, 255, .6); border-radius: 14px; font-size: 17px; font-weight: 700; cursor: pointer; color: var(--pn-ink); transition: transform .25s var(--pn-ease), border-color .2s; }
.pn-answer:hover { border-color: var(--pn-ink-soft); transform: translateY(-2px); }
.pn-answer[aria-pressed="true"] { background: var(--pn-ink); color: #fff; border-color: var(--pn-ink); }
.pn-reply { min-height: 360px; display: flex; flex-direction: column; }
.pn-reply h3 { font-size: 30px; line-height: 1.2; letter-spacing: -.06em; font-weight: 600; margin: 26px 0 12px; }
.pn-reply .pn-label { color: var(--pn-on-obsidian-muted); }
.pn-reply__note { margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--pn-on-obsidian-muted); }

/* Footer */
.pn-footer { border-top: 1px solid var(--pn-line); padding: 40px 0 48px; margin-top: 40px; font-size: 14px; color: var(--pn-muted); }
.pn-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.pn-footer h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pn-ink); }
.pn-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pn-footer a { text-decoration: none; }
.pn-footer a:hover { text-decoration: underline; }
.pn-footer__legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--pn-line); font-size: 12px; line-height: 1.7; }

/* Responsive */
@media (max-width: 960px) {
  .pn-hero { grid-template-columns: 1fr; padding-top: 24px; }
  .pn-stage { height: 400px; }
  .pn-grid--3, .pn-steps { grid-template-columns: 1fr; }
  .pn-grid--2, .pn-diag { grid-template-columns: 1fr; }
  .pn-footer__grid { grid-template-columns: 1fr 1fr; }
  .pn-nav { display: none; }
  .pn-burger { display: inline-flex; }
  .pn-header.is-open .pn-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: var(--pn-gutter); right: var(--pn-gutter); top: calc(100% - 6px);
    padding: 10px; border-radius: var(--pn-radius-card);
    background: var(--pn-glass-fallback); border: 1px solid #fff; box-shadow: var(--pn-glass-shadow);
  }
  .pn-header.is-open .pn-nav a { padding: 12px 14px; font-size: 15px; }
  .pn-obsidian { padding: 36px 28px; }
}
@media (max-width: 500px) {
  .pn-header__bar { padding-left: 16px; }
  .pn-brand small { display: none; }
  .pn-hero h1 { font-size: clamp(44px, 13vw, 60px); }
  .pn-lede { font-size: 16px; }
  .pn-stage { height: 320px; }
  .pn-bulb { width: 180px; height: 220px; }
  .pn-orb { width: 270px; height: 270px; }
  .pn-halo { width: 260px; height: 260px; }
  .pn-halo--outer { width: 320px; height: 320px; }
  .pn-float { min-width: 0; padding: 10px 12px; font-size: 11px; }
  .pn-float strong { font-size: 12px; }
  .pn-float--a { top: 8px; }
  .pn-float--b { bottom: 10px; }
  .pn-section { padding: 52px 0; }
  .pn-card, .pn-product, .pn-question { padding: 22px; }
  .pn-answers { grid-template-columns: 1fr 1fr; }
  .pn-footer__grid { grid-template-columns: 1fr; }
  .pn-header__bar { gap: 8px; padding-right: 6px; }
  .pn-header__actions { gap: 6px; }
  .pn-header__actions .pn-btn--small { padding: 8px 12px; }
  .pn-hide-xs { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .pn-filament { stroke-dashoffset: 0; }
}
