:root {
  --ink: #000000;
  --muted: #404040;
  --faint: #7f7f7f;
  --line: #bfbfbf;
  --blue: #3c5cff;
  --blue-hover: #2a46e0;
  --blue-75: #6d85ff;
  --blue-50: #9dadff;
  --blue-25: #ced6ff;
  --green: #1db954;
  --sky: #d9ecf9;
  --sky-75: #e3f1fb;
  --sky-50: #ecf5fc;
  --sky-25: #f5fafd;
  --cream: #f7edde;
  --cream-75: #f9f2e6;
  --cream-50: #fbf6ee;
  --cream-25: #fdfaf7;
  --danger: #000000;
  --header: 76px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --shadow: 0 24px 50px rgba(42, 36, 24, 0.12);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::placeholder {
  color: var(--faint);
  opacity: 1;
}

::selection {
  background: var(--blue-25);
}

[hidden] {
  display: none !important;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 16px);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  border-bottom-color: rgba(22, 26, 24, 0.06);
  box-shadow: 0 8px 24px rgba(20, 24, 22, 0.04);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: var(--header);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.brand a,
.footer-brand a {
  display: inline-flex;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  display: block;
  width: auto;
  height: 22px;
  object-fit: contain;
}

.brand-x,
.footer-brand span {
  color: var(--ink);
  font-weight: 500;
  opacity: 0.72;
}

.hero {
  position: relative;
  padding: 48px 0 64px;
  background: var(--sky-75);
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px 14px;
  margin-left: auto;
}

.countdown-lead,
.countdown-closed {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.countdown-closed {
  display: none;
}

.countdown.is-closed .countdown-lead,
.countdown.is-closed .countdown-units {
  display: none;
}

.countdown.is-closed .countdown-closed {
  display: block;
}

.countdown-units {
  display: flex;
  gap: 12px;
  visibility: hidden;
}

.countdown.is-ready .countdown-units {
  visibility: visible;
}

.countdown-unit {
  min-width: 42px;
  text-align: center;
}

.countdown-unit strong {
  display: block;
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.countdown-unit span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 36px 28px;
  align-items: center;
}

.hero-copy {
  padding-bottom: 28px;
}

.hero-copy .eyebrow {
  margin-bottom: 4px;
  color: var(--ink);
}

.hero-copy .eyebrow + .eyebrow {
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 600;
}

.hero-copy .is-bold {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-words {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 18px 0 22px;
}

.hero-words p {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.05rem, 3.4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero-sub,
.hero-lead {
  max-width: 42ch;
}

.hero-sub {
  margin-top: 12px;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.25;
}

.hero-lead {
  margin-top: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.hero .btn {
  margin: 28px 0 16px;
}

.fine-print {
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.92rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.scene {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 26px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.layer-fore {
  opacity: 0;
}

.hero-visual:has(#view-fore:checked) .layer-fore {
  opacity: 1;
}

.hero-visual:has(#view-fore:checked) .layer-efter {
  opacity: 0;
}

.view-toggle {
  position: relative;
  display: inline-flex;
  gap: 8px;
  min-inline-size: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.view-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.view-toggle label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 20, 0.06), 0 0 0 1px rgba(16, 24, 20, 0.05);
}

.view-toggle input:checked + label {
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}

.view-toggle input:focus-visible + label {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.scene-caption {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.92rem;
  text-align: center;
}

.scroll-down {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(20, 24, 22, 0.08);
  transform: translateX(-50%);
}

.scroll-down svg {
  width: 18px;
  height: 18px;
}

.scroll-down:hover {
  color: var(--blue);
}

.block {
  padding: 92px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2,
.apply h2,
.faq h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-head h2,
.faq h2 {
  font-size: clamp(2rem, 4vw, 3.05rem);
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.06rem;
}

.benefit-grid,
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.benefit {
  padding: 28px 22px 32px;
  border-radius: 22px;
  background: var(--sky);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit:hover {
  box-shadow: 0 10px 24px rgba(22, 28, 26, 0.05);
  transform: translateY(-2px);
}

.icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit h3,
.step h3 {
  margin: 18px 0 8px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.benefit p,
.step p {
  color: var(--muted);
  line-height: 1.5;
}

.step-no {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-25);
  color: var(--blue);
  font-weight: 800;
}

.step h3 {
  margin-top: 0;
}

.apply {
  background: var(--sky-75);
}

.apply-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 48px 72px;
  align-items: start;
}

.apply-panel {
  padding: 28px 28px 32px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

.apply h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

@media (min-width: 981px) {
  .apply-copy {
    position: sticky;
    top: calc(var(--header) + 28px);
  }
}

.apply .lead {
  max-width: 36ch;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.qualify {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.qualify li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.qualify svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--blue);
}

.more {
  margin-top: 28px;
}

.more h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.more p {
  max-width: 34ch;
  color: var(--muted);
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.span-2 {
  grid-column: 1 / -1;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field > label:not(.check) {
  font-size: 0.92rem;
  font-weight: 700;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.5;
}

.field select {
  padding-right: 42px;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23171a19' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field :is(input, textarea, select):focus-visible {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.upload {
  padding: 16px;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
}

.upload.is-drag {
  border-color: var(--blue);
  background: var(--blue-25);
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.file-btn {
  flex: none;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.file-btn:hover {
  background: #000;
}

.file-status {
  overflow: hidden;
  color: var(--faint);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  margin: 14px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.file-list:empty {
  display: none;
}

.file-chip {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.file-thumb {
  display: grid;
  width: 64px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border-radius: 6px;
  background: #e7eef8;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
}

.file-thumb img,
.file-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-name {
  display: block;
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: var(--faint);
  font-size: 0.8rem;
}

.file-remove {
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.file-remove:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.file-remove:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hint,
.field-error,
.form-error {
  font-size: 0.85rem;
}

.hint {
  color: var(--faint);
}

.field-error,
.form-error {
  color: var(--danger);
}

.field:has([aria-invalid="true"]) :is(input:not([type="checkbox"]), textarea, select),
.field:has([aria-invalid="true"]) .upload {
  border-color: var(--danger);
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.96rem;
  line-height: 1.45;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.optional {
  color: var(--faint);
  font-weight: 500;
}

.form-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue-hover);
}

.btn:focus-visible {
  outline-color: var(--ink);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.noscript {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--muted);
}

.noscript {
  margin-bottom: 16px;
}

.success .eyebrow {
  margin-bottom: 8px;
  color: var(--green);
}

.success h3 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.success p {
  max-width: 46ch;
  margin-top: 10px;
  color: var(--muted);
}

.btn-text {
  display: inline-block;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.faq h2 {
  margin-bottom: 36px;
  text-align: center;
}

.terms-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(84vh, 880px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.terms-dialog[open] {
  display: flex;
  flex-direction: column;
}

.terms-dialog::backdrop {
  background: rgba(0, 0, 0, 0.48);
}

.terms-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 18px 4px 28px;
}

.terms-dialog h2 {
  margin: 4px 0 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.terms-lead {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 700;
}

.terms-close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sky-50);
  color: var(--ink);
  cursor: pointer;
}

.terms-close svg {
  width: 16px;
  height: 16px;
}

.terms-close:hover {
  background: var(--blue-25);
}

.terms-dialog .terms-copy {
  overflow: auto;
  padding: 8px 28px 28px;
}

.terms-copy h3 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.terms-copy p,
.terms-copy li {
  color: var(--muted);
  line-height: 1.65;
}

.terms-copy p + p,
.terms-copy ul {
  margin-top: 10px;
}

.terms-copy ul {
  padding-left: 1.25em;
}

.terms-copy li + li {
  margin-top: 6px;
}

.check a {
  color: var(--blue);
  font-weight: 700;
  text-underline-offset: 3px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 2px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--blue);
}

.faq-mark {
  flex: none;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent currentColor;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-mark {
  transform: rotate(90deg);
}

.faq-answer {
  max-width: 62ch;
  padding: 0 4px 18px 22px;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  padding: 12px 0 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px 40px;
  justify-content: space-between;
  align-items: center;
}

.footer-cols {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 0 40px;
  align-items: start;
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-label {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  text-decoration: none;
}

.social-btn svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.social-btn:hover {
  background: var(--blue);
  color: #fff;
}

.site-footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
}

.site-footer .social-btn {
  color: var(--blue);
  font-weight: 400;
}

.site-footer .social-btn:hover {
  color: #fff;
}

@media (min-width: 900px) {
  .wrap {
    width: min(1120px, calc(100% - 64px));
  }
}

@media (max-width: 980px) {
  .hero {
    padding-bottom: 48px;
  }

  .hero-grid,
  .apply-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .benefit-grid,
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scroll-down {
    position: static;
    margin: 8px auto 0;
    transform: none;
  }

  .block {
    padding: 72px 0;
  }
}

@media (max-width: 680px) {
  .apply-panel {
    padding: 20px 16px 24px;
    border-radius: 20px;
  }

  .benefit-grid,
  .step-grid,
  .fields {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .footer-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-cols {
    gap: 0 20px;
  }

  .brand img,
  .footer-brand img {
    height: 18px;
  }

  .hero-words p {
    font-size: 2.15rem;
  }

  .header-inner {
    align-items: flex-start;
    padding: 14px 0;
  }

  .countdown {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
