* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f1eb;
  color: #172a45;
}

.app-shell {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.card {
  background: #fffdf8;
  border: 1px solid rgba(23, 42, 69, 0.12);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 14px 35px rgba(23, 42, 69, 0.08);
}

.header-card {
  display: flex;
  gap: 16px;
  align-items: center;
}

.firm-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #172a45;
  color: #d6b56d;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 1px;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #8c7445;
  font-weight: 700;
}

h1, h2 { margin: 0 0 8px; line-height: 1.15; }
h1 { font-size: 25px; }
h2 { font-size: 22px; }

.subtext {
  color: #5f6b7a;
  margin: 0;
  line-height: 1.5;
}

.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8c7445;
  font-weight: 700;
  margin: 0 0 6px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(23, 42, 69, 0.18);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #ffffff;
  color: #172a45;
}

textarea { resize: vertical; }

.terms-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #f8f5ee;
  border: 1px solid rgba(23, 42, 69, 0.08);
}

.checkline {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 500;
  line-height: 1.45;
}

.checkline input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.primary-btn, .secondary-btn, .back-btn {
  border: 0;
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-btn { background: #172a45; color: #ffffff; }
.primary-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.secondary-btn { background: #ede6d8; color: #172a45; }

.large-btn {
  min-height: 88px;
  font-size: 18px;
}

.back-btn {
  background: transparent;
  color: #8c7445;
  padding: 0;
  margin-bottom: 16px;
}

.center-card { text-align: center; }

.running-clock {
  font-size: clamp(44px, 11vw, 78px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #172a45;
  margin: 18px 0;
}

.hidden { display: none !important; }

@media (max-width: 520px) {
  .header-card { align-items: flex-start; }
  .firm-mark { width: 54px; height: 54px; font-size: 14px; }
  h1 { font-size: 21px; }
  .choice-grid { grid-template-columns: 1fr; }
}

.version-note {
  margin: 18px 0 0;
  color: #8b96a5;
  font-size: 12px;
  text-align: center;
}
