:root {
  --bg: #f6f2e9;
  --card: #ffffff;
  --text: #1f2b30;
  --muted: #6b7479;
  --green: #4b9150;
  --green-dark: #356c3b;
  --gold: #d2b66c;
  --shadow: 0 18px 38px rgba(36, 41, 48, 0.14);
  --radius: 16px;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-display: 'Signika', 'Source Sans 3', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: #f5efe3;
  color: var(--text);
  min-height: 100vh;
}

@media (max-width: 520px) {
  body {
    background-position: center top;
  }
}

.page {
  max-width: 440px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #2f4e83;
  letter-spacing: 0.1px;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 15px;
}

.brand-sub {
  font-size: 12px;
  color: #7d8892;
}

.ghost {
  background: linear-gradient(180deg, #5db76d, #3c8549);
  border: none;
  color: #f6fff7;
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(60, 133, 73, 0.28);
  letter-spacing: 0.1px;
}

.hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  --hero-img: url('/hero-pro.jpg');
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 52%, rgba(255, 255, 255, 0.65) 70%, rgba(255, 255, 255, 0.05) 100%),
    var(--hero-img);
  background-repeat: no-repeat;
  background-position: 92% center;
  background-size: 360px auto;
  border: 1px solid #eadfcd;
}

.hero-card {
  position: relative;
  padding: 22px 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-copy {
  display: grid;
  gap: 7px;
  text-align: left;
  max-width: 260px;
  flex: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.06));
  pointer-events: none;
}

.eyebrow {
  font-weight: 700;
  color: #2b3a40;
  font-size: 15px;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
}

.pay {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: #1f3328;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.note {
  margin: 4px 0 0;
  font-size: 13px;
  color: #53615c;
}

.cta {
  margin-top: 10px;
  background:
    radial-gradient(ellipse at 40% 10%, rgba(255, 223, 109, 0.72), transparent 52%),
    linear-gradient(180deg, #4e9a52 0%, #336e3a 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 15px 18px;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 14px 28px rgba(62, 127, 58, 0.55);
  cursor: pointer;
  text-transform: uppercase;
}

.cta.wide {
  width: 100%;
  max-width: 260px;
}

.cta:hover {
  background:
    radial-gradient(ellipse at 40% 10%, rgba(255, 228, 126, 0.75), transparent 52%),
    linear-gradient(180deg, #55a05a 0%, #397944 100%);
}

.cta:active {
  transform: translateY(1px);
}

.video-block {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.video-block h2 {
  margin: 0;
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.emoji {
  font-size: 20px;
}

.video-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  background: #0f2438;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.video-meta {
  padding: 10px 12px;
  background: #f7f1e7;
}

.meta-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.small {
  font-size: 12px;
}

.alert {
  background: #fff9e5;
  color: #9a6f1d;
  border: 1px solid #f4d48a;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  max-width: none;
  margin: 10px 0 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  white-space: normal;
}

.alert.prominent {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  background: #f1eee7;
  border-color: #e1d8c8;
  color: #2f3b31;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.form-block .cta.outline {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.hero-secondary .tags {
  justify-content: flex-start;
}

.rollup .muted.center {
  margin-top: 4px;
  color: #4a554e;
}

@media (max-width: 480px) {
  .form-block {
    padding: 14px 12px 16px;
    gap: 8px;
  }

  .form-block .muted {
    font-size: 13px;
  }

  .rollup {
    padding: 14px 12px 18px;
  }

  .card-group {
    padding: 12px;
  }

  .apply-secondary {
    font-size: 14px;
  }
}

.form-block {
  margin: 18px 0;
  padding: 16px 14px 18px;
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f2e7 100%);
  border-radius: 16px;
  border: 1px solid #e3d9c8;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.field {
  background: #eff4ee;
  border: 1px solid #d7e0d6;
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.field.with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6fbf4;
  border-color: #d5e0d2;
}

.field-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #e8f1e4, #d6e7d4);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #3a6d32;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 16px rgba(58, 109, 50, 0.12);
}

.field-body {
  display: grid;
  gap: 6px;
  flex: 1;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #3e4b51;
}

select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid #cfd7cc;
  background: #f8fbf6;
  font-size: 14px;
}

.cta.outline {
  background: linear-gradient(180deg, rgba(79, 164, 91, 0.18), rgba(63, 143, 76, 0.26));
  color: #1f3328;
  border: 2px solid #3f7c4a;
  box-shadow: 0 12px 22px rgba(63, 143, 76, 0.28);
  text-transform: none;
}

.apply-secondary {
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(180deg, #e7ce74 0%, #8ec669 35%, #3e7f3a 100%);
  box-shadow: 0 16px 30px rgba(62, 127, 58, 0.55);
}

.footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.footer a {
  color: #2c4c6e;
  text-decoration: none;
  font-weight: 600;
}

.divider {
  color: #c2c2c2;
}

.tiny {
  font-size: 12px;
}

.rollup {
  margin-top: 14px;
  background: #f9f4ea;
  border-radius: 18px;
  padding: 16px 14px 20px;
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9decc;
}

.hero-secondary {
  background: #fbf7ef;
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 8px;
}

.hero-secondary h2 {
  margin: 0;
  font-size: 20px;
  color: #2f3b31;
}

.salary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2f6b3d;
  color: #e8f7ea;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #3e5243;
}

.tags span {
  background: #eef3ec;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #d6dfd2;
}

.card-group {
  background: #fbf7ef;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8dfce;
}

.card-group h3 {
  margin: 0 0 8px;
  color: #2d3a33;
}

.pill-list {
  display: grid;
  gap: 6px;
}

.pill-list.light {
  background: #f4f6f1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #dfe6d8;
}

.pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9f6ee;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #e3ded4;
  font-weight: 600;
  color: #2f3c35;
}

.pill-list.light .pill-row {
  background: transparent;
  border-color: #d7e0d6;
}

.icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dbe9d8;
  color: #2f6b3d;
  font-size: 13px;
  flex-shrink: 0;
}

.center {
  text-align: center;
}

body.no-scroll {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px 14px;
  background: rgba(19, 32, 26, 0.42);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 999;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
}

.modal-dialog {
  position: relative;
  width: min(420px, 100%);
  background: linear-gradient(180deg, #fdfbf7, #f5eee4);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 24px 48px rgba(22, 34, 28, 0.26);
  border: 1px solid #e4dac8;
  overflow: hidden;
}

.modal-dialog::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 20% 0%, rgba(231, 212, 167, 0.3), transparent 60%);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: #e7ecdf;
  color: #3c4c42;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.modal-eyebrow {
  margin: 4px 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: #2f3b31;
}

.modal h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 20px;
  color: #1f2b30;
}

.modal-sub {
  margin: 0 0 12px;
  color: #58645d;
  font-size: 14px;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.modal-field {
  display: grid;
  gap: 6px;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #dfe6d8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 20px rgba(0, 0, 0, 0.04);
}

.modal-field input {
  border: 1px solid #ccd6c7;
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 14px;
  background: #f7fbf4;
  width: 100%;
}

.field-label {
  font-weight: 700;
  color: #304037;
  font-size: 13px;
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.field-prefix {
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #eef3eb, #dfe8db);
  color: #345139;
  font-weight: 700;
  border: 1px solid #ccd6c7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.field-hint {
  color: #6a746f;
  font-size: 12px;
}

.modal-submit {
  margin-top: 4px;
  width: auto;
  min-width: 200px;
  align-self: center;
  justify-self: center;
  text-align: center;
  box-shadow: 0 14px 28px rgba(62, 127, 58, 0.4);
}

.modal-trust {
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
  background: #e9f1e4;
  border: 1px solid #cfdac8;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  max-width: 320px;
  text-align: center;
}

.shield {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, #5da56a, #3f7f4e);
  color: #f6fff8;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(63, 127, 76, 0.28);
}

.tiny-text {
  font-size: 12px;
  color: #4d5b52;
}

@media (min-width: 768px) {
  .page {
    max-width: 520px;
    padding: 24px 20px 52px;
  }

  h1 {
    font-size: 28px;
  }
}

@media (max-width: 440px) {
  .hero-card {
    flex-direction: row;
  }

  .hero-figure {
    flex: 0 0 120px;
    height: 140px;
  }
}

@media (max-width: 520px) {
  .modal-dialog {
    width: 100%;
    padding: 14px 14px 18px;
    border-radius: 14px;
  }

  .modal h3 {
    font-size: 18px;
  }

  .modal-sub {
    font-size: 13px;
  }

  .modal-field input {
    font-size: 13px;
    padding: 11px 12px;
  }

  .field-inline {
    gap: 6px;
  }

  .field-prefix {
    padding: 11px 12px;
    font-size: 13px;
  }

  .modal-submit {
    width: 100%;
    min-width: 0;
  }

  .modal-trust {
    max-width: 100%;
  }
}
