html, body {
  margin: 0;
  min-height: 100%;
  background: var(--belori-bg);
}

body {
  font-family: var(--font-body);
  color: var(--belori-text);
}

a {
  color: var(--belori-indigo-900);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--belori-border);
  background: rgba(250, 248, 247, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
}

.topbar-inner,
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 17px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand picture,
.brand img {
  display: block;
  width: 34px;
  height: 34px;
}

.brand img { border-radius: 9999px; }

.brand span {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.back {
  color: var(--belori-text-mid);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.page-shell {
  width: min(1040px, calc(100% - 64px));
  min-height: calc(100vh - 164px);
  margin: 0 auto;
  padding: 72px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 72px;
  align-items: start;
  box-sizing: border-box;
}

.intro {
  padding-top: 26px;
}

.intro .eyebrow {
  color: #9a4700;
  font-weight: 800;
}

.intro h1 {
  margin: 14px 0 20px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.intro > p {
  margin: 0;
  max-width: 530px;
  font-size: 18px;
  line-height: 29px;
  color: var(--belori-text-mid);
}

.intro ul {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 15px;
}

.intro li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 22px;
  color: var(--belori-text);
}

.intro li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--belori-indigo-900);
  font-weight: 800;
}

.form-card {
  padding: 34px;
  border: 1px solid var(--belori-border);
  border-radius: 28px;
  background: var(--belori-surface-2);
  box-shadow: 0 24px 60px -34px rgba(39, 24, 126, 0.38), var(--shadow-card);
}

form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field legend {
  font-size: 14px;
  font-weight: 750;
  color: var(--belori-ink-2);
}

.field p {
  margin: -2px 0 2px;
  font-size: 12px;
  line-height: 18px;
  color: var(--belori-text-mid);
}

.field input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1.5px solid var(--belori-border-3);
  border-radius: 14px;
  outline: none;
  background: var(--input-bg);
  color: var(--belori-ink);
  font: 500 16px/22px var(--font-body);
  box-sizing: border-box;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.field input[type="email"]:hover { background: var(--input-bg-hover); }

.field input[type="email"]:focus-visible {
  border-color: var(--belori-lavender-500);
  box-shadow: 0 0 0 4px rgba(117, 139, 253, 0.16);
  background: #fff;
}

.platform-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.platform-field legend {
  padding: 0;
  margin-bottom: 8px;
}

.platform-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.platform-option {
  position: relative;
  display: block;
}

.platform-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.platform-option span {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1.5px solid var(--belori-border-3);
  border-radius: 14px;
  background: var(--input-bg);
  font-size: 14px;
  font-weight: 700;
  color: var(--belori-ink);
  text-align: center;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.platform-option small {
  font-size: 11px;
  font-weight: 500;
  color: var(--belori-text-mid);
}

.platform-option input:hover + span { background: var(--input-bg-hover); }

.platform-option input:checked + span {
  border-color: var(--belori-lavender-500);
  background: var(--belori-lavender-tint);
  box-shadow: 0 0 0 1px var(--belori-lavender-500) inset;
}

.platform-option input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(117, 139, 253, 0.16);
  border-color: var(--belori-lavender-500);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 20px;
  color: var(--belori-text);
  cursor: pointer;
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--belori-indigo-900);
  cursor: pointer;
}

button {
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: var(--belori-indigo-900);
  color: #fff;
  font: 800 16px/22px var(--font-body);
  cursor: pointer;
  box-shadow: 0 14px 28px -16px rgba(39, 24, 126, 0.72);
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

button:hover { box-shadow: 0 16px 32px -15px rgba(39, 24, 126, 0.8); }
button:active { transform: scale(0.985); }
button:focus-visible { outline: 3px solid rgba(117, 139, 253, 0.55); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: 0.65; }

.form-status {
  min-height: 20px;
  margin: -6px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--belori-text-mid);
}

.form-status.is-success { color: #08783e; }
.form-status.is-error { color: #b42318; }

.privacy-note {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--belori-border-2);
  font-size: 12px;
  line-height: 19px;
  color: var(--belori-text-mid);
}

footer {
  border-top: 1px solid var(--belori-border-2);
  background: #fff;
}

.footer-inner {
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 12px;
  color: var(--belori-text-mid);
}

.footer-inner a { color: var(--belori-text-mid); }

@media (max-width: 760px) {
  .topbar-inner,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-shell {
    width: calc(100% - 36px);
    padding: 44px 0 64px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .intro { padding-top: 0; }
  .intro h1 { font-size: 38px; line-height: 41px; }
  .intro > p { font-size: 16px; line-height: 25px; }
  .intro ul { margin-top: 24px; }
  .form-card { padding: 24px 20px; border-radius: 22px; }
  .platform-options { grid-template-columns: 1fr; }
  .platform-option span { text-align: left; grid-template-columns: 1fr auto; align-items: baseline; }
  .footer-inner { gap: 12px; flex-wrap: wrap; }
}

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