:root {
  --ink: #16181d;
  --muted: #5f6570;
  --line: #e2e4e8;
  --paper: #ffffff;
  --surface: #f6f6f6;
  --danger: #a83434;
  --brand: #5a83f9;
  --brand-ink: #3b63d9;
  --brand-soft: #e8eefe;
  --dark: #0d122c;
  --dark-line: #2a3050;
  --on-dark-muted: #b9bfd3;
  --highlight: #5a83f9;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

[data-brand="fivelemons"] {
  --brand: #099639;
  --brand-ink: #077a2f;
  --brand-soft: #fff7c2;
  --dark: #312815;
  --dark-line: #52472d;
  --on-dark-muted: #d6cfb8;
  --highlight: #ffe650;
  --surface: #f7f6f0;
}

[data-brand="mpk"] {
  --brand: #e00000;
  --brand-ink: #c80000;
  --brand-soft: #fdeaea;
  --dark: #11100f;
  --dark-line: #34312e;
  --on-dark-muted: #c2bdb8;
  --highlight: #e00000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--brand-ink);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--brand-ink);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-width {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
}

.brand-logo {
  display: block;
  width: 200px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--brand-ink);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.button-primary {
  background: var(--brand-ink);
  color: #fff;
}

.button-primary:hover {
  background: color-mix(in srgb, var(--brand-ink) 86%, black);
}

.button-secondary {
  background: #fff;
  color: var(--ink);
  border-color: #cfd3d9;
  text-transform: none;
  letter-spacing: 0;
}

.intake-notice {
  max-width: 480px;
  margin: 20px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--brand);
  background: var(--surface);
  font-size: 14px;
}

/* Hero */

.hero {
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: 560px;
  padding-block: 56px;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero h1 span {
  display: block;
}

.lead {
  margin: 0 0 44px;
  color: #33363d;
  font-size: 20px;
}

.hero-art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  aspect-ratio: 4 / 3;
}

.hero-art span {
  background: var(--dark);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.hero-art span:nth-child(3n + 2) {
  background: var(--brand);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.hero-art span:nth-child(4n + 3) {
  background: var(--brand-soft);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero-art span:nth-child(5n + 1) {
  background: color-mix(in srgb, var(--brand) 55%, var(--dark));
}

.hero-art span:nth-child(7),
.hero-art span:nth-child(12) {
  background: transparent;
}

[data-brand="fivelemons"] .hero-art {
  gap: 14px;
}

[data-brand="fivelemons"] .hero-art span {
  clip-path: none;
  background: var(--highlight);
  border-radius: 50%;
}

[data-brand="fivelemons"] .hero-art span:nth-child(3n + 2),
[data-brand="fivelemons"] .hero-art span:nth-child(5n + 1) {
  background: var(--brand);
  border-radius: 0 100%;
}

[data-brand="fivelemons"] .hero-art span:nth-child(4n + 3) {
  background: var(--brand-soft);
  border-radius: 100% 0;
}

[data-brand="fivelemons"] .hero-art span:nth-child(7),
[data-brand="fivelemons"] .hero-art span:nth-child(12) {
  background: transparent;
}

/* Shared section styles */

.section-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

/* Facts */

.facts {
  padding-block: 72px 96px;
  text-align: center;
}

.facts-list {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 12vw, 200px);
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.facts-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 220px;
  font-size: 16px;
}

.facts-list svg {
  width: 88px;
  height: 88px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* About */

.about {
  padding-block: 96px;
  background: var(--dark);
  color: #fff;
}

[data-brand="fivelemons"] .about {
  background: var(--highlight);
  color: var(--dark);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 64px;
  align-items: center;
}

.about-inner:has(> :only-child) {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.about-copy p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.6;
}

.product-card {
  padding: 32px;
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
}

.product-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.product-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.product-card a {
  font-weight: 700;
}

/* Checkboxes */

.consent-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-shape {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1.5px solid #8e939c;
  border-radius: 4px;
}

input:checked + .check-shape,
.consent-field input:checked + label .check-shape {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
}

input:checked + .check-shape::after,
.consent-field input:checked + label .check-shape::after {
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.consent-field input:focus-visible + label .check-shape {
  outline: 3px solid var(--brand-ink);
  outline-offset: 2px;
}

/* Contract choice */

.contracts {
  padding-block: 96px;
}

.contract-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.contract-option {
  position: relative;
  min-width: 0;
}

.contract-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contract-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 28px 18px 24px;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: background 150ms ease, border-color 150ms ease;
}

.contract-option label:hover {
  background: var(--surface);
}

.contract-option svg {
  width: 88px;
  height: 88px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contract-option strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.contract-option small {
  color: var(--muted);
  font-size: 13px;
}

.contract-option input:focus-visible + label {
  outline: 3px solid var(--brand-ink);
  outline-offset: 2px;
}

.contract-option input:checked + label {
  background: var(--brand-soft);
  border-color: var(--brand);
}

[data-brand="fivelemons"] .contract-option input:checked + label {
  background: #e3f4e8;
}

.contract-option input:disabled + label {
  cursor: default;
}

/* Application form */

.application {
  padding-block: 88px 104px;
  background: var(--surface);
}

.application-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.application-intro {
  position: sticky;
  top: 96px;
}

.application-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.application-intro > p {
  margin: 0 0 14px;
  color: var(--muted);
}

.application-intro > .aside-note {
  font-size: 13px;
}

.application-intro > .draft-notice {
  padding: 12px 14px;
  background: var(--brand-soft);
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
}

[data-brand="fivelemons"] .application-intro > .draft-notice {
  background: #e3f4e8;
}

.privacy-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.privacy-note > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid #8c95a4;
  border-radius: 50%;
  color: #687284;
  font-size: 11px;
  font-weight: 800;
}

.privacy-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.hr-form {
  min-width: 0;
  padding: 36px;
  background: #fff;
  border-radius: 20px;
}

.form-contract {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
  padding: 14px 18px;
  background: var(--brand-soft);
  border-radius: 10px;
}

[data-brand="fivelemons"] .form-contract {
  background: #e3f4e8;
}

.form-contract span {
  color: var(--muted);
  font-size: 12px;
}

.form-contract strong {
  font-size: 15px;
}

.form-contract a {
  font-size: 13px;
}

.form-group {
  min-width: 0;
  margin: 0 0 40px;
  padding: 0;
  border: 0;
}

.form-group > legend {
  float: left;
  width: 100%;
  margin: 0 0 5px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  font-weight: 700;
}

.form-group > legend + * {
  clear: both;
}

.group-description {
  margin: 0 0 22px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > label,
.upload-heading label {
  font-size: 14px;
  font-weight: 600;
}

.required-mark {
  color: #b13e3e;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfbfb;
  border: 1px solid #ccd1d7;
  border-radius: 8px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: #aab1bb;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand-ink);
  outline: 2px solid var(--brand-ink);
  outline-offset: 0;
  background: #fff;
}

.field input:disabled,
.field textarea:disabled,
.field select:disabled {
  color: #606977;
  background: #f1f2f2;
  cursor: default;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.has-error input:not([type="radio"]):not([type="checkbox"]),
.has-error textarea,
.has-error select {
  border-color: var(--danger);
  background: #fffafa;
}

.mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--surface);
  border-radius: 10px;
}

.mode-switch input,
.choice input {
  position: absolute;
  opacity: 0;
}

.mode-switch span {
  display: block;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.mode-switch input:checked + span {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  color: var(--brand-ink);
}

.mode-switch input:focus-visible + span,
.choice input:focus-visible + span {
  outline: 3px solid var(--brand-ink);
  outline-offset: 2px;
}

.question-radio {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.question-radio legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.question-radio .field-hint {
  display: block;
  margin: -2px 0 8px;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
}

.choice span {
  display: block;
  padding: 10px 14px;
  border: 1px solid #ccd1d7;
  border-radius: 8px;
  background: #fbfbfb;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
}

.choice span:hover {
  border-color: #aab1bb;
}

.choice input:checked + span {
  border-color: var(--brand-ink);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand-ink);
}

[data-brand="fivelemons"] .choice input:checked + span {
  background: #e3f4e8;
}

.choice input:disabled + span {
  cursor: default;
  opacity: 0.7;
}

.has-error .choice span {
  border-color: var(--danger);
}

.upload-field {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.upload-status {
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1.5px solid #b7bcc4;
  border-radius: 50%;
}

.is-done .upload-status {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
}

.is-done .upload-status::after {
  position: absolute;
  top: 4px;
  left: 7.5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.has-error .upload-status {
  border-color: var(--danger);
}

.upload-body {
  min-width: 0;
}

.upload-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  justify-content: space-between;
}

.upload-meta {
  display: block;
  margin: 3px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.blank-link {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.guidance-button {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px dashed currentColor;
  background: transparent;
  color: var(--brand-ink);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.2;
}

.file-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.file-input {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-picker {
  flex: 0 0 auto;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--brand-ink);
  border-radius: 8px;
  color: var(--brand-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.file-picker:hover {
  background: var(--brand-soft);
}

.file-input:focus-visible + .file-picker {
  outline: 3px solid var(--brand-ink);
  outline-offset: 3px;
}

.file-input:disabled + .file-picker {
  color: #808793;
  border-color: #c5c9cf;
  background: #f1f2f2;
  cursor: default;
}

.file-count {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.field-error:empty {
  display: none;
}

.has-error .file-picker {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

.file-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.file-list:empty {
  display: none;
}

.file-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.file-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.file-type {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.file-name {
  min-width: 0;
}

.file-name strong,
.file-name small {
  display: block;
}

.file-name strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name small {
  color: var(--muted);
  font-size: 10px;
}

.file-list button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: #8e3434;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.optional-uploads {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.optional-uploads summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.optional-uploads summary::-webkit-details-marker {
  display: none;
}

.optional-uploads summary::after {
  color: var(--muted);
  content: "+";
  font-size: 22px;
  font-weight: 400;
}

.optional-uploads[open] summary::after {
  content: "−";
}

.optional-uploads summary span {
  margin-left: auto;
  margin-right: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.optional-uploads > div {
  padding-bottom: 8px;
}

.consent-group {
  margin-bottom: 26px;
}

.consent-field {
  padding-top: 18px;
}

.consent-field label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  color: #424d60;
  font-size: 14px;
  line-height: 1.55;
}

.consent-field a {
  position: relative;
  z-index: 1;
}

.submit-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: 20px;
  align-items: center;
}

.submit-row p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.submit-button {
  min-width: 240px;
}

.submit-button:disabled {
  cursor: wait;
}

.button-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #ffffff66;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status {
  display: none;
  margin-top: 24px;
}

.form-status.error,
.form-status.success {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid;
  border-radius: 12px;
}

.form-status.error {
  background: #fff6f4;
  border-color: #e8bebb;
  color: #7f2929;
}

.form-status.success {
  background: #eff9f2;
  border-color: #acd4b8;
  color: #144b2e;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
}

.form-status h3 {
  margin: 2px 0 6px;
  font-size: 17px;
}

.form-status p {
  margin: 3px 0;
  font-size: 13px;
}

.upload-progress {
  grid-column: 1 / -1;
}

.upload-progress small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  display: block;
  height: 6px;
  overflow: hidden;
  background: var(--line);
  border-radius: 3px;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand-ink);
  border-radius: 3px;
  transition: width 200ms ease;
}

/* Sticky progress */

.progress-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  padding-block: 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
}

.progress-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.progress-copy {
  flex: 1;
  max-width: 420px;
}

.progress-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.progress-bar .button {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 13px;
}

/* Contract count */

.contract-count {
  margin-top: 6px;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
}

/* Photo examples */

.photo-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.photo-example {
  margin: 0;
  padding: 10px;
  background: var(--surface);
  border-radius: 10px;
}

.photo-example svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #e9ebee;
  border-radius: 6px;
}

.photo-example .frame {
  fill: none;
  stroke: #6b7280;
  stroke-width: 1.5;
}

.photo-example .doc {
  fill: #fff;
  stroke: #9aa0a8;
}

.photo-example .fold {
  stroke: #c3c7cc;
}

.photo-example .photo {
  fill: #d7dbe0;
}

.photo-example .text {
  stroke: #b9bec5;
  stroke-width: 2;
  stroke-linecap: round;
}

.photo-example .glare {
  fill: #fff;
  opacity: 0.9;
  filter: blur(3px);
}

.photo-example figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.photo-example.is-good figcaption::before {
  color: #17623b;
  content: "✓ ";
}

.photo-example.is-bad figcaption::before {
  color: var(--danger);
  content: "✕ ";
}

/* Footer */

.site-footer {
  padding-block: 72px 56px;
  background: var(--dark);
  color: #fff;
}

.footer-title {
  margin: 0 0 36px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--dark-line);
}

.footer-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
}

.footer-grid p {
  margin: 0 0 12px;
  color: var(--on-dark-muted);
  font-size: 13px;
}

.footer-grid small {
  display: block;
  margin-bottom: 4px;
  color: var(--on-dark-muted);
  font-size: 12px;
}

.footer-grid a {
  color: #fff;
  font-size: 14px;
}

.document-library {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.document-library a {
  font-size: 13px;
  line-height: 1.4;
}

/* Guidance dialog */

.guidance-dialog {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 36px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-top: 5px solid var(--brand);
  border-radius: 16px;
  box-shadow: 0 26px 90px #10152244;
}

.guidance-dialog::backdrop {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(2px);
}

.dialog-eyebrow {
  margin: 0 0 10px;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guidance-dialog h2 {
  margin: 0 36px 18px 0;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.guidance-dialog p {
  color: #4f5663;
  font-size: 15px;
  line-height: 1.6;
}

.guidance-dialog .example-copy {
  padding: 13px 15px;
  background: var(--surface);
  border-radius: 8px;
  color: #394456;
}

.dialog-formats {
  color: var(--muted) !important;
  font-size: 12px !important;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #505a6b;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.dialog-close:hover {
  background: #f0f1f0;
}

.dialog-download {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 16px;
  padding: 13px 16px;
  background: var(--brand-ink);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 300;
  padding: 14px;
  color: #fff;
  background: #7f2929;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr 0.7fr;
    min-height: 460px;
  }

  .contract-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .application-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  .page-width {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 64px;
  }

  .header-nav {
    display: none;
  }

  .hero-inner {
    display: block;
    min-height: 0;
    padding-block: 48px 64px;
  }

  .hero-art {
    display: none;
  }

  .lead {
    margin-bottom: 32px;
    font-size: 18px;
  }

  .hero .button {
    width: 100%;
  }

  .facts,
  .about,
  .contracts,
  .application {
    padding-block: 64px;
  }

  .application {
    padding-bottom: 120px;
  }

  .mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .mode-switch span {
    height: 100%;
    padding-inline: 8px;
    text-align: center;
  }

  .progress-copy strong {
    font-size: 13px;
  }

  .progress-bar .button {
    padding-inline: 14px;
    letter-spacing: 0;
    text-transform: none;
    font-size: 14px;
  }

  .facts-list {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  .section-intro {
    margin-bottom: 36px;
  }

  .section-intro p,
  .about-copy p {
    font-size: 16px;
  }

  .contract-options {
    gap: 10px;
  }

  .contract-option label {
    padding: 20px 10px 18px;
    background: var(--surface);
  }

  .contract-option svg {
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
  }

  .contract-option small {
    display: none;
  }

  .application-layout {
    display: block;
  }

  .application-intro {
    position: static;
    margin-bottom: 32px;
  }

  .hr-form {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .submit-row {
    grid-template-columns: 1fr;
  }

  .submit-button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 460px) {
  .brand-logo {
    width: 170px;
    height: 42px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .file-control {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-count {
    white-space: normal;
  }

  .file-list li {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .file-list button {
    grid-column: 2;
    justify-self: start;
    padding-left: 0;
  }

  .form-contract {
    grid-template-columns: 1fr auto;
  }

  .form-contract span {
    grid-column: 1 / -1;
  }

  .guidance-dialog {
    padding: 30px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
