@font-face {
  font-family: Inter;
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #071321;
  --muted: #68768a;
  --line: #d5dce5;
  --blue: #0874f9;
  --paper: #eef1f4;
  --white: #fff;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #dfe4ea;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: #dfe4ea; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 12px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-page {
  width: min(1120px, calc(100% - 40px));
  min-height: 720px;
  margin: 24px auto;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(7, 17, 31, .2);
}

.apply-nav {
  min-height: 72px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.back-link {
  width: 34px;
  min-height: 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
  text-decoration: none;
}
.partner-brand { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; }
.partner-brand b { font-size: 24px; letter-spacing: -.055em; }
.partner-brand span,
.nav-label,
.eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-label { color: #69768a; }

.application-layout {
  min-height: 648px;
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(520px, 1.22fr);
}

.apply-head {
  min-height: 648px;
  padding: 64px clamp(36px, 4vw, 58px) 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.apply-head::after {
  content: "";
  width: 170px;
  height: 170px;
  position: absolute;
  top: -85px;
  right: -85px;
  border-radius: 50%;
  background: var(--blue);
}
.apply-head .eyebrow { margin: 0 0 20px; color: #78b7ff; }
h1 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(58px, 6vw, 76px);
  line-height: .88;
  letter-spacing: -.075em;
}
.intro {
  max-width: 360px;
  margin: 28px 0 0;
  color: #aab6c6;
  font-size: 14px;
  line-height: 1.55;
}
.publish-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid #2a3b50;
  color: #7e8da1;
  font-size: 10px;
  line-height: 1.5;
}

form {
  min-width: 0;
  padding: 58px clamp(34px, 4.8vw, 66px) 40px;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.form-head {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.form-head p { margin: 0; }
.form-head p:last-child { color: var(--muted); font-size: 11px; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}
.field { min-width: 0; display: grid; gap: 8px; }
.field > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 13px;
  border: 1px solid #aeb9c7;
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
}
.field input::placeholder { color: #8a96a6; }

.form-actions {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 270px);
  align-items: center;
  gap: 22px;
}
.form-error,
.prototype-status {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}
.form-error:empty,
.prototype-status:empty { display: none; }
.form-error { color: #a41b1b; font-weight: 700; }
.prototype-status { color: #455469; }
.primary-action {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.primary-action:hover { background: #0065df; }
.form-honeypot { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; opacity:0 !important; }
.partner-result { margin:auto; padding:48px clamp(34px,4.8vw,66px); background:#fff; }
.partner-result[hidden] { display:none; }
.partner-result > p { margin:0 0 12px; color:var(--blue); font-size:9px; font-weight:850; letter-spacing:.12em; }
.partner-result h2 { margin:0 0 14px; font-size:40px; letter-spacing:-.055em; }
.partner-result > div:not(.partner-result-actions) { color:var(--muted); font-size:12px; }
.partner-result-actions { margin-top:24px; display:flex; flex-wrap:wrap; gap:10px; }
.partner-result-actions a,.partner-result-actions button { min-height:48px; padding:0 16px; display:inline-flex; align-items:center; border:1px solid var(--ink); color:var(--ink); background:#fff; font-size:10px; font-weight:800; text-decoration:none; cursor:pointer; }
.partner-result-actions button { border-color:var(--blue); color:#fff; background:var(--blue); }
.partner-copy-preview { width:100%; min-height:140px; margin-top:12px; padding:10px; border:1px solid #c8d0da; color:#263448; background:#f7f8fa; font:10px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace; resize:vertical; }
.partner-copy-preview[hidden] { display:none; }
.partner-result .partner-copy-status { min-height:14px; margin:8px 0 0; color:#455469; font-size:9.5px; font-weight:600; letter-spacing:0; line-height:1.4; text-transform:none; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #88beff;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .site-page { width: min(100% - 24px, 760px); }
  .application-layout { grid-template-columns: 1fr; }
  .apply-head {
    min-height: 300px;
    padding: 48px 36px 30px;
    display: block;
  }
  h1 { font-size: 64px; }
  .intro { margin-top: 22px; }
  .publish-note { display: none; }
  form { min-height: 470px; padding: 38px 36px 34px; }
  .form-actions { margin-top: 28px; }
}

@media (max-width: 560px) {
  body { background: var(--white); }
  .site-page { width: 100%; min-height: 100dvh; margin: 0; box-shadow: none; }
  .apply-nav { min-height: 64px; padding: 0 20px; grid-template-columns: 32px 1fr auto; gap: 12px; }
  .back-link { width: 32px; }
  .partner-brand b { font-size: 22px; }
  .application-layout { min-height: calc(100dvh - 64px); }
  .apply-head { min-height: 188px; padding: 36px 22px 32px; }
  .apply-head::after { width: 116px; height: 116px; top: -58px; right: -58px; }
  .apply-head .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(44px, 12.5vw, 56px); }
  .intro { display: none; }
  form { min-height: 0; padding: 28px 22px 30px; }
  .form-head { margin-bottom: 20px; }
  .form-head p:last-child { display: none; }
  .field-grid { grid-template-columns: 1fr; gap: 16px; }
  .field input, .field select { min-height: 50px; font-size: 16px; }
  .form-actions { margin-top: 20px; padding-top: 0; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .form-actions > div:has(.form-error:empty):has(.prototype-status:empty) { display: none; }
  .primary-action { min-height: 54px; }
}
