* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; border-radius: 10px; color: var(--white); background: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; transform: translateY(calc(-100% - 24px)); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible { outline: 3px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }

.site-header { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; padding: 22px; }
.nav { width: min(100%, 1180px); min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: auto; padding: 9px 10px 9px 20px; border: 1px solid rgb(var(--surface-rgb) / .45); border-radius: 999px; background: rgb(var(--surface-rgb) / .93); box-shadow: 0 10px 32px rgb(var(--shadow-rgb) / .12); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 22px; font-weight: 850; text-decoration: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand .brand-wordmark { width: 124px; height: auto; filter: invert(1); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { min-height: 42px; display: inline-flex; align-items: center; border-radius: 999px; padding: 0 18px; color: var(--white); background: var(--accent); font-size: 13px; font-weight: 800; text-decoration: none; }
.nav-cta:hover { background: var(--accent-dark); }

.hero { --hero-image: url("assets/forma/forma-hero.webp"); position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 148px max(24px, calc((100vw - 1180px) / 2)) 96px; color: var(--white); background: linear-gradient(90deg, rgb(var(--hero-overlay-rgb) / .92) 0%, rgb(var(--hero-overlay-rgb) / .62) 54%, rgb(var(--hero-overlay-rgb) / .25) 100%), var(--hero-placeholder) var(--hero-image) center / cover no-repeat; }
.hero-copy { width: min(100%, 720px); transform: translateY(16px); }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .14em; }
h1, h2 { font-family: Arial, Helvetica, sans-serif; font-weight: 500; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(50px, 6.1vw, 76px); line-height: .98; letter-spacing: -.035em; }
.hero-lede { max-width: 640px; margin: 30px 0 0; color: rgb(var(--surface-rgb) / .86); font-size: 18px; line-height: 1.58; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; margin-top: 36px; }
.hero-access-cta { min-height: 58px; display: inline-flex; align-items: center; gap: 20px; border-radius: 999px; padding: 0 26px; color: var(--accent-dark); background: var(--white); box-shadow: 0 16px 40px rgb(var(--shadow-rgb) / .25); font-size: 20px; font-weight: 850; line-height: 1.2; text-decoration: none; transition: color 150ms ease, background 150ms ease, transform 150ms ease; }
.hero-cta-arrow { position: relative; width: 20px; height: 20px; flex: 0 0 20px; }
.hero-cta-arrow img { position: absolute; inset: 0; width: 20px; height: 20px; object-fit: contain; transition: opacity 150ms ease; }
.hero-cta-arrow-hover { opacity: 0; }
.hero-access-cta:hover { color: var(--white); background: var(--accent); transform: translateY(-2px); }
.hero-access-cta:hover .hero-cta-arrow-hover { opacity: 1; }
.hero-access-cta:hover .hero-cta-arrow img:first-child { opacity: 0; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 0 24px; cursor: pointer; font-weight: 800; text-decoration: none; }
.button-primary { color: var(--white); background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.early-access-overlay { position: fixed; z-index: 50; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, 620px); visibility: hidden; color: var(--ink); pointer-events: none; }
.early-access-backdrop { grid-column: 1 / -1; grid-row: 1; background: rgb(var(--overlay-rgb) / .58); opacity: 0; backdrop-filter: blur(4px); transition: opacity 220ms ease; }
.early-access-panel { position: relative; z-index: 1; grid-column: 2; grid-row: 1; height: 100vh; height: 100svh; overflow-x: hidden; overflow-y: auto; background: var(--white); box-shadow: -24px 0 70px rgb(var(--shadow-rgb) / .3); transform: translateX(100%); transition: transform 280ms cubic-bezier(.22, 1, .36, 1); }
.early-access-overlay:target { visibility: visible; pointer-events: auto; }
.early-access-overlay:target .early-access-backdrop { opacity: 1; }
.early-access-overlay:target .early-access-panel { transform: translateX(0); }
body:has(.early-access-overlay:target) { overflow: hidden; }
.early-access-close { position: absolute; z-index: 5; top: 16px; right: 24px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-dark); background: var(--white); box-shadow: 0 8px 22px rgb(var(--shadow-rgb) / .09); font-size: 28px; line-height: 1; text-decoration: none; transition: background 140ms ease, transform 140ms ease; }
.early-access-close:hover { background: var(--soft); transform: rotate(4deg); }
.early-access-card { min-height: 100%; display: grid; align-items: center; padding: clamp(72px, 10vh, 110px) clamp(28px, 7vw, 64px); }
.early-access-card form, .early-access-confirmation { width: min(100%, 470px); display: grid; justify-self: center; }
.early-access-logo { width: 44px; height: 44px; object-fit: contain; margin-bottom: 24px; }
.early-access-card .eyebrow { margin-bottom: 10px; }
.early-access-card h2 { margin: 0; font-size: clamp(36px, 5vw, 54px); line-height: 1.04; }
.early-access-intro, .early-access-confirmation > p { margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.early-access-progress { margin: 20px 0 0; color: var(--accent-dark); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.early-access-page { display: grid; }
.early-access-page h3 { margin: 22px 0 0; font-size: 24px; line-height: 1.2; }
.early-access-question { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.early-access-question legend { padding: 0; color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.4; }
.early-access-legend-note { color: var(--muted); font-weight: 600; }
.early-access-options { display: grid; gap: 8px; margin-top: 12px; }
.early-access-options-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.early-access-option { position: relative; min-height: 46px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--muted); background: var(--white); font-size: 13px; font-weight: 700; line-height: 1.35; cursor: pointer; transition: border-color 140ms ease, background 140ms ease, color 140ms ease; }
.early-access-option:hover { border-color: var(--accent); background: var(--soft); }
.early-access-option:has(input:checked) { border-color: var(--accent); color: var(--accent-dark); background: rgb(var(--accent-rgb) / .08); }
.early-access-option:has(input:focus-visible) { outline: 3px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
.early-access-option input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--accent); outline: none; }
.early-access-field { display: grid; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 13px; font-weight: 700; }
.early-access-field + .early-access-field { margin-top: 14px; }
.early-access-field input, .early-access-field textarea { width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 13px; padding: 0 15px; color: var(--ink); background: var(--white); }
.early-access-field textarea { min-height: 88px; padding-block: 13px; line-height: 1.45; resize: vertical; }
.early-access-field small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.early-access-conditional { margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; padding: 0 16px 18px; background: var(--soft); }
.early-access-conditional .early-access-question { margin-top: 18px; }
.early-access-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.55; cursor: pointer; }
.early-access-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: var(--accent); }
.early-access-consent a { color: var(--accent-dark); font-weight: 750; }
.early-access-status { min-height: 20px; margin: 16px 0 0; color: var(--error); font-size: 13px; }
.early-access-submit { width: 100%; margin-top: 10px; }
.early-access-page-actions { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr); gap: 10px; }
.early-access-page-actions .button { margin-top: 10px; padding-inline: 18px; }
.early-access-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.demo-section, .method-section, .footer { width: min(calc(100% - 28px), 1180px); border-radius: 22px; }
.demo-section, .method-section { margin: clamp(64px, 8vw, 112px) auto 0; }
.demo-section { border-radius: 0; padding: 0 clamp(20px, 4vw, 48px); background: transparent; scroll-margin-top: 22px; }
.demo-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: clamp(28px, 6vw, 78px); align-items: end; }
.demo-heading h2, .method-copy h2 { margin: 0; font-size: clamp(36px, 5.5vw, 62px); line-height: 1.03; }
.method-copy h2 { font-size: clamp(27px, 4.1vw, 47px); }
.demo-heading p, .method-copy > p { margin: 0 0 4px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.demo-heading p { font-size: clamp(18px, 2.4vw, 24px); }
.demo-heading em { color: var(--accent-dark); font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.demo-player { margin: clamp(30px, 5vw, 48px) 0 0; }
.demo-frame { overflow: hidden; border: 8px solid var(--accent-dark); border-radius: 22px; background: var(--media-surface); box-shadow: 0 24px 60px rgb(var(--shadow-rgb) / .18); }
.demo-frame video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 14px; background: var(--media-surface); object-fit: cover; }
.demo-player figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 13px; padding: 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.demo-player figcaption span:first-child { color: var(--accent-dark); }

.how-pager { display: grid; gap: clamp(28px, 4vw, 40px); }
.how-page[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.privacy-pipeline {
  list-style: none;
  margin: clamp(30px, 5vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(12px, 2vw, 22px);
  align-items: stretch;
}
.privacy-stage { min-width: 0; display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.privacy-stage-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.privacy-stage-frame {
  min-height: 260px;
  overflow: hidden;
  border: 6px solid var(--accent-dark);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgb(var(--shadow-rgb) / .14);
}
.privacy-stage-media { background: var(--media-surface); }
.privacy-stage-media img { width: 100%; height: 100%; min-height: 260px; display: block; object-fit: cover; object-position: center 22%; }
.privacy-stage-analysis { position: relative; background: var(--media-surface); }
.privacy-stage-points {
  position: relative;
  background:
    radial-gradient(circle at 50% 38%, rgb(var(--accent-dark-rgb) / .86), transparent 58%),
    var(--media-surface);
}
.privacy-analysis-photo,
.privacy-analysis-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
  object-position: center 22%;
}
.privacy-analysis-overlay { z-index: 1; }
.privacy-stage-points .privacy-analysis-overlay { z-index: 1; }
.privacy-analysis-caption {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgb(var(--surface-rgb) / .18);
  border-radius: 999px;
  color: var(--white);
  background: rgb(var(--overlay-rgb) / .82);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
}
.privacy-stage-output {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
  color: var(--on-dark);
  background: var(--accent-dark);
}
.privacy-metrics {
  margin: 0;
  padding: 0;
  overflow: auto;
  color: var(--accent-tint);
  background: transparent;
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(12px, 1.25vw, 15px);
  font-weight: 600;
  line-height: 1.7;
  white-space: pre;
}
.privacy-metrics code { font: inherit; color: inherit; }
.privacy-negatives {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgb(var(--surface-rgb) / .22);
  list-style: none;
  color: var(--white);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}
.privacy-pipeline-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  padding-top: 28px;
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.privacy-arrow-glyph { display: inline-block; transform: rotate(-90deg); }
.privacy-pipeline-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.privacy-pipeline-note a { color: var(--accent-dark); font-weight: 700; }

.how-pager-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  padding-top: 4px;
}
.how-pager-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.how-pager-button:hover:not(:disabled) { color: var(--accent-dark); border-color: rgb(var(--accent-rgb) / .42); background: var(--soft); }
.how-pager-button:disabled { opacity: .38; cursor: default; }
.how-pager-next { color: var(--white); border-color: transparent; background: var(--accent); }
.how-pager-next:hover:not(:disabled) { color: var(--white); background: var(--accent-dark); }
.how-pager-dots { display: inline-flex; align-items: center; gap: 8px; }
.how-pager-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(var(--ink-rgb) / .18);
  cursor: pointer;
}
.how-pager-dot.is-active { background: var(--accent); }
.how-pager-dot:focus-visible, .how-pager-button:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }

.method-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; color: var(--white); background: var(--accent-dark); }
.method-image { min-height: 530px; background: var(--hero-placeholder) url("assets/forma/forma-method.webp") center / cover no-repeat; }
.method-copy { align-self: center; padding: clamp(38px, 6vw, 72px); }
.method-copy .eyebrow { color: rgb(var(--surface-rgb) / .68); }
.method-copy h2 { color: var(--white); }
.method-copy > p { margin: 24px 0 0; color: rgb(var(--surface-rgb) / .72); }
.method-copy ul { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.method-copy li { display: flex; align-items: center; gap: 10px; color: rgb(var(--surface-rgb) / .82); font-size: 14px; }
.method-copy li::before { content: "✓"; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-dark); background: var(--white); font-size: 12px; font-weight: 900; }

.footer { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin: 28px auto 0; padding: 30px 8px 42px; color: var(--muted); font-size: 12px; }
.footer-brand { font-size: 20px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand .brand-wordmark { width: 112px; height: auto; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer nav a { font-weight: 700; }

@media (max-width: 900px) {
  .hero { padding-top: 132px; }
  .method-section { grid-template-columns: 1fr; }
  .method-image { min-height: 360px; }
  .privacy-pipeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .privacy-pipeline-arrow { padding-top: 0; }
  .privacy-arrow-glyph { transform: none; }
}

@media (max-width: 680px) {
  .site-header { padding: 12px; }
  .nav { min-height: 56px; padding: 7px 8px 7px 14px; }
  .brand { font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  .brand .brand-wordmark { width: 108px; height: auto; }
  .nav-links { display: none; }
  .nav-cta { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .hero { --hero-image: url("assets/forma/forma-hero-small.webp"); min-height: 100vh; min-height: 100svh; padding: 118px 22px 64px; background-position: 58% center; }
  h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-lede { margin-top: 24px; font-size: 18px; }
  .hero-actions { margin-top: 30px; }
  .hero-access-cta { min-height: 54px; padding: 0 22px; font-size: 18px; }
  .early-access-overlay { grid-template-columns: 1fr; }
  .early-access-panel { grid-column: 1; }
  .early-access-close { top: 15px; right: 15px; width: 40px; height: 40px; }
  .early-access-card { padding: 76px 22px 36px; }
  .early-access-options-compact { grid-template-columns: 1fr; }
  .demo-section, .method-section, .footer { width: min(calc(100% - 20px), 1180px); }
  .demo-section, .method-section { margin-top: 48px; }
  .demo-section { padding: 0 10px; }
  .footer { margin-top: 18px; }
  .demo-heading { grid-template-columns: 1fr; gap: 14px; }
  .demo-heading p { margin: 0; }
  .demo-player { margin-top: 26px; }
  .demo-frame { border-width: 5px; border-radius: 16px; }
  .demo-frame video { border-radius: 11px; }
  .privacy-pipeline {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .privacy-pipeline-arrow { padding-top: 0; }
  .privacy-arrow-glyph { transform: none; }
  .privacy-stage-frame { min-height: 220px; border-width: 5px; border-radius: 16px; }
  .privacy-stage-media img { min-height: 220px; }
  .privacy-analysis-photo, .privacy-analysis-overlay { min-height: 220px; }
  .how-pager-controls { justify-content: center; }
  .how-pager-button { flex: 1 1 140px; }
  .how-pager-dots { order: -1; width: 100%; justify-content: center; }
  .method-image { min-height: 280px; }
  .method-copy { padding: 36px 24px; }
  .footer { grid-template-columns: 1fr; padding: 28px 10px 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
