:root {
  --grey: #f4f4f4;
  --soft-grey: #fafafa;
  --blue: #0179fe;
  --blue-soft: rgba(1, 121, 254, 0.1);
  --black: #000000;
  --white: #ffffff;
  --line: rgba(0, 0, 0, 0.1);
  --muted: rgba(0, 0, 0, 0.62);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  --soft-shadow: 0 14px 44px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--grey);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--black);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    linear-gradient(145deg, rgba(1, 121, 254, 0.09), transparent 30%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    var(--grey);
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 24px;
}

.story-page {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 470px);
  gap: 34px;
  align-items: start;
}

.story-column,
.upload-column {
  min-width: 0;
}

.story-column {
  padding: 26px 0 48px;
}

.upload-column {
  position: sticky;
  top: 24px;
  padding: 384px 0 48px;
}

.brand-bar {
  margin-bottom: 34px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--black);
  text-decoration: none;
}

.brand-logo {
  width: clamp(184px, 18vw, 254px);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.member-badge,
.form-kicker,
.note-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-badge {
  width: fit-content;
  padding: 9px 12px;
  background: var(--blue-soft);
  border: 1px solid rgba(1, 121, 254, 0.16);
  border-radius: 999px;
}

h1,
h2,
p {
  margin-top: 0;
}

.headline-block {
  max-width: 760px;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 4.5vw, 60px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 650;
}

.shimmy-note {
  position: relative;
  max-width: 760px;
  margin: 24px 0 16px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(1, 121, 254, 0.06), transparent 38%),
    var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.note-pin {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(1, 121, 254, 0.1);
}

.note-copy {
  max-width: none;
}

.note-copy p {
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 15px;
  line-height: 1.52;
  font-weight: 560;
}

.note-copy p:last-child {
  margin-bottom: 0;
}

.note-copy span {
  color: var(--black);
  background: linear-gradient(transparent 58%, rgba(1, 121, 254, 0.18) 58%);
  font-weight: 800;
}

.note-copy strong {
  color: var(--black);
  font-weight: 900;
}

.signature {
  margin: 18px 0 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.prompt-section {
  max-width: 760px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.prompt-card {
  min-height: 150px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.045);
}

.prompt-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.prompt-card h2 {
  margin-bottom: 9px;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0;
}

.prompt-card p,
.reassurance p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
  font-weight: 650;
}

.reassurance {
  max-width: 760px;
  margin-top: 14px;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.92);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.reassurance h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 18px;
  letter-spacing: 0;
}

.reassurance p {
  color: rgba(255, 255, 255, 0.72);
}

.upload-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.upload-copy h2 {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.03;
  letter-spacing: 0;
}

.upload-copy p:not(.form-kicker) {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
}

.upload-zone {
  min-height: 164px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--black);
  background:
    linear-gradient(rgba(250, 250, 250, 0.92), rgba(250, 250, 250, 0.92)),
    repeating-linear-gradient(
      -45deg,
      rgba(1, 121, 254, 0.14) 0 8px,
      transparent 8px 16px
    );
  border: 1.5px dashed rgba(1, 121, 254, 0.55);
  border-radius: 18px;
  cursor: pointer;
  text-align: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.upload-zone:hover,
.upload-zone:focus-within {
  transform: translateY(-1px);
  border-color: var(--blue);
  background: rgba(1, 121, 254, 0.08);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(1, 121, 254, 0.25);
}

.upload-icon svg {
  width: 27px;
  height: 27px;
}

.upload-title {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 900;
}

.upload-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.preview-card {
  min-height: 96px;
  margin-top: 14px;
  padding: 12px;
  background: var(--black);
  border-radius: 18px;
  overflow: hidden;
}

.empty-preview {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  font-size: 13px;
  font-weight: 760;
}

.empty-preview p {
  margin: 0;
}

.mini-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--blue);
  border-radius: 50%;
}

.preview-card video {
  display: none;
  width: 100%;
  max-height: 320px;
  background: var(--black);
  border-radius: 12px;
}

.preview-card:not(.is-empty) .empty-preview {
  display: none;
}

.preview-card:not(.is-empty) video {
  display: block;
}

.video-actions {
  display: none;
  margin-top: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-meta {
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.remove-video-button {
  min-height: 34px;
  padding: 0 12px;
  flex: 0 0 auto;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.remove-video-button:hover,
.remove-video-button:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
}

.preview-card:not(.is-empty) .video-actions {
  display: flex;
}

.field-group {
  margin-top: 16px;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
}

.text-input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--black);
  background: var(--soft-grey);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  outline: none;
  font-weight: 650;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.text-input:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(1, 121, 254, 0.14);
}

.consent-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  color: rgba(0, 0, 0, 0.76);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.42;
  font-weight: 720;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.permission-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
}

.progress-wrap {
  margin-top: 18px;
  padding: 14px;
  background: var(--blue-soft);
  border: 1px solid rgba(1, 121, 254, 0.15);
  border-radius: 14px;
}

.progress-label {
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
}

.progress-track {
  height: 8px;
  background: rgba(1, 121, 254, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transition: width 180ms ease;
}

.progress-wrap p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
}

.submit-button {
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-1px);
  background: #006dde;
  box-shadow: 0 14px 30px rgba(1, 121, 254, 0.26);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
  box-shadow: none;
}

.form-message {
  margin-top: 16px;
  padding: 0;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 690;
}

.form-message.is-visible {
  padding: 15px;
}

.form-message h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
}

.form-message p {
  margin: 0;
}

.form-message.success {
  color: #083b19;
  background: #e9f8ee;
  border: 1px solid #bce9c9;
}

.form-message.error {
  color: #4a120d;
  background: #fff0ee;
  border: 1px solid #ffd1cb;
}

@media (max-width: 980px) {
  .page-shell {
    padding: 18px;
  }

  .story-page {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story-column {
    padding-bottom: 22px;
  }

  .upload-column {
    position: static;
    padding-top: 0;
  }

  .brand-bar {
    margin-bottom: 34px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .lede {
    font-size: 18px;
  }

  .prompt-section {
    grid-template-columns: 1fr;
  }

  .prompt-card {
    min-height: auto;
  }

  .prompt-card span {
    margin-bottom: 14px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 14px;
  }

  .story-column {
    padding-top: 12px;
  }

  .brand-logo {
    width: 172px;
  }

  .member-badge {
    font-size: 11px;
  }

  h1 {
    font-size: 38px;
  }

  .lede {
    margin-bottom: 24px;
    font-size: 16px;
  }

  .shimmy-note,
  .upload-card {
    padding: 20px;
    border-radius: 18px;
  }

  .note-pin {
    top: 22px;
    right: 22px;
  }

  .note-copy p {
    font-size: 15px;
  }

  .upload-copy h2 {
    font-size: 28px;
  }

  .upload-zone {
    min-height: 154px;
  }
}
