/* ============================================
   Unhinged DESIGN — Mobile-first
   Webflow-ready: set --font-primary in Webflow
   ============================================ */

:root {
  --font-primary: 'PP Neue Montreal', sans-serif;
  /* Feature Display–style: high-contrast display serif for tagline (Live. Small. Opinionated.) */
  --font-display: 'Playfair Display', Georgia, serif;
  --color-bg: #E1E4E9;
  --color-text: #1a1a1a;
  --color-text-muted: #4a4a4a;
  --color-accent: #F830D7;
  --color-accent-hover: #9b0f5c;
  --color-border: #1a1a1a;
  --color-divider: #1A2B3B;
  --space-unit: 1rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --max-width: 75rem;
  --radius: 4px;
  --content-padding-x: var(--space-md);
}

/* Focus visible for keyboard users only */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

/* Skip to main content — visible on focus, off-screen otherwise */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}

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

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

html {
  font-size: 100%;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: inherit;
}

/* Buttons — states to vibe-code later */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'PP Neue Montreal', sans-serif;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 24px;
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.btn-outline {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 16px;
  background: transparent;
  color: var(--color-text);
  border-width: 1px;
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

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

/* Header */
.site-header {
  padding-top: 80px;
  padding-right: var(--content-padding-x);
  padding-bottom: var(--space-lg);
  padding-left: var(--content-padding-x);
  margin-bottom: 80px;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-cta-block {
  margin-bottom: 3rem;
}

.header-tagline {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.15;
}

.tagline-line {
  display: block;
}

.header-description {
  display: flex;
  flex-direction: row;
  gap: clamp(64px, 6vw, 120px);
  align-items: flex-start;
  padding: 0 var(--space-lg) var(--space-lg) 0;
  text-align: left;
}

.header-desc-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  max-width: 38ch;
  text-align: left;
}

.header-desc-line {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #222B34;
  line-height: normal;
}

.header-desc-line-second {
  margin-top: 24px;
}

.header-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 32px;
  justify-content: center;
  padding-top: 14px;
  border-top: 1px solid var(--color-divider);
}

.header-meta dt {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 400;
  color: #5C6975;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-meta dd {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 400;
  color: #222B34;
}

/* Visually hidden — for screen readers only (e.g. hero heading) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero — image scales with viewport width */
.hero {
  position: relative;
  padding: 0;
  margin-bottom: 80px;
  overflow: hidden;
}

/* Teaser: full-viewport hero for halo effect */
.hero-teaser {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 100vh;
  height: 100%;
  z-index: 0;
  margin: 0;
  overflow: visible;
  pointer-events: none;
}

.hero-visual {
  display: block;
  width: 100%;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  vertical-align: top;
}

/* Sections */
.section {
  padding: var(--space-xl) var(--content-padding-x);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-badge {
  margin: 0 0 24px;
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.section-heading {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.15;
}

/* For designers who are */
.who-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: flex-start;
}

.who-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.who-left .section-badge {
  margin: 0 0 24px;
  font-family: var(--font-primary);
  font-weight: 400;
  color: #000000;
}

.section-who {
  margin-top: 48px;
  margin-bottom: 32px;
}

.section-who .section-heading {
  margin-bottom: 0;
  font-size: 56px;
  line-height: normal;
}

.who-columns {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 40px;
}

.who-item {
  padding-top: 32px;
  border-top: 1px solid var(--color-divider);
}

.who-subhead {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 400;
}

.who-item p {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #222B34;
}

/* Inside the cohort */
.section-cohort {
  text-align: left;
  margin-bottom: 32px;
}

.cohort-divider {
  display: none;
  width: 1px;
  height: 96px;
  margin-left: auto;
  margin-right: auto;
  background: var(--color-divider);
}

.cohort-divider-top {
  margin-bottom: 64px;
}

.cohort-divider-bottom {
  margin-top: 64px;
}

.section-heading-cohort {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.cohort-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: var(--space-2xl);
  text-align: left;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.cohort-card {
  min-width: 0;
}

.cohort-card-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #B5139A;
}

.cohort-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  line-height: 1.6;
}

.cohort-card li {
  margin-bottom: 6px;
}

.cohort-cta-wrap {
  margin: 0;
  display: flex;
  justify-content: flex-start;
}

/* The Beta */
.section-beta {
  margin-top: 32px;
  margin-bottom: 32px;
}

.beta-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section-heading-beta {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.06em;
  color: #000000;
  text-align: left;
}

.beta-subhead {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  text-align: left;
}

.beta-content {
  text-align: left;
}

.beta-content p {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  max-width: 50ch;
  line-height: 1.6;
}

.beta-content p:last-of-type {
  margin-bottom: var(--space-xl);
}

.beta-content .btn {
  margin-top: 0;
}

.btn-beta {
  color: #FFFFFF;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 18px;
}

/* Footer */
.site-footer {
  padding: var(--space-xl) var(--space-md);
  border-top: 1px solid var(--color-divider);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-cta-text {
  margin: 0 0 var(--space-sm);
  font-size: 0.875rem;
  letter-spacing: -0.02em;
}

.footer-inner .btn {
  margin-bottom: var(--space-xl);
}

.footer-inner .btn-outline {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 16px;
  border-width: 1px;
}

.footer-legal {
  font-size: 14px;
  color: var(--color-text-muted);
  letter-spacing: -0.02em;
}

.footer-legal p {
  margin: 0 0 var(--space-xs);
}

.footer-legal a {
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--color-text);
}

/* Tablet and up */
@media (min-width: 48rem) {
  .section-cohort {
    text-align: center;
  }

  .cohort-divider {
    display: block;
  }

  .section-heading-cohort {
    text-align: center;
  }

  .cohort-cta-wrap {
    justify-content: center;
  }

  .cohort-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-beta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    text-align: left;
  }

  .section-beta .beta-left,
  .section-beta .beta-content {
    align-self: start;
  }

  .beta-content p:first-child {
    margin-top: 0;
  }

  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .footer-inner .footer-cta-text,
  .footer-inner .btn {
    margin-bottom: 0;
  }

  .footer-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }

  .footer-legal {
    text-align: right;
  }
}

/* Desktop — two-column header + match Figma spacing */
@media (min-width: 64rem) {
  :root {
    --content-padding-x: 5rem;
  }

  .site-header,
  .section,
  .site-footer {
    padding-left: var(--content-padding-x);
    padding-right: var(--content-padding-x);
  }

  .section-who {
    margin-top: 104px;
    margin-bottom: 72px;
  }

  .section-cohort {
    margin-bottom: 72px;
  }

  .section-beta {
    margin-top: 72px;
    margin-bottom: 72px;
  }

  .site-header {
    margin-bottom: 160px;
  }

  .hero {
    margin-bottom: 160px;
  }

  .who-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }

  .who-layout .who-left,
  .who-layout .who-columns {
    align-self: start;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .header-cta-block {
    margin-bottom: 0;
  }

  .hero {
    padding: 0;
  }
}

/* ============================================
   Teaser page (Figma: node 232-2)
   Heading: ABC Diatype 36px. Paragraph: Inter 18px, 304px. CTA: Inter medium, #F830D7, 8/16 padding, 4px radius.
   ============================================ */
@font-face {
  font-family: 'ABC Diatype Ultra';
  src:
    local('ABC Diatype Ultra'),
    local('ABCDiatype-Ultra'),
    url('/fonts/Diatype/ABCDiatype-Ultra.woff2') format('woff2'),
    url('/fonts/Diatype/ABCDiatype-Ultra.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body.teaser-page {
  --teaser-bg: #e9eef6;
  --teaser-text: #000000;
  --teaser-text-muted: #000000;
  --teaser-stroke: #d1d8e6;
  --teaser-btn: #F830D7;
  --teaser-btn-hover: #9b0f5c;
  margin: 0;
  min-height: 100vh;
  background: #E1E4E9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  cursor: none;
}

body.teaser-page .cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid black;
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

body.teaser-page .teaser-heading,
body.teaser-page .teaser-tagline {
  color: black;
}

@media (pointer: coarse) {
  body.teaser-page {
    cursor: auto;
  }
  body.teaser-page .cursor {
    display: none;
  }
}



.teaser-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Heading: ABC Diatype 36px. 8px below to paragraph */
.teaser-heading {
  margin: 0 0 8px;
  font-family: 'ABC Diatype Ultra', var(--font-primary);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--teaser-text);
}

.teaser-heading-move {
  display: inline-block;
  will-change: transform;
}

.heading-reveal {
  position: relative;
  color: black;
  display: inline-block;
}

.heading-reveal::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--teaser-btn, #F830D7);
  clip-path: var(--clip-path, circle(0px at 50% 50%));
  transition: none;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  body.teaser-page .cursor {
    display: none;
  }
  body.teaser-page .unhinged {
    transform: none !important;
  }
  body.teaser-page .cta::before,
  body.teaser-page .cta::after {
    display: none;
  }
}

/* Paragraph: Neue Montreal 18px, width 304px — space to CTA */
.teaser-tagline {
  margin: 0 0 18px;
  font-family: 'PP Neue Montreal', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  color: var(--teaser-text-muted);
  max-width: 304px;
}

/* CTA: PP Neue Montreal medium */
.btn-teaser {
  padding: 8px 16px;
  font-family: 'PP Neue Montreal', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  background: var(--teaser-btn);
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}

body.teaser-page .teaser-main > .btn-teaser.cta {
  transform: translateX(3.5px);
}

.btn-teaser:hover {
  background: var(--teaser-btn-hover);
}

/* CTA circle reveal: inside cursor circle show black + white text */
.cta {
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: inherit;
  clip-path: var(--cta-clip, circle(0px at 0 0));
  pointer-events: none;
  transition: none;
}

.cta::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: center;
  color: #fff;
  clip-path: var(--cta-clip, circle(0px at 0 0));
  pointer-events: none;
  transition: none;
}

/* Tighter wrapped label only on very narrow viewports */
@media (max-width: 24rem) {
  body.teaser-page .btn-teaser {
    line-height: 1.2;
  }

  body.teaser-page .cta::after {
    line-height: 1.2;
  }
}

/* ============================================
   Early access — cohort interest form
   Editorial layout, no boxed fields
   ============================================ */
body.page-early-access {
  margin: 0;
  min-height: 100vh;
  background: #e9eef6;
  color: #000;
}

.early-access {
  min-height: 100vh;
}

.early-access__inner {
  max-width: 68.75rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (min-width: 56rem) {
  .early-access__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 4.5rem);
  }
}

.early-access__intro {
  padding-top: 0.25rem;
}

.early-access__headline {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-family: 'ABC Diatype Ultra', var(--font-primary);
  font-size: clamp(2.125rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #000;
}

.early-access__body {
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.72);
  max-width: min(36rem, 100%);
}

.early-access__body p {
  margin: 0 0 1.25rem;
}

.early-access__body p.early-access__body-lead {
  margin-bottom: 1.125rem;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.84);
}

.early-access__body-lead-primary {
  display: block;
  margin-bottom: 3px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.88);
}

.early-access__body-lead-secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: rgba(0, 0, 0, 0.78);
}

.early-access__body-lead-secondary > span {
  display: block;
}

.early-access__body p.early-access__body-note {
  margin-bottom: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #5a5a5a;
}

.early-access__body p:last-child {
  margin-bottom: 0;
}

.early-access__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 0.125rem;
}

.early-access__field {
  margin: 0;
}

.early-access__fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.early-access__label {
  display: block;
  margin: 0 0 8px;
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.0125em;
  color: #000;
}

.early-access__fieldset .early-access__label {
  padding: 0;
}

.early-access__error {
  margin: 0.4rem 0 0;
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: #b42318;
}

.early-access__error--submit {
  margin-top: 0.75rem;
}

/* Success toast — sits under Submit */
.early-access__toast {
  margin-top: 0.75rem;
  max-width: min(100%, 22rem);
  padding: 0.75rem 0.9rem;
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.early-access__toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.early-access__toast-text {
  margin: 0;
}

.btn-early-access:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/*
 * Error: red border on the shell = “invalid”. No outline on the shell until keyboard focus.
 * Keyboard focus: black ring only around the input shell, outline-offset 1px = 1px gap past the red border.
 */
.early-access__field--error .early-access__select-shell,
.early-access__field--error .early-access__input-shell {
  border: 2px solid #c53030;
  background: #fff;
  box-shadow: none;
  outline: none;
}

.early-access__field--error .early-access__select-shell:focus-within,
.early-access__field--error .early-access__input-shell:focus-within {
  border-color: #c53030;
  outline: none;
  box-shadow: none;
}

.early-access__field--error .early-access__input-shell:has(.early-access__input:focus-visible) {
  outline: 2px solid #1a1a1a;
  outline-offset: 1px;
}

.early-access__fieldset.early-access__field--error .early-access__checks {
  padding: 0.5rem 0.5rem 0.5rem 0.35rem;
  margin-left: -0.35rem;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #c53030;
}

.early-access__hint {
  margin: 0 0 16px;
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #5a5a5a;
}

/* Time zone: closed field matches page; open list is custom HTML (not OS menu) */
/* Shell is positioning context so listbox top:100% = bottom of trigger */
.early-access__select-shell {
  position: relative;
  overflow: visible;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, outline-color 0.15s ease;
}

.early-access__input-shell {
  position: relative;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, outline-color 0.15s ease;
}

.early-access__field:not(.early-access__field--error) .early-access__select-shell:hover,
.early-access__field:not(.early-access__field--error) .early-access__input-shell:hover {
  border-color: rgba(0, 0, 0, 0.14);
  background: #fff;
}

/* Do not apply default “focused field” border on shells that are in error — keep pure error chrome only */
.early-access__field:not(.early-access__field--error) .early-access__select-custom.is-open .early-access__select-shell,
.early-access__field:not(.early-access__field--error) .early-access__select-shell:focus-within,
.early-access__field:not(.early-access__field--error) .early-access__input-shell:focus-within {
  border-color: rgba(0, 0, 0, 0.22);
  background: #fff;
}

/* Focus (valid fields): neutral outline. Invalid fields use red border only — no outline. */
.early-access__field:not(.early-access__field--error) .early-access__select-custom.is-open .early-access__select-shell,
.early-access__field:not(.early-access__field--error) .early-access__select-shell:focus-within,
.early-access__field:not(.early-access__field--error) .early-access__input-shell:focus-within {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.early-access__select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.8rem 0.85rem 0.8rem 1rem;
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-align: left;
  color: #000;
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
}

.early-access__select-trigger:focus {
  outline: none;
}

.early-access__select-trigger:focus-visible {
  outline: none;
}

.early-access__select-value {
  flex: 1;
  min-width: 0;
}

.early-access__select-value.is-placeholder {
  color: rgba(0, 0, 0, 0.38);
}

.early-access__select-chevron {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 14 14'%3E%3Cpath stroke='%231a1a1a' stroke-opacity='0.4' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round' d='M3.5 5.25 7 8.75l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  transition: transform 0.2s ease;
}

.early-access__select-custom.is-open .early-access__select-chevron {
  transform: rotate(180deg);
}

.early-access__listbox {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: min(16.5rem, 55vh);
  overflow-y: auto;
  background: #fafbfd;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 7px;
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #000;
  -webkit-overflow-scrolling: touch;
}

.early-access__listbox:focus {
  outline: none;
}

.early-access__listbox:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.early-access__option {
  margin: 0;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.1s ease;
}

.early-access__option:hover,
.early-access__option.is-highlighted {
  background: rgba(0, 0, 0, 0.055);
}

.early-access__option[aria-selected="true"] {
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .early-access__select-chevron {
    transition: none;
  }
}

.early-access__input {
  display: block;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #000;
  background: transparent;
  border: none;
  border-radius: 7px;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.early-access__input::placeholder {
  color: rgba(0, 0, 0, 0.32);
}

.early-access__input:focus {
  outline: none;
}

.early-access__input:focus-visible {
  outline: none;
}

.early-access__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.early-access__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.78);
}

.early-access__check input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.early-access__check-ui {
  position: relative;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2em;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.26);
  background: rgba(255, 255, 255, 0.65);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.early-access__checks--box .early-access__check input:checked + .early-access__check-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  box-shadow: inset 0 0 0 1.5px #1a1a1a;
}

/* White checkmark, centered (SVG scales with box) */
.early-access__checks--box .early-access__check input:checked + .early-access__check-ui::after {
  content: "";
  position: static;
  width: 0.82rem;
  height: 0.82rem;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  border: none;
  transform: none;
}

.early-access__check input:focus-visible + .early-access__check-ui {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.early-access__actions {
  margin-top: -12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.btn-early-access {
  padding: 0.6rem 1.125rem;
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  background: var(--teaser-btn, #f830d7);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-early-access:hover {
  background: var(--teaser-btn-hover, #9b0f5c);
}

.btn-early-access:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

@keyframes early-access-confetti-burst {
  0% {
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 1;
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--cf-tx, 0px)), calc(-50% + var(--cf-ty, 0px))) scale(1);
    opacity: 0;
  }
}

.early-access-confetti {
  position: fixed;
  z-index: 10001;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  animation: early-access-confetti-burst 0.88s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .early-access__toast {
    transition: none;
  }

  .early-access__check-ui {
    transition: none;
  }

  .early-access-confetti {
    animation: none;
    opacity: 0;
  }
}

.early-access__form-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* #5a5a5a on #e9eef6 ≈ 5.9:1 — exceeds 3:1 and WCAG AA normal text (4.5:1) */
.early-access__legal {
  margin: 0.5rem 0 0;
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: #5a5a5a;
  max-width: 32rem;
}

.early-access__privacy-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #5a5a5a;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.early-access__privacy-link:hover {
  color: #1a1a1a;
  text-decoration-color: #1a1a1a;
}

.privacy-modal {
  margin: auto;
  padding: 0;
  max-width: min(32rem, calc(100vw - 2.5rem));
  border: none;
  background: transparent;
  color: #000;
}

.privacy-modal::backdrop {
  background: rgba(26, 26, 26, 0.28);
}

.privacy-modal__inner {
  position: relative;
  max-height: min(85vh, 40rem);
  overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.25rem);
  background: #f2f5fa;
  font-family: 'PP Neue Montreal', var(--font-primary);
}

.privacy-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  padding: 0.35rem 0.5rem;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: #5a5a5a;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.privacy-modal__close:hover {
  color: #1a1a1a;
}

.privacy-modal__close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.privacy-modal__title {
  margin: 0 2.25rem 0.35rem 0;
  font-family: 'ABC Diatype Ultra', var(--font-primary);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #000;
}

.privacy-modal__meta {
  margin: 0 0 1.1rem;
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: #5a5a5a;
}

.privacy-modal__body {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.78);
}

.privacy-modal__body p {
  margin: 0 0 1rem;
}

.privacy-modal__body p:last-child {
  margin-bottom: 0;
}

.privacy-modal__h3 {
  margin: 1.15rem 0 0.4rem;
  font-family: 'PP Neue Montreal', var(--font-primary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #000;
}

.privacy-modal__body > .privacy-modal__h3:first-child {
  margin-top: 0;
}

.privacy-modal__list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.privacy-modal__list li {
  margin: 0 0 2px;
  padding-left: 0.25rem;
}

.privacy-modal__list li:last-child {
  margin-bottom: 0;
}

.privacy-modal__body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.privacy-modal__body a:hover {
  color: #000;
}
