:root {
  color-scheme: light;
  --ink: #101614;
  --muted: #607069;
  --green: #20b93f;
  --green-dark: #087b35;
  --green-soft: #eaf8ee;
  --line: #dce5df;
  --cream: #f7f5ef;
  --white: #fff;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 88px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: white;
  background: #0c1511;
}

.brand { color: inherit; text-decoration: none; display: flex; gap: 12px; align-items: center; }
.brand > img { width: 46px; height: 46px; object-fit: cover; border-radius: 12px; }
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { color: var(--green); font-size: 25px; letter-spacing: -.04em; }
.brand small { margin-top: 3px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.environment-badge { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 7px 12px; color: #dff6e5; font-size: 12px; }

.hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
  align-items: center;
  gap: 60px;
  padding: 70px clamp(24px, 8vw, 120px) 86px;
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 35%, rgba(32,185,63,.24), transparent 28%),
    radial-gradient(circle at 16% 110%, rgba(32,185,63,.14), transparent 38%),
    #0c1511;
}

.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; max-width: 720px; font-size: clamp(48px, 6vw, 82px); line-height: .98; letter-spacing: -.055em; }
.hero-text { max-width: 600px; margin: 28px 0; color: #cbd7d1; font-size: 18px; line-height: 1.55; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 0; list-style: none; color: #eaf4ee; font-size: 13px; }
.trust-list li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 800; }

.card-stage { position: relative; justify-self: center; width: min(100%, 480px); perspective: 1000px; }
.gift-card-preview {
  position: relative;
  z-index: 2;
  min-height: 295px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.2);
  transform: rotateY(-8deg) rotateX(3deg);
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), transparent 35%),
    radial-gradient(circle at 80% 0, rgba(89,255,111,.35), transparent 45%),
    linear-gradient(135deg, #168b36, #062c20 72%);
}
.preview-top, .preview-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.preview-logo { width: 38px; height: 38px; object-fit: cover; border-radius: 9px; }
.gift-card-preview > p { margin: 34px 0 4px; color: #c8f4d1; font-size: 13px; letter-spacing: .2em; }
.gift-card-preview > strong { font-size: 54px; letter-spacing: -.04em; }
.card-shadow { display: block; position: absolute; left: 8%; right: 0; bottom: -26px; height: 50px; border-radius: 50%; filter: blur(24px); background: rgba(20,130,49,.45); }

.purchase-section { padding: 84px clamp(24px, 10vw, 150px); background: var(--cream); }
.section-heading { max-width: 760px; margin-bottom: 36px; }
h2 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.04em; }
.program-message { color: var(--muted); }
.program-message.disabled { color: #9a4b00; font-weight: 600; }

.purchase-form { max-width: 980px; padding: clamp(24px, 4vw, 52px); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 50px rgba(20,40,30,.07); background: white; }
fieldset { padding: 0 0 34px; margin: 0 0 34px; border: 0; border-bottom: 1px solid var(--line); }
legend { margin-bottom: 20px; font-size: 18px; font-weight: 700; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.amount-option { min-height: 58px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font-size: 18px; font-weight: 700; }
.amount-option:hover, .amount-option.selected { border-color: var(--green-dark); color: var(--green-dark); background: var(--green-soft); }
.design-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.design-option { min-height: 76px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font-weight: 700; }
.design-option:hover, .design-option.selected { border-color: var(--green-dark); color: var(--green-dark); box-shadow: inset 0 0 0 2px rgba(8,123,53,.08); }
.custom-amount { display: block; margin-top: 18px; color: var(--muted); font-size: 13px; font-weight: 600; }
.custom-amount span { max-width: 220px; display: flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.custom-amount b { padding-left: 14px; color: var(--green-dark); }
.custom-amount input { width: 100%; padding: 13px 12px; border: 0; outline: 0; background: transparent; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.field-grid input, .full-field textarea { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 10px; outline: 0; }
.field-grid input:focus, .full-field textarea:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(32,185,63,.12); }
.full-field { position: relative; display: grid; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 13px; font-weight: 600; }
.full-field textarea { resize: vertical; min-height: 100px; }
.full-field > small { justify-self: end; color: var(--muted); }
.field-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.checkout-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.checkout-row > div { display: grid; gap: 3px; }
.checkout-row small { color: var(--muted); }
.checkout-row strong { font-size: 28px; }
.checkout-row button { min-height: 54px; padding: 0 24px; border: 0; border-radius: 12px; color: white; background: var(--green-dark); font-weight: 700; }
.checkout-row button:hover:not(:disabled) { background: #05662b; }
.checkout-row button:disabled { cursor: not-allowed; opacity: .45; }
.form-message { min-height: 22px; margin: 16px 0 0; color: #9a4b00; font-weight: 600; }

.how-it-works { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; padding: 90px clamp(24px, 8vw, 120px); }
.how-it-works ol { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.how-it-works li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.how-it-works li > span { color: var(--green); font-weight: 800; }
.how-it-works strong { font-size: 18px; }
.how-it-works p { margin: 5px 0 0; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px clamp(24px, 6vw, 88px); color: #b8c6bf; background: #0c1511; font-size: 12px; }
footer a { color: #dff6e5; }

.gift-card-preview[data-design="celebration"] { background: radial-gradient(circle at 25% 20%, rgba(255,221,87,.45), transparent 28%), linear-gradient(135deg, #15a83a, #144427 72%); }
.gift-card-preview[data-design="thank-you"] { background: radial-gradient(circle at 80% 0, rgba(194,255,204,.35), transparent 45%), linear-gradient(135deg, #0b7042, #07231d 72%); }

.status-page { min-height: 100vh; background: var(--cream); }
.status-main { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 40px 20px; }
.status-panel { width: min(100%, 680px); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 18px 50px rgba(20,40,30,.08); }
.status-panel h1 { color: var(--ink); font-size: clamp(38px, 7vw, 60px); }
.status-panel > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.status-panel form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-top: 28px; }
.status-panel label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.status-panel input { min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; }
.status-panel button { min-height: 52px; padding: 0 22px; border: 0; border-radius: 10px; color: white; background: var(--green-dark); font-weight: 700; }
.status-result { min-height: 52px; margin-top: 18px; padding: 15px; border-radius: 10px; color: var(--green-dark); background: var(--green-soft); font-weight: 700; }
.status-result:empty { display: none; }
.status-result.error { color: #8a3600; background: #fff0e5; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 54px; }
  .card-stage { width: min(100%, 430px); }
  .amount-grid { grid-template-columns: 1fr 1fr; }
  .field-grid, .how-it-works { grid-template-columns: 1fr; }
  .how-it-works { gap: 30px; }
}

@media (max-width: 520px) {
  .environment-badge { display: none; }
  .hero { padding-inline: 20px; }
  .gift-card-preview { min-height: 230px; padding: 22px; }
  .gift-card-preview > strong { font-size: 43px; }
  .checkout-row { align-items: stretch; flex-direction: column; }
  .checkout-row button { width: 100%; }
  .design-grid { grid-template-columns: 1fr; }
  .status-panel form { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
