:root {
  --bg: #2a2a2c;
  /* Right column: barely lighter than the form side */
  --bg-proof: #303034;
  --fg: #ffffff;
  /* Darker “light” grays for better contrast */
  --lbl: #8a8a8a;
  --dim: #707070;
  --rule: #3d3d40;
  --rule-f: #ffffff;
  --pw-unmet: #e8833a;
  --pw-met: #34c759;
  /* Right column: shared muted copy */
  --proof-gray: #a3a3a8;
  /* Icy UI (reference: #F1F4F9 fill, #A9BEDB border, #D0DBE9 accents) */
  --cta: #f1f4f9;
  --cta-border: #a9bedb;
  --cta-h: #e8edf5;
  --cta-ink: #1e293b;
  --err: #ff6b6b;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========  layout  ======== */
.page {
  display: flex;
  min-height: 100dvh;
}

.col-form {
  flex: 0 0 68%;
  width: 68%;
  max-width: 68%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #3a3a3d;
  overflow-y: auto;
}

.col-proof {
  flex: 0 0 32%;
  width: 32%;
  max-width: 32%;
  background: var(--bg-proof);
  display: flex;
  flex-direction: column;
  padding: 40px 36px 48px;
  overflow-y: auto;
}

/* ========  form head  ======== */
.form-head {
  text-align: center;
  padding: 88px 32px 0;
  flex-shrink: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  outline-offset: 3px;
}

.logo-link:focus-visible {
  outline: 2px solid var(--cta-border);
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.logo-mark {
  height: 34px;
  width: auto;
  max-width: min(120px, 42vw);
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  display: inline-block;
}

/* ========  form body  ======== */
.form-scroll {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 48px 80px;
}

.h1 {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-align: center;
}

.sub {
  margin: 0 auto 44px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--lbl);
  text-align: center;
  max-width: 48em;
}

/* ========  fields  ======== */
.group {
  margin-bottom: 24px;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Avoid double spacing: .group also has margin-bottom; row2 already separates this row. */
.row2 .group {
  margin-bottom: 0;
}

.lbl {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--lbl);
  margin-bottom: 0;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Field labels (email, name, password) — stronger contrast on charcoal */
.group .lbl {
  color: #c9c9cc;
  font-weight: 600;
}

.req {
  color: #a8a8ac;
  font-weight: 600;
  margin-left: 1px;
}

/* Checkbox lines inherit .chk { color: var(--fg) }; keep * same as .group .lbl .req */
.chk-txt .req {
  color: #a8a8ac;
  font-weight: 600;
  margin-left: 1px;
}

.fs-products.fs--locked .products-work .chk-txt .req {
  color: var(--dim);
}

/* Grid avoids flex shrinking the hint to 0 width (hint must stay readable). */
.lbl-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
  margin-bottom: 0;
}

@media (min-width: 560px) {
  .lbl-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 16px;
    align-items: baseline;
  }
}

.lbl-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
  line-height: 1.45;
  min-width: 0;
  word-break: break-word;
}

.line {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.12s;
}

.line:focus-within {
  border-color: var(--rule-f);
}

.line input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 12px 0 10px;
  min-width: 0;
  outline: none;
}

.line input::placeholder { color: #555; }

.job-role-wrap .line input::placeholder {
  font-size: 12px;
  color: #6a6a6e;
}

.line--trail input { padding-right: 4px; }

.line-trail {
  color: var(--dim);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.eye {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--dim);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
}
.eye:hover { color: var(--fg); }

/* ========  password rules  ======== */
.pw-group {
  margin-bottom: 24px;
}

.pw-rules {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  /* No extra top border — avoids a double line with .line’s bottom border */
  max-width: 100%;
}

.pw-rule {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--pw-unmet);
}

.pw-rule:last-child {
  margin-bottom: 0;
}

.pw-rule.is-met {
  color: var(--pw-met);
}

.pw-rule--personal {
  display: none;
}

.pw-ico {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  margin-top: 1px;
  border: 1px solid currentColor;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.pw-ico-inner {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Unmet: thin × */
.pw-rule.is-unmet .pw-ico-inner::before,
.pw-rule.is-unmet .pw-ico-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
}

.pw-rule.is-unmet .pw-ico-inner::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.pw-rule.is-unmet .pw-ico-inner::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Met: thin check — clear unmet × first so no double stroke */
.pw-rule.is-met .pw-ico-inner::before {
  display: none;
  content: none;
}

.pw-rule.is-met .pw-ico-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 3px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.25px 1.25px 0;
  transform: translate(-50%, -50%) rotate(45deg);
  background: none;
  box-sizing: border-box;
}

/* ========  checkboxes  ======== */
.fs {
  border: none;
  margin: 4px 0 28px;
  padding: 0;
}

.fs-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin: 0 0 10px;
  padding: 0;
  letter-spacing: -0.01em;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chk {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

/* Visually hidden but focusable + custom square (transparent, no radius, border = label text) */
.chk input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  outline: none;
}

.chk-box {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  margin-top: 3px;
  border: 1px solid var(--fg);
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, border-color 0.12s ease;
  outline: none;
}

/* Selected: solid fill + dark checkmark */
.chk input:checked + .chk-box {
  background: var(--fg);
  border-color: var(--fg);
}

.chk input:checked + .chk-box::after {
  content: "";
  width: 3px;
  height: 7px;
  border: solid var(--bg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}

.chk-txt {
  flex: 1;
  min-width: 0;
  padding-top: 0;
}

.fs-note {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
  line-height: 1.45;
}

/* Locked products until valid email structure */
.fs-products.fs--locked .fs-title {
  color: var(--dim);
}

.fs-products.fs--locked .products-work .chk-txt {
  color: var(--dim);
}

.fs-products.fs--locked .products-work {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.fs-products.fs--locked .products-work .chk input {
  pointer-events: none;
}

.fs-products.fs--locked .products-work .chk-box {
  border-color: var(--dim);
  opacity: 0.85;
}

.chk--solo {
  cursor: default;
}

.chk--solo input:disabled + .chk-box {
  opacity: 1;
  pointer-events: none;
}

/* ========  cta  ======== */
.cta {
  width: 100%;
  appearance: none;
  border: 1px solid var(--cta-border);
  border-radius: 0;
  background: var(--cta);
  color: var(--cta-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 14px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
}

.cta:hover:not(:disabled) {
  background: var(--cta-h);
  border-color: #9eb4d4;
}
.cta:disabled { opacity: 0.5; cursor: not-allowed; }
.cta--link { text-decoration: none; margin-top: 16px; }

/* ========  error  ======== */
.err {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--err);
  min-height: 0;
}
.err:empty { display: none; }

/* ========  spinner  ======== */
.spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(30, 41, 59, 0.2);
  border-top-color: var(--cta-ink);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========  success  ======== */
.fields.is-hidden, .done.is-hidden { display: none !important; }
.done { padding-top: 8px; text-align: center; }
.done-title { margin: 0 0 10px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.done-txt { margin: 0 0 24px; font-size: 14px; color: var(--lbl); line-height: 1.55; }

/* ========  right column  ======== */
.hero {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  background: #38383c;
}

.hero-img {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.28) 100%),
    linear-gradient(135deg, #4a5a4a 0%, #3a4a3a 30%, #2e3e2e 60%, #2a2a2c 100%);
}

.hero-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--proof-gray);
}

.quote {
  margin: 0 0 18px;
  padding: 0;
  border: none;
}

.quote p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--proof-gray);
}

.attr {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 400;
  color: var(--dim);
  line-height: 1.4;
}

.stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 0;
}

.stat-col {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--proof-gray);
}

.stat-txt {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--proof-gray);
  opacity: 0.92;
  max-width: 180px;
}

/* ========  utility  ======== */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cta);
  border: 1px solid var(--cta-border);
  color: var(--cta-ink);
  padding: 8px 12px;
  z-index: 100;
  font-weight: 500;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

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

/* ========  responsive  ======== */
@media (max-width: 960px) {
  .page {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0 0 32px;
    box-sizing: border-box;
  }

  /* Form column stays readable width; right column is full-bleed background on phone */
  .col-form {
    flex: 1 1 auto;
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    border-right: none;
    border-bottom: 1px solid #3a3a3d;
  }

  .col-proof {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 32px 20px 40px;
    box-sizing: border-box;
  }

  .form-head {
    padding-top: 64px;
    padding-left: 0;
    padding-right: 0;
  }

  .form-scroll {
    padding: 28px 0 48px;
    max-width: 100%;
  }

  .row2 { grid-template-columns: 1fr; gap: 0; }
  .row2 .group { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
