:root {
  --ink: #18251d;
  --muted: #5b665f;
  --paper: #fffdf8;
  --wash: #f4f0e7;
  --line: #d8d2c5;
  --green: #1e7a4d;
  --blue: #234e70;
  --gold: #b7822f;
  --danger: #9f3a2f;
  --shadow: 0 16px 42px rgba(24, 37, 29, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fcfaf4 0%, var(--wash) 100%);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.pricing-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.pricing-hero {
  min-height: 520px;
  display: grid;
  align-content: start;
  gap: 58px;
  padding: 18px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.topbar a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.hero-layout,
.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-preview,
.checkout-form,
.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.checkout-preview {
  min-height: 340px;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 28px;
}

.checkout-preview span {
  color: var(--muted);
}

.checkout-preview strong {
  font-size: 42px;
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-logos small,
.method-panel span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-weight: 800;
}

.checkout-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.plans-section,
.checkout-section {
  padding: 26px 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 16px;
}

.section-title h2,
.checkout-form h2 {
  margin: 0;
  font-size: 30px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.plan-card {
  min-height: 330px;
  display: grid;
  gap: 12px;
  align-content: start;
  width: 100%;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.plan-card:hover,
.plan-card.selected {
  border-color: var(--green);
  background: #f7fff8;
}

.plan-card span {
  color: var(--muted);
  font-size: 13px;
}

.plan-card strong {
  font-size: 24px;
}

.plan-card em {
  color: var(--green);
  font-size: 32px;
  font-style: normal;
  font-weight: 800;
}

.plan-card em small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
}

.plan-card p,
.plan-card small,
.plan-card li {
  color: var(--muted);
  line-height: 1.5;
}

.plan-card ul {
  min-height: 78px;
  margin: 0;
  padding-left: 18px;
}

.checkout-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.checkout-form > div:first-child,
.method-panel,
.payer-fields,
.checkout-form button,
.checkout-message {
  grid-column: 1 / -1;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.method-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f6ef;
}

.method-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payer-fields {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
}

.payer-fields.active {
  display: grid;
}

.checkline {
  display: flex !important;
  align-items: start;
  gap: 10px !important;
}

.checkline input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--green);
}

.checkout-form button {
  padding: 14px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.checkout-message {
  min-height: 22px;
  margin: 0;
  color: var(--danger);
  font-weight: 700;
}

@media (max-width: 860px) {
  .pricing-hero {
    min-height: auto;
    gap: 34px;
  }

  .topbar,
  .hero-layout,
  .plans-grid,
  .checkout-form {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .checkout-form > div:first-child,
  .method-panel,
  .payer-fields,
  .checkout-form button,
  .checkout-message {
    grid-column: auto;
  }

  .payer-fields {
    grid-template-columns: 1fr;
  }
}
