/* Public application page */

@font-face { font-family: 'Fira Sans'; src: url(fonts/firasans-400.woff) format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url(fonts/firasans-500.woff) format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url(fonts/firasans-600.woff) format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url(fonts/firasans-700.woff) format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url(fonts/firasans-800.woff) format('woff'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --paper: #FBF8FA;
  --panel: #FFFFFF;
  --ink: #221326;
  --muted: #6B5A6E;
  --line: #EADFE7;
  --line-strong: #CDBCC9;
  --berry: #C21E64;
  --berry-deep: #9A1450;
  --berry-tint: #FCE7F0;
  --error: #B42318;
  --error-tint: #FEF0EE;
  --font: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, fieldset, legend { margin: 0; }
a { color: var(--berry-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
.nowrap { white-space: nowrap; }

/* ---------- Layout ---------- */

.page {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.intro {
  position: relative;
  padding: 28px max(20px, env(safe-area-inset-right, 0px)) 28px max(20px, env(safe-area-inset-left, 0px));
}
.intro-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.rings {
  position: absolute;
  color: var(--berry);
  width: 560px;
  height: 560px;
  top: -250px;
  right: -270px;
  opacity: .55;
}
.intro-inner { position: relative; max-width: 520px; }

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 28px;
}
.mark-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--berry);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 9px var(--berry);
  flex: none;
}

h1 {
  font-size: 42px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 12ch;
}
.lede {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}

.steps {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.45;
}
.step-n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--berry);
  color: var(--berry-deep);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}

.form-wrap {
  padding: 4px max(10px, env(safe-area-inset-right, 0px)) 48px max(10px, env(safe-area-inset-left, 0px));
  min-width: 0;
}
#apply {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 18px 28px;
  max-width: 680px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .intro { padding: 44px 40px 32px; }
  h1 { font-size: 52px; }
  .form-wrap { padding: 4px 32px 64px; }
  #apply { padding: 36px 36px 40px; }
}

@media (min-width: 1024px) {
  .page {
    grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1fr);
    align-items: start;
  }
  .intro { padding: 64px 48px 64px 48px; min-height: 100vh; }
  .intro-inner { position: sticky; top: 64px; }
  .intro-art { right: auto; width: 200%; }
  .rings { width: 760px; height: 760px; top: -430px; right: auto; left: 210px; }
  h1 { font-size: 62px; }
  .lede { font-size: 19px; }
  .form-wrap { padding: 48px 48px 80px 8px; position: relative; z-index: 1; }
  #apply { margin: 0; padding: 40px 44px 44px; }
}

/* ---------- Sections ---------- */

.sec + .sec {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.sec h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.sec-n {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--berry);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sec-lede { color: var(--muted); font-size: 16px; margin: -10px 0 18px; }

/* ---------- Fields ---------- */

.field { margin-top: 18px; min-width: 0; }
.sec h2 + .field, .plat-head + .field { margin-top: 0; }
fieldset.field { border: 0; padding: 0; min-width: 0; }

label, legend {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  padding: 0;
}
legend { margin-bottom: 4px; }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 4px; }
.hint { margin-top: 2px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

input[type=text], input[type=tel], input[type=email], input[type=url], select, textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 17px;
  line-height: 1.35;
  background: #FFFFFF;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 128px; resize: vertical; }
select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236B5A6E' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
input::placeholder, textarea::placeholder { color: #A08FA0; }
input:focus, select:focus, textarea:focus {
  border-color: var(--berry);
  box-shadow: 0 0 0 4px rgba(194, 30, 100, .16);
}

.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 560px) {
  .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.field-group .inline-check { margin-top: 10px; }
.inline-check, .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
.inline-check input, .check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--berry);
}

.err {
  margin-top: 6px;
  color: var(--error);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}
.has-error > input, .has-error > select, .has-error > textarea {
  border-color: var(--error);
  background-color: #FFFBFA;
}

.count { margin-top: 4px; font-size: 13.5px; color: var(--muted); text-align: right; min-height: 18px; }
.echo { margin-top: 4px; font-size: 14px; color: var(--muted); min-height: 20px; }
.echo.warn { color: var(--error); }

/* ---------- Choice chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip { position: relative; display: inline-flex; font-weight: 500; cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  font-size: 15.5px;
  line-height: 1.25;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #FFFFFF;
  transition: background-color .15s, border-color .15s, color .15s;
  user-select: none;
}
.chip input:checked + span {
  background: var(--berry-tint);
  border-color: var(--berry);
  color: var(--berry-deep);
  font-weight: 600;
}
.chip input:focus-visible + span { outline: 3px solid var(--berry); outline-offset: 2px; }
.has-error .chip span { border-color: #E3A39B; }

/* ---------- Platforms ---------- */

.plats { display: grid; gap: 14px; }
.plat {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 6px;
  background: #FFFFFF;
}
.plat[hidden] { display: none; }
.plat.has-error { border-color: #E9B4AD; }
.plat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.plat-title { font-size: 16px; font-weight: 700; }
.plat-remove, .add-plat {
  border: 0;
  background: none;
  cursor: pointer;
}
.plat-remove {
  color: var(--berry-deep);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 2px;
}
.add-plat {
  display: block;
  width: 100%;
  margin-top: 14px;
  min-height: 50px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--berry-deep);
  font-size: 16px;
  font-weight: 600;
}
.add-plat:hover { border-color: var(--berry); background: var(--berry-tint); }
.reach {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--berry-tint);
  color: var(--berry-deep);
  font-size: 16px;
}
.reach b { font-weight: 800; font-variant-numeric: tabular-nums; }

.promo-details[hidden] { display: none; }

/* ---------- Sending ---------- */

.final {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.check-field { margin-top: 14px; }
.check-field:first-child { margin-top: 0; }
.send {
  display: block;
  width: 100%;
  margin-top: 24px;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: var(--berry);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background-color .15s;
}
.send:hover { background: var(--berry-deep); }
.send:disabled { opacity: .75; cursor: progress; }
.privacy { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.summary {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--error-tint);
  border-left: 4px solid var(--error);
  font-size: 15.5px;
}
.summary:focus { outline: 3px solid var(--error); outline-offset: 2px; }
.summary-title { font-weight: 700; color: var(--error); margin-bottom: 6px; }
.summary ul { padding-left: 20px; }
.summary li + li { margin-top: 2px; }
.summary a { color: var(--error); }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

button:focus-visible, a:focus-visible, .inline-check input:focus-visible, .check input:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 2px;
}

/* ---------- Choosing creator or salesperson ---------- */

.choose { max-width: 680px; margin: 0 auto; }
.choose-title {
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.choice-list { display: grid; gap: 14px; }
.choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
  padding: 22px 20px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.choice-card:hover { border-color: var(--berry); box-shadow: 0 0 0 4px rgba(194, 30, 100, .08); }
.choice-icon {
  grid-row: 1 / span 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--berry-tint);
  color: var(--berry);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.choice-icon svg { width: 28px; height: 28px; }
.choice-name { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.choice-text { font-size: 16px; line-height: 1.5; color: var(--muted); }
.choice-go {
  margin-top: 6px;
  color: var(--berry-deep);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.choose-note { margin-top: 14px; font-size: 15px; color: var(--muted); }

@media (min-width: 600px) {
  .choice-card { padding: 26px 26px; column-gap: 20px; }
}
@media (min-width: 1024px) {
  .choose { margin: 0; }
}

.role-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--berry-tint);
  font-size: 15.5px;
}
.role-bar b { color: var(--berry-deep); font-weight: 700; }
.role-bar a { font-weight: 600; }
.form-lede { margin-bottom: 24px; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------- Thank-you and closed pages ---------- */

.message {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 48px max(20px, env(safe-area-inset-right, 0px)) 48px max(20px, env(safe-area-inset-left, 0px));
  overflow: hidden;
}
.message-art { position: absolute; inset: 0; pointer-events: none; }
.message .rings { top: -260px; right: -260px; }
.message-inner { position: relative; max-width: 620px; margin: 0 auto; width: 100%; }
.message h1 { max-width: 16ch; }

@media (min-width: 1024px) {
  .message .rings { width: 900px; height: 900px; top: -360px; right: -320px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
