/* ==========================================================================
   Northlight Innovations — Round 2 Mockup
   Editorial-confident · Wired / Apple 2010-2015 / Stripe case studies
   Light, considered, architectural. Light theme only.

   Brand: #035399 primary, #0A7BB8 accent, #2C2C2C body, #666666 muted.
   Type: IBM Plex Sans (headings + body) + IBM Plex Mono (machine-output
         blocks only) + Source Serif 4 (editorial flourishes only —
         tagline eyebrow, drop cap, pull-quote, cta-email).

   No dark mode. No SaaS chrome. No animation that delays readability.
   ========================================================================== */


/* ---------- Tokens ---------- */
:root {
  /* Brand (locked) */
  --color-brand: #035399;
  --color-brand-deep: #023f74;       /* H1 weight + diagram emphasis */
  --color-brand-accent: #0A7BB8;
  --color-text: #2C2C2C;
  --color-muted: #666666;

  /* Surfaces */
  --color-paper: #FFFFFF;
  --color-paper-soft: #FAF9F6;        /* warmer than #FAFAFA — editorial paper feel */

  /* Rules */
  --color-rule: #E5E7EA;
  --color-rule-strong: #D5D9DD;
  --color-rule-brand: rgba(3, 83, 153, 0.18);

  /* Affirmative accent — used for checkmarks on the licensee-fit list.
     Reads as the "high confidence" green from the VeriShield badge strip. */
  --color-affirmative: #2D8A3E;

  /* Type */
  --font-display: "Source Serif 4", "Source Serif Pro", Charter, "Iowan Old Style",
                  Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);
  --font-mono:    "IBM Plex Mono", "JetBrains Mono", "SF Mono", Consolas,
                  "Courier New", monospace;

  /* Reading */
  --max-width: 1400px;
  --max-reading: 920px;

  /* Vertical rhythm */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.75rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 7.5rem;

  --nav-height: 68px;
  --radius-sm: 2px;
}


/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1.5rem);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-paper);
  font-feature-settings: "kern" 1, "liga" 1;
}

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

img, svg { max-width: 100%; height: auto; display: block; }


/* ---------- Containers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.container--reading {
  max-width: var(--max-reading);
}

@media (max-width: 720px) {
  .container { padding: 0 1.25rem; }
}


/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--color-brand);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }


/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--color-rule);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1.5rem;
}

.brand {
  text-decoration: none;
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img { height: 38px; width: auto; display: block; }

@media (max-width: 480px) {
  .brand img { height: 30px; }
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.primary-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  position: relative;
  transition: color 140ms ease;
}

/* Underline hover — slides in from left, precise not flashy */
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0.15rem;
  height: 1px;
  background: var(--color-brand);
  transition: right 200ms ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--color-brand); }
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { right: 0; }

@media (max-width: 820px) {
  .primary-nav { display: none; }
}


/* ---------- Sections ---------- */
.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section--hero {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
}

@media (max-width: 720px) {
  .section { padding: var(--space-lg) 0; }
  .section--hero { padding-top: var(--space-md); padding-bottom: var(--space-lg); }
}


/* ---------- Editorial section markers (replaces <hr>) ---------- */
.section-marker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 500;
  margin: 0 0 var(--space-md) 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-marker__num {
  color: var(--color-brand);
  font-weight: 700;
}

.section-marker__rule {
  flex: 1;
  height: 1px;
  background: var(--color-rule);
  display: block;
}


/* ---------- Eyebrow (smaller version of marker, no rule) ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 1.25rem 0;
  font-weight: 500;
}

.eyebrow--brand { color: var(--color-brand); }


/* ---------- Tagline (Home only) — italic signature ---------- */
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-brand);
  font-weight: 600;
  letter-spacing: 0.005em;
  margin: 0 0 2.25rem 0;
  border-left: 2px solid var(--color-brand);
  padding-left: 1rem;
  line-height: 1.4;
}


/* ---------- Headings ---------- */
.hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  color: var(--color-brand-deep);
  margin: 0 0 2.5rem 0;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.hero-h1__pivot {
  display: block;
  margin-top: 0.6rem;
  color: var(--color-text);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.75rem);  /* ~half of .hero-h1 */
  line-height: 1.2;
}

.section-h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.3vw, 2.8rem);
  line-height: 1.12;
  color: var(--color-brand-deep);
  margin: 0 0 var(--space-md) 0;
  font-weight: 600;
  letter-spacing: -0.018em;
  max-width: 22ch;
}

.section-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.3;
  color: var(--color-text);
  margin: var(--space-lg) 0 1rem 0;
  font-weight: 700;
  letter-spacing: -0.008em;
  max-width: 32ch;
}

.platform-h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--color-brand);
  margin: var(--space-lg) 0 1rem 0;
  font-weight: 700;
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
  letter-spacing: -0.014em;
}


/* ---------- Body text ---------- */
p { margin: 0 0 1.15rem 0; }

.lede {
  font-size: 1.18rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
  color: var(--color-text);
}

/* Drop cap on the opening lede — Wired/NYT editorial convention. Restrained. */
.lede--opener::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4rem;
  line-height: 0.88;
  font-weight: 700;
  color: var(--color-brand-deep);
  padding: 0.5rem 0.7rem 0 0;
  margin-top: 0.2rem;
  letter-spacing: -0.022em;
}

/* Disable drop cap on small screens — looks awkward at narrow widths.
   Reset font-family too so the first letter inherits body sans. */
@media (max-width: 520px) {
  .lede--opener::first-letter {
    float: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
    margin: 0;
    line-height: inherit;
    color: inherit;
    letter-spacing: inherit;
  }
}

a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}
a:hover, a:focus-visible {
  color: var(--color-brand-accent);
  text-decoration-thickness: 2px;
}

strong { font-weight: 700; }
em { font-style: italic; }


/* ---------- Pull-quote — editorial moments ---------- */
.pullquote {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  line-height: 1.18;
  color: var(--color-brand-deep);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.018em;
  margin: var(--space-lg) 0;
  padding: 0 0 0 1.75rem;
  border-left: 4px solid var(--color-brand);
  max-width: 32ch;
}

.pullquote--center {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 32ch;
}

@media (min-width: 900px) {
  .pullquote {
    margin: var(--space-xl) 0;
    padding-left: 2rem;
  }
}


/* ============================================================
   HERO — asymmetric editorial opener
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

.hero-prose {
  max-width: 52rem;
}

.hero-aside {
  position: relative;
  /* On desktop the hero diagram aligns with the H1's optical center */
  padding-top: 3.5rem;
}

@media (max-width: 959px) {
  .hero-aside { padding-top: 0; }
}


/* ---------- Hero confidence-drift visual ---------- */
.hero-diagram-img {
  /* Marketing-grade visual companion to the hero H1. Fills its column
     so the headline text inside the image is legible and the visual
     weight balances the prose on the left. */
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(3, 83, 153, 0.08), 0 12px 32px -12px rgba(3, 83, 153, 0.12);
}

@media (max-width: 959px) {
  /* On narrow viewports the aside drops below the prose; constrain so
     it never grows beyond a comfortable reading width. */
  .hero-diagram-img { max-width: 540px; margin: 0 auto; }
}


/* ============================================================
   THREE PLATFORMS — refined card grid
   ============================================================ */
.platform-list {
  list-style: none;
  margin: 0 0 var(--space-lg) 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .platform-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.platform-card {
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-left: 3px solid var(--color-brand);
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-left-width 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.platform-card:hover,
.platform-card:focus-within {
  border-left-width: 6px;
  padding-left: calc(1.5rem - 3px);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(3, 83, 153, 0.18);
}

/* Image at the top of each platform card. Matches the card-inset
   placeholder footprint so swapping in real imagery is seamless. */
.platform-card__visual {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.25rem;
  border-radius: 3px;
  /* Faint border keeps the visual feeling defined without competing
     with the card's own brand-blue left rule. */
  border: 1px solid var(--color-rule);
}

.platform-card__name {
  font-family: var(--font-heading);
  margin: 0 0 0.7rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.platform-card__name a {
  color: var(--color-brand);
  text-decoration: none;
}

.platform-card__name a:hover,
.platform-card__name a:focus-visible {
  color: var(--color-brand-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.platform-card__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  flex: 1;
}


/* ============================================================
   ARCHITECTURE — diagrams + module list, N-shield watermark
   ============================================================ */
.architecture-section {
  position: relative;
  overflow: hidden;
}

/* N-shield watermark — used once, ~5% opacity, decorative anchor */
.architecture-watermark {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: clamp(360px, 48vw, 580px);
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

.architecture-section .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .architecture-watermark { display: none; }
}


/* The three-platform stack diagram */
.stack-figure {
  margin: var(--space-lg) 0;
  padding: 2.5rem 2rem;
  background: var(--color-paper-soft);
  border: 1px solid var(--color-rule);
}

.stack-figure svg {
  width: 100%;
  max-width: 920px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.stack-figure__caption {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 1.5rem auto 0;
  line-height: 1.6;
  max-width: 60ch;
  font-style: italic;
  /* Editorial caption — body type, italic, left-aligned. Reads as a magazine
     figure caption rather than a centered code block. */
}


/* VeriShield badge strip — five confidence-state badges, displayed inline
   under the VeriShield H3. Source image carries its own black background. */
.badge-strip {
  margin: var(--space-md) 0 var(--space-lg);
  padding: 0;
}
.badge-strip img {
  display: block;
  width: 100%;
  max-width: 920px;
  height: auto;
  margin: 0 auto;
}

/* Principle figure — full-width feature image inside the reading column.
   Used in "What ties them together" to visualize the cross-site principle
   immediately before the pull-quote names it. */
.principle-figure {
  margin: var(--space-md) 0;
  padding: 0;
}
.principle-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(3, 83, 153, 0.08), 0 12px 32px -12px rgba(3, 83, 153, 0.12);
}


/* CaptureShield horizontal flow */
.flow-figure {
  margin: var(--space-md) 0 var(--space-lg);
  padding: 1.75rem 0 1.5rem;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
}

.flow-figure svg {
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.flow-figure__caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
  margin: 1rem 0 0 0;
  line-height: 1.65;
  max-width: 56ch;
}


/* Module list — VeriShield's five modules */
.module-list {
  list-style: none;
  margin: var(--space-md) 0 var(--space-md) 0;
  padding: 0;
  border-top: 1px solid var(--color-rule-brand);
}

.module-list > li {
  position: relative;
  padding: 1.4rem 0 1.4rem 3.5rem;
  border-bottom: 1px solid var(--color-rule);
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
  line-height: 1.65;
  transition: background 200ms ease, padding-left 200ms ease;
}

.module-list > li:last-child { border-bottom: 1px solid var(--color-rule-brand); }

.module-list > li::before {
  content: counter(module-counter, decimal-leading-zero);
  counter-increment: module-counter;
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-brand);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.module-list { counter-reset: module-counter; }

.module-list > li strong {
  font-family: var(--font-heading);
  color: var(--color-brand-deep);
  font-weight: 700;
  letter-spacing: -0.008em;
  font-size: 1.08rem;
  display: inline-block;
  margin-right: 0.25rem;
}

.module-list > li#captureshield:target {
  background: rgba(3, 83, 153, 0.04);
  padding-left: 4rem;
}


/* ============================================================
   LICENSING — inquiry list refined
   ============================================================ */
.inquiry-list {
  list-style: none;
  margin: 0.75rem 0 var(--space-md) 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--color-rule);
}

@media (min-width: 720px) {
  .inquiry-list { grid-template-columns: 1fr 1fr; }
  .inquiry-list > li:nth-child(odd) { border-right: 1px solid var(--color-rule); }
}

.inquiry-list > li {
  position: relative;
  padding: 1.1rem 1rem 1.1rem 2rem;
  line-height: 1.55;
  border-bottom: 1px solid var(--color-rule);
  font-size: 0.96rem;
}

.inquiry-list > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.25rem;
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--color-affirmative);
  border-bottom: 2px solid var(--color-affirmative);
  transform: rotate(45deg);
  background: transparent;
}


/* ============================================================
   CTA — single discipline (simon@nl-innovations.io)
   ============================================================ */
.cta {
  margin: var(--space-md) 0 0 0;
  padding: 1.5rem 1.75rem;
  background: var(--color-paper-soft);
  border-left: 3px solid var(--color-brand);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cta__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 500;
}

.cta-email {
  color: var(--color-brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.cta-email:hover, .cta-email:focus-visible {
  color: var(--color-brand-accent);
  text-decoration-thickness: 2px;
}


/* ============================================================
   ABOUT — bio + supporting prose
   ============================================================ */
.bio-paragraphs p {
  font-size: 1.04rem;
  line-height: 1.7;
}


/* ============================================================
   CONTACT — definition list
   ============================================================ */
.contact-list {
  margin: var(--space-md) 0 0 0;
  padding: 0;
  border-top: 1px solid var(--color-rule);
}

.contact-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-rule);
}

.contact-item dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 500;
}

.contact-item dd {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-text);
}

@media (min-width: 720px) {
  .contact-item {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-rule);
  padding: 2.5rem 0 3rem;
  margin-top: var(--space-lg);
  background: var(--color-paper-soft);
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .footer-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.footer-patent {
  font-size: 0.85rem;
  color: var(--color-text);
  margin: 0 0 0.4rem 0;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  max-width: 60ch;
}

.footer-corp {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.footer-corp a {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-corp a:hover, .footer-corp a:focus-visible { color: var(--color-brand); }

.footer-sep { margin: 0 0.5rem; color: var(--color-rule-strong); }


/* ---------- Print ---------- */
@media print {
  .site-header, .skip-link, .architecture-watermark { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 1.5rem 0; }
  .section--feature { background: #fff; }
}
