*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-page);
}

main {
  flex: 1;
}

.header-band {
  background: var(--color-header);
  color: #fff;
}

.brand-lockup {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  min-height: 5rem;
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(180px, 26vw, 240px);
  max-width: 100%;
  height: auto;
}

.site-footer {
  width: 100%;
  padding: 0 0 var(--space-lg);
}

.footer-links {
  width: min(calc(100% - 2rem), var(--container-width));
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--color-text-strong);
  font-size: 1.15rem;
  text-align: center;
}

.footer-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.hero-section {
  min-height: 34rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem var(--space-lg);
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(3, 44, 88, 0.86) 0%, rgba(3, 44, 88, 0.62) 45%, rgba(3, 44, 88, 0.2) 100%),
    url("../hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-kicker {
  margin: 0 0 var(--space-sm);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  color: #fff;
  font-size: 3.75rem;
  font-weight: 700;
}

h2 {
  color: #032c58;
  font-size: 2.35rem;
  font-weight: 700;
}

h3 {
  color: #032c58;
  font-size: 1.125rem;
  font-weight: 700;
}

.hero-copy,
.info-item p,
.notice-box,
.field-hint,
.checkbox-row label,
.status-message,
input,
button {
  font-size: 1rem;
  line-height: 1.55;
}

.hero-copy {
  max-width: 36rem;
  margin: var(--space-lg) 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  margin-top: var(--space-xl);
  padding: 0 var(--space-xl);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
}

.intro-section {
  background: #fff;
  border-bottom: 1px solid rgba(3, 44, 88, 0.08);
}

.intro-copy {
  width: min(calc(100% - 2rem), 760px);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.intro-copy p {
  margin: 0;
  color: var(--color-text-strong);
  font-size: 1.2rem;
  line-height: 1.55;
}

.content-panel {
  width: min(calc(100% - 2rem), var(--container-width));
  margin: 0 auto;
  padding: calc(var(--space-2xl) * 1.2) 0 calc(var(--space-2xl) * 1.6);
}

.content-grid {
  display: grid;
  justify-items: center;
}

.form-column {
  width: min(100%, 760px);
  padding: 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.15rem;
  box-shadow: 0 24px 60px rgba(18, 27, 42, 0.12);
}

.after-card {
  padding: 1.35rem 1.45rem;
  background: rgba(3, 44, 88, 0.035);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(3, 44, 88, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.after-card:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(3, 44, 88, 0.08),
    0 14px 32px rgba(18, 27, 42, 0.08);
}

.after-card h3 {
  color: #032c58;
  font-size: 1.2rem;
}

.after-steps {
  display: grid;
  gap: var(--space-md);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.after-steps::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 2rem;
  bottom: 2rem;
  width: 1px;
  background: rgba(3, 44, 88, 0.18);
}

.after-steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--space-md);
  align-items: start;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #032c58;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(3, 44, 88, 0.16);
  z-index: 1;
}

.after-steps p {
  margin: 0.2rem 0 0;
  color: var(--color-text-strong);
  font-size: 1rem;
  line-height: 1.5;
}

.info-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: 1rem;
  background: rgba(3, 44, 88, 0.025);
  border: 1px solid rgba(3, 44, 88, 0.08);
  border-radius: var(--radius-sm);
}

.info-copy ul {
  display: grid;
  gap: 0.25rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.section-header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section-header h2 {
  scroll-margin-top: var(--space-xl);
}

.section-header p {
  margin: var(--space-sm) auto 0;
  max-width: 34rem;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.info-stack {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.notice-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-md);
  padding: 1rem 1.1rem;
  background: rgba(3, 44, 88, 0.07);
  border: 1px solid rgba(3, 44, 88, 0.12);
  border-radius: var(--radius-sm);
  color: var(--color-text-strong);
  line-height: 1.45;
}

.notice-text {
  display: grid;
  gap: 0.15rem;
}

.notice-text strong {
  color: #032c58;
  font-size: 1.05rem;
}

.notice-text span {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.notice-icon,
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(18, 27, 42, 0.08);
}

.notice-icon svg,
.info-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice-icon svg circle:last-child {
  fill: currentColor;
  stroke: none;
}

.info-copy h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.transfer-form {
  display: grid;
  gap: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(3, 44, 88, 0.1);
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.field-group {
  display: grid;
  gap: var(--space-xs);
}

label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-strong);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 3.45rem;
  padding: 0 var(--space-lg);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="checkbox"]:focus {
  outline: none;
  border-color: rgba(3, 44, 88, 0.35);
  box-shadow: 0 0 0 0.22rem rgba(3, 44, 88, 0.08);
}

input::placeholder {
  color: #91959a;
}

.field-hint {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.field-error {
  min-height: 1.2rem;
  margin: 0;
  color: var(--color-error);
  font-size: 0.9rem;
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm);
  align-items: start;
}

input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
}

.submit-button {
  width: 100%;
  min-width: 15rem;
  min-height: 3.55rem;
  padding: 0 var(--space-lg);
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.submit-button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.status-message {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: var(--border-width) solid transparent;
}

.status-message.is-hidden {
  display: none;
}

.status-message[data-state="success"] {
  background: rgba(29, 107, 79, 0.1);
  border-color: rgba(29, 107, 79, 0.24);
  color: var(--color-success);
}

.status-message[data-state="error"] {
  background: rgba(166, 63, 50, 0.08);
  border-color: rgba(166, 63, 50, 0.2);
  color: var(--color-error);
}

@media (max-width: 768px) {
  .brand-lockup {
    min-height: 4.75rem;
    padding: 0 var(--space-sm);
  }

  .brand-logo {
    width: clamp(150px, 48vw, 210px);
  }

  .footer-links {
    width: min(calc(100% - 1rem), var(--container-width));
    padding: 0 var(--space-sm);
    font-size: 1.05rem;
  }

  .hero-section {
    min-height: 30rem;
    padding: var(--space-2xl) var(--space-sm);
    background-image:
      linear-gradient(180deg, rgba(3, 44, 88, 0.86) 0%, rgba(3, 44, 88, 0.62) 100%),
      url("../hero.jpg");
  }

  .hero-content {
    padding: 0 var(--space-sm);
  }

  .hero-copy {
    font-size: 1.1rem;
  }

  .intro-copy {
    width: min(calc(100% - 1rem), 760px);
    padding: var(--space-xl) var(--space-sm);
    text-align: left;
  }

  .content-panel {
    width: 100%;
    padding: var(--space-xl) var(--space-sm);
  }

  .form-column {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
  }

  .info-stack,
  .inline-fields {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .submit-button {
    width: 100%;
  }
}
