:root {
  --bg: #f7f4f1;
  --card: #fffdfb;
  --text: #2f3331;
  --muted: #6f746f;
  --accent: #ad9052;
  --accent-dark: #8d733f;
  --border: #e8e0d6;
  --error: #a43232;
  --success: #2f6b45;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff 0, var(--bg) 62%);
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 18px 24px;
}

.card {
  width: min(100%, 460px);
  background: rgba(255, 253, 251, 0.94);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(47, 51, 49, 0.14);
  padding: 34px 28px 30px;
  text-align: center;
}

.logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
  border-radius: 34px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  line-height: 1.1;
}

.intro {
  margin: 0 auto 26px;
  color: var(--muted);
  line-height: 1.45;
}

.form {
  display: grid;
  gap: 12px;
  text-align: left;
}

label {
  font-weight: 650;
  font-size: 0.95rem;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 1rem;
  background: white;
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(173, 144, 82, 0.16);
}

button {
  margin-top: 6px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

button:hover { background: var(--accent-dark); transform: translateY(-1px); }
button:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.message {
  min-height: 1.4em;
  margin: 18px 0 0;
  line-height: 1.45;
  font-weight: 650;
}

.message.success { color: var(--success); }
.message.error { color: var(--error); }

.footer {
  padding: 0 18px 24px;
  text-align: center;
  color: var(--muted);
}

.footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}

.footer a:hover { text-decoration: underline; }

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  line-height: 1.65;
}

.legal-page h1 { margin-bottom: 22px; }
.legal-page h2 { margin-top: 30px; }
.legal-page a { color: var(--accent-dark); font-weight: 650; }

/* Landing Page */
.site-header {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover { color: var(--accent-dark); }

.nav-cta {
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
}

main { width: 100%; }

.hero {
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 42px;
  padding: 64px 0 56px;
}

.hero-content h1 {
  margin: 0 0 20px;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 850px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 15px 22px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(141, 115, 63, 0.23);
}

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

.button-secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.62);
}

.button-secondary:hover { border-color: var(--accent); transform: translateY(-1px); }

.hero-card {
  background: rgba(255, 253, 251, 0.84);
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(47, 51, 49, 0.12);
}

.receipt {
  background: #fff;
  border: 1px dashed #d5c8b6;
  border-radius: 24px;
  padding: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  box-shadow: inset 0 -10px 30px rgba(173, 144, 82, 0.06);
}

.receipt-top,
.receipt li,
.receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.receipt-top { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.receipt p { color: var(--muted); margin: 14px 0; }
.receipt ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.receipt-total { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; font-size: 1.1rem; }
.receipt small { display: block; margin-top: 18px; color: var(--muted); text-align: center; }

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.section h2,
.cta-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.text-block {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.text-block p:first-child { margin-top: 0; }
.text-block p:last-child { margin-bottom: 0; }

.section-heading {
  max-width: 790px;
  margin-bottom: 28px;
}

.steps-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card,
.benefits-grid article,
.info-panel,
.feature-card,
.highlighted {
  background: rgba(255, 253, 251, 0.88);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 14px 42px rgba(47, 51, 49, 0.08);
}

.step-card { padding: 22px; }
.step-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(173, 144, 82, 0.16);
  color: var(--accent-dark);
  font-weight: 900;
}
.step-card h3 { margin: 18px 0 8px; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.55; }

.info-panel {
  margin-top: 16px;
  padding: 26px;
}
.info-panel h3 { margin: 0 0 16px; }

.check-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 900;
}

.compact-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

.alt-section {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100% - 1180px) / 2));
  padding-right: max(18px, calc((100% - 1180px) / 2));
  background: rgba(255, 253, 251, 0.54);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.benefits-grid article {
  min-height: 150px;
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 1.7rem;
}
.benefits-grid strong { font-size: 1.05rem; }
.benefits-grid span { color: var(--muted); line-height: 1.5; font-size: 1rem; }

.highlighted { padding: 26px; }

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-grid span {
  padding: 13px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  font-weight: 750;
}

.split-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 18px;
}

.feature-card { padding: 32px; }
.feature-card h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); margin-bottom: 12px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.cta-section {
  width: min(980px, calc(100% - 36px));
  margin: 48px auto 72px;
  padding: 54px 32px;
  text-align: center;
  background: var(--text);
  color: #fff;
  border-radius: 36px;
  box-shadow: 0 24px 70px rgba(47, 51, 49, 0.18);
}

.cta-section .section-label { color: #e6d5af; }
.cta-section p:not(.section-label) { color: rgba(255,255,255,0.72); max-width: 640px; margin: 18px auto 28px; line-height: 1.65; }
.cta-section .button-primary { background: #fff; color: var(--text); box-shadow: none; }
.cta-section .button-primary:hover { background: #f3eadc; }
.landing-footer { padding-top: 0; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; }
  .site-nav { display: none; }
  .hero,
  .two-column,
  .split-cards { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; gap: 26px; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .page { padding-top: 24px; }
  .card { border-radius: 24px; padding: 26px 20px; }
  .logo { width: 138px; height: 138px; }
  .hero,
  .section { width: min(100% - 28px, 1180px); }
  .hero-content h1 { font-size: clamp(2.25rem, 14vw, 3.8rem); }
  .hero-actions a { width: 100%; }
  .steps-grid,
  .benefits-grid,
  .compact-list { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .benefits-grid article { min-height: auto; }
  .cta-section { width: calc(100% - 28px); padding: 38px 22px; border-radius: 28px; }
}


/* Payment Page */
.payment-hero {
  width: min(980px, calc(100% - 36px));
  margin: 44px auto 24px;
  text-align: center;
  padding: 42px 0 20px;
}

.payment-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.payment-hero p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.6;
}

.payment-section {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto 36px;
  padding: 28px;
  background: rgba(255, 253, 251, 0.88);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 18px 56px rgba(47, 51, 49, 0.1);
}

.payment-note {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto 72px;
  text-align: center;
  padding: 32px;
  background: rgba(255,255,255,0.58);
  border: 1px solid var(--border);
  border-radius: 28px;
}

.payment-note h2 { margin: 0 0 10px; }
.payment-note p { color: var(--muted); line-height: 1.6; margin: 0 auto 20px; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta-section .cta-alt {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.cta-section .cta-alt:hover {
  background: rgba(255,255,255,0.12);
}

@media (max-width: 560px) {
  .payment-section { width: calc(100% - 28px); padding: 16px; border-radius: 24px; }
  .payment-note { width: calc(100% - 28px); padding: 24px 18px; }
}
