:root {
  --bg: #f4f6f1;
  --ink: #1b2320;
  --olive: #5e7f1f;
  --olive-dark: #3f5f0f;
  --line: #d7ddcf;
  --card: #ffffff;
  --accent: #f4de5a;
  --error: #c62828;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0%, #dae5c7 0%, transparent 30%),
    radial-gradient(circle at 85% 0%, #eff4df 0%, transparent 32%),
    var(--bg);
}

.shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(16 30 0 / 0.07);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  align-items: stretch;
}

.hero-copy {
  flex: 1 1 auto;
}

.hero-callout {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  gap: 0.55rem;
}

.hero-callout .cta {
  align-self: flex-end;
}

.hero-callout .cta.secondary {
  margin-top: auto;
}

.hero-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.cta.black {
  background: #000;
}

.brand-logo {
  display: block;
  width: clamp(170px, 26vw, 260px);
  height: auto;
  margin: 0 0 0.45rem;
}

h1 {
  margin: 0.75rem 0 0.45rem;
  font-family: 'Archivo Black', sans-serif;
  color: var(--olive);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lede {
  margin-bottom: 0;
  max-width: 60ch;
}

.badge {
  min-width: 140px;
  aspect-ratio: 1;
  background: var(--accent);
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.6rem;
  font-weight: 700;
}

.badge strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1rem;
  align-items: start;
}

.stack {
  padding: 1.1rem;
  display: grid;
  gap: 0.9rem;
}

h2 {
  margin: 1rem 0 0.45rem;
  color: var(--olive);
  font-size: 1.6rem;
  line-height: 1.15;
}

h3 {
  margin: 0.75rem 0 0.3rem;
  font-size: 1.4rem;
}

.offer-list {
  display: grid;
  gap: 0.55rem;
}

.offer {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 4.3rem;
}

.offer-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.offer-label {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}

.offer strong {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.offer input[type='radio'] {
  margin: 0;
  width: 1.12rem;
  height: 1.12rem;
  flex-shrink: 0;
}

.offer.disabled {
  opacity: 0.5;
}

label {
  display: grid;
  gap: 0.28rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

input,
select {
  border: 1px solid #c4ccbf;
  border-radius: 6px;
  height: 2.7rem;
  padding: 0 0.7rem;
  font-size: 1rem;
}

section {
  display: grid;
  gap: 0.55rem;
}

fieldset {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
}

legend {
  padding: 0 0.4rem;
  font-weight: 500;
}

.check,
.radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.check input,
.radio input {
  width: auto;
  height: auto;
  margin: 0;
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.8rem;
}

.summary {
  padding: 1rem;
  position: sticky;
  top: 1rem;
}

.muted {
  color: #556255;
}

.small {
  font-size: 0.9rem;
}

.account-list {
  display: grid;
  gap: 0.55rem;
}

.account-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: var(--card);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.account-actions {
  display: flex;
  justify-content: flex-end;
}

.account-empty {
  margin: 0.5rem 0;
}

.total {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.cta.secondary {
  background: #2f3d34;
  height: 2.45rem;
}

.cta {
  border: none;
  background: var(--olive);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 6px;
  height: 3.1rem;
  font-size: 1.02rem;
  cursor: pointer;
}

.cta:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hint {
  margin-top: 0;
  color: #455146;
}

.stripe-box {
  border: 1px solid #c4ccbf;
  border-radius: 6px;
  padding: 0.75rem;
  background: white;
}

.error {
  color: var(--error);
  min-height: 1.25rem;
}

.status {
  min-height: 1.25rem;
  font-weight: 500;
}

.thank-you-wrap {
  width: min(780px, calc(100% - 2rem));
  margin: 4rem auto;
}

.thank-you-card {
  padding: 2rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.thank-you-logo-link {
  display: block;
}

.thank-you-card .brand-logo {
  margin: 0 auto 0.45rem;
}

.thank-you-copy {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.thank-you-link {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  padding: 0 1.25rem;
  text-decoration: none;
  justify-self: center;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .hero {
    align-items: stretch;
  }

  .hero-callout,
  .hero-copy {
    text-align: center;
    align-items: center;
  }

  .hero-callout {
    width: 100%;
  }

  .hero-callout .cta,
  .cta,
  .cta.secondary {
    width: min(100%, 360px);
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

@media (max-width: 620px) {
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-callout {
    width: 100%;
    text-align: left;
  }

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

  .stack {
    padding: 0.95rem;
  }

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

  .offer {
    padding: 0.75rem 0.85rem;
    min-height: 4rem;
  }

  .offer strong {
    font-size: 1.6rem;
  }

  .thank-you-wrap {
    margin: 2rem auto;
  }

  .thank-you-card {
    padding: 1.25rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }
}
