@import url("https://fonts.googleapis.com/css2?family=Besley:ital,wght@0,400..700;1,400..600&family=Schibsted+Grotesk:ital,wght@0,400..700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  /* Matched to the app design system ("The Lexicon", frontend tokens.css):
     pure-white paper, cool blue-black ink, ultramarine accent. */
  --paper: #ffffff;
  --paper-2: #f3f5fa;
  --paper-3: #e8ecf5;
  --ink: #141722;
  --ink-2: #303648;
  --ink-3: #5b6378;
  --muted: #767e95;
  --rule: #e4e8f1;
  --rule-2: #c9d0e0;
  --accent: oklch(0.52 0.2 264);
  --accent-hi: oklch(0.58 0.2 264);
  --accent-soft: oklch(0.95 0.026 264);
  --known: oklch(0.6 0.13 155);
  --c-dunno: #ccd3e3;
  --c-fuzzy: oklch(0.78 0.13 72);
  --c-gist: oklch(0.72 0.14 145);
  --c-solid: oklch(0.58 0.14 158);
  --c-eek: oklch(0.62 0.19 25);
  --display: "Besley", Georgia, serif;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow-sm: 0 1px 0 rgba(18, 23, 48, 0.04), 0 1px 2px rgba(18, 23, 48, 0.05);
  --shadow-md: 0 2px 4px rgba(18, 23, 48, 0.05), 0 24px 60px -28px rgba(18, 23, 48, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(
      130% 80% at 50% 18%,
      transparent 45%,
      color-mix(in srgb, var(--ink) 6%, transparent) 100%
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      color-mix(in srgb, var(--ink) 4%, transparent) 31px,
      color-mix(in srgb, var(--ink) 4%, transparent) 32px
    );
  background-attachment: fixed, scroll;
  background-repeat: no-repeat, repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 10;
  transform: translateY(-140%);
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--paper);
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  padding: 18px clamp(20px, 5vw, 64px);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand-name,
.brand-line {
  display: block;
}

.brand-name {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.1;
}

.brand-line {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
}

.nav a {
  text-decoration: none;
}

.nav a[aria-current="true"] {
  color: var(--ink);
}

.nav-app {
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
  padding: clamp(40px, 5vw, 72px) clamp(20px, 7vw, 104px) clamp(56px, 9vw, 108px);
}

.eyebrow,
.section-label,
.mono {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-top: 12px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.98;
}

.lede {
  max-width: 700px;
  margin-top: 28px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.example-file {
  position: relative;
  min-height: 540px;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}

.file-stack {
  position: relative;
  min-height: 498px;
  perspective: 1200px;
}

.product-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 4vw, 34px);
  transform-origin: 50% 110%;
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.product-card[data-position="front"] {
  z-index: 3;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.product-card[data-position="middle"] {
  z-index: 2;
  opacity: 0.76;
  transform: translate3d(18px, -18px, -42px) rotate(2.6deg);
}

.product-card[data-position="back"] {
  z-index: 1;
  opacity: 0.52;
  transform: translate3d(34px, -34px, -82px) rotate(5deg);
}

.file-stack.is-rotating .product-card[data-position="front"] {
  opacity: 0;
  transform: translate3d(-34px, 34px, 40px) rotate(-7deg);
}

.file-next {
  position: absolute;
  right: 10px;
  bottom: 26px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--paper);
  padding: 7px 10px;
  box-shadow: var(--shadow-sm);
  color: var(--ink-3);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.confidence {
  display: inline-flex;
  gap: 4px;
}

.dot {
  width: 9px;
  height: 9px;
  border: 1.2px solid var(--rule-2);
  border-radius: 50%;
}

.dot.filled {
  border-color: var(--known);
  background: var(--known);
}

.dot.warm {
  border-color: var(--c-fuzzy);
  background: var(--c-fuzzy);
}

.dot.gold {
  border-color: var(--c-gist);
  background: var(--c-gist);
}

.dot.quiet {
  border-color: var(--c-dunno);
  background: var(--c-dunno);
}

.product-card h2 {
  margin-top: 28px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1;
}

.product-card p {
  margin-top: 16px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
}

.note {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.note p {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
}

/* Soft paper wash behind text blocks: fades the background page-lines locally
   so they never fight legibility, feathered with blur so there's no hard edge
   — the lines ramp back to full strength in the open space around the text. */
.hero-copy,
.section-body,
.learning-head,
.closing {
  position: relative;
  isolation: isolate;
}

.hero-copy::before,
.section-body::before,
.learning-head::before,
.closing::before {
  content: "";
  position: absolute;
  inset: -24px -32px;
  z-index: -1;
  background: var(--paper);
  filter: blur(28px);
  opacity: 0.82;
  pointer-events: none;
}

.band {
  padding: clamp(56px, 9vw, 108px) clamp(20px, 7vw, 104px);
}

.band > .section-label {
  display: block;
  margin-bottom: 14px;
}

.band > .section-body {
  max-width: 980px;
}

.band.problem {
  background: transparent;
}

.band.philosophy {
  background: transparent;
}

.section-body h2,
.split h2,
.closing h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
}

.section-body > p,
.split .section-body p {
  max-width: 790px;
  margin-top: 22px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.22;
}

.split .section-body p.small-note {
  max-width: 700px;
  border-left: 2px solid var(--rule-2);
  padding-left: 16px;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.feature-grid article {
  min-height: 210px;
  background: var(--paper);
  padding: 28px;
}

.feature-grid h3 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
}

.feature-grid p {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 17px;
}

.confidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.confidence-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 82%, white);
  padding: 5px 9px 5px 7px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.level {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule-2);
}

.level.solid {
  background: var(--c-solid);
}

.level.gist {
  background: var(--c-gist);
}

.level.fuzzy {
  background: var(--c-fuzzy);
}

.level.dunno {
  border: 1px solid var(--rule-2);
  background: var(--c-dunno);
}

.level.eek {
  background: var(--c-eek);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--c-eek) 20%, transparent);
}

.split {
  grid-template-columns: minmax(260px, 430px) minmax(0, 760px);
  background: transparent;
}

.split .section-label {
  display: block;
  margin-bottom: 16px;
}

.closing {
  display: grid;
  justify-items: start;
  gap: 26px;
  background: var(--paper);
  padding: clamp(64px, 10vw, 126px) clamp(20px, 16vw, 260px);
  text-align: left;
}

.closing h2 {
  max-width: 980px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--paper);
  padding: 26px clamp(20px, 5vw, 64px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.audience-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.audience-tab {
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 82%, white);
  padding: 9px 16px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.audience-tab:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.audience-tab[aria-selected="true"] {
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
}

.audience-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.audience-panels {
  margin-top: 28px;
}

.audience-panel[hidden] {
  display: none !important;
}

.audience-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
}

.audience-panel.is-active {
  animation: audience-fade 0.26s ease;
}

@keyframes audience-fade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.audience-figure {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.audience-figure img,
.audience-figure video {
  display: block;
  width: 100%;
  height: auto;
}

.audience-panel.is-text {
  display: block;
}

.audience-panel.is-text .audience-copy {
  max-width: 720px;
}

.audience-panel.is-gallery {
  display: block;
}

.audience-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: 26px;
}

.audience-gallery figure {
  margin: 0;
}

.audience-gallery img,
.audience-gallery video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.audience-gallery figcaption {
  margin-top: 10px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-clock {
  display: block;
  width: clamp(120px, 40%, 160px);
  height: auto;
  margin: 22px auto 4px;
}

.audience-figure--answer {
  background: var(--paper);
  padding: clamp(10px, 1.6vw, 20px);
}

.learning-wall {
  padding: clamp(56px, 9vw, 108px) clamp(20px, 7vw, 104px);
}

.learning-head {
  max-width: 900px;
}

.learning-wall h2 {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
}

.wall-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wall-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
}

.concept-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.concept {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1;
  background: color-mix(in oklch, currentColor 8%, var(--paper));
  border: 1px solid color-mix(in oklch, currentColor 20%, transparent);
}

.g-primary {
  color: oklch(0.5 0.12 150);
}

.g-high {
  color: oklch(0.5 0.13 255);
}

.g-uni {
  color: oklch(0.48 0.17 300);
}

.g-life {
  color: oklch(0.54 0.12 65);
}

.g-curio {
  color: oklch(0.53 0.16 25);
}

.audience-copy h3 {
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.08;
}

.audience-copy p {
  margin-top: 14px;
  max-width: 460px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
  .audience-panel.is-active,
  .audience-tab {
    animation: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
    justify-content: space-between;
  }

  .audience-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .nav {
    gap: clamp(10px, 3vw, 20px);
  }

  .hero,
  .band,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .example-file,
  .file-stack {
    min-height: 470px;
    max-width: 620px;
  }
}

@keyframes tab-hint {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 0%, transparent);
  }
  50% {
    box-shadow: 0 0 0 5px color-mix(in oklch, var(--accent) 16%, transparent);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 14px 16px;
  }

  .brand-line {
    display: none;
  }

  .nav a:not(.nav-app) {
    display: none;
  }

  .hero {
    padding: 42px 16px 56px;
  }

  h1 {
    font-size: 40px;
  }

  .lede {
    font-size: 24px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .band,
  .split,
  .closing {
    padding: 52px 16px;
  }

  .section-body h2,
  .split h2,
  .closing h2 {
    font-size: 38px;
  }

  .section-body > p,
  .split .section-body p {
    font-size: 22px;
  }

  .audience-tab[aria-selected="false"] {
    animation: tab-hint 2.6s ease-in-out infinite;
  }

  .audience-tab[aria-selected="false"]:nth-of-type(2) {
    animation-delay: 0.45s;
  }

  .audience-tab[aria-selected="false"]:nth-of-type(3) {
    animation-delay: 0.9s;
  }

  .audience-tab[aria-selected="false"]:nth-of-type(4) {
    animation-delay: 1.35s;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: auto;
    padding: 22px;
  }

  .audience-switch {
    flex-wrap: wrap;
    gap: 7px;
  }

  .audience-tab {
    font-size: 13px;
    padding: 8px 13px;
  }

  .audience-gallery {
    grid-template-columns: 1fr;
  }

  .example-file {
    max-width: 300px;
  }

  .product-card[data-position="middle"] {
    transform: translate3d(9px, -9px, -42px) rotate(1.6deg);
  }

  .product-card[data-position="back"] {
    transform: translate3d(16px, -16px, -82px) rotate(3deg);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 16px;
  }

  .confidence-list {
    justify-content: center;
  }

  .confidence-list li {
    flex: 0 1 30%;
    justify-content: center;
  }
}

/* Legal pages (privacy / terms) */
body.legal-page {
  background-image: none;
}

.legal {
  max-width: 768px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 6vw, 40px) 96px;
}

.legal-head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
  margin-bottom: 8px;
}

.legal h1 {
  max-width: none;
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1.02;
}

.legal-meta {
  margin-top: 16px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.legal-summary {
  margin-top: 18px;
  max-width: 640px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
}

.legal-body {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-2);
}

.legal-body h2 {
  margin: 46px 0 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
}

.legal-body h3 {
  margin: 28px 0 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
}

.legal-body p {
  margin: 0 0 14px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.legal-body li {
  margin: 7px 0;
}

.legal-body a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.legal-toc {
  margin: 6px 0 40px;
}

.legal-toc ol,
.legal-toc ul {
  margin: 0;
}

.legal-toc a {
  color: var(--ink);
}

.legal-callout,
.legal-contact {
  margin: 22px 0;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper-2) 70%, white);
  padding: 18px 20px;
}

.legal-effective {
  margin-top: 36px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
}
