:root {
  --ink: #17231d;
  --forest: #153f31;
  --cream: #f3f0e8;
  --paper: #fffdf8;
  --line: #d7d2c7;
  --orange: #d75a35;
  --sage: #dce6df;
  --muted: #68716b;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 85% 0, #e3e9dd 0, transparent 35rem), var(--cream); font-family: "Avenir Next", Avenir, sans-serif; }
a { color: inherit; }
button, input { font: inherit; }

.commerce-header { display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 14px clamp(20px, 4vw, 58px); border-bottom: 1px solid rgba(23, 35, 29, .12); }
.commerce-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.commerce-brand img { width: 92px; height: auto; }
.commerce-brand span { padding-left: 12px; border-left: 1px solid var(--line); font-size: 14px; }
.commerce-header > a:last-child { font-size: 14px; font-weight: 700; }

.commerce-shell { width: min(1100px, calc(100% - 32px)); margin: clamp(36px, 7vh, 86px) auto 60px; }
.commerce-kicker { margin: 0 0 14px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.commerce-title { max-width: 780px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 7vw, 78px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.commerce-lede { max-width: 650px; margin: 22px 0 34px; color: #435048; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.commerce-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 22px; align-items: start; }
.commerce-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 253, 248, .96); box-shadow: 0 22px 70px rgba(29, 45, 36, .08); }
.commerce-card h2, .commerce-card h3 { margin: 0 0 12px; font-family: Georgia, serif; font-weight: 500; letter-spacing: -.02em; }
.commerce-card h2 { font-size: clamp(28px, 4vw, 44px); }
.commerce-card h3 { font-size: 27px; }
.commerce-card p { margin: 0 0 18px; line-height: 1.6; }
.commerce-card strong.email { overflow-wrap: anywhere; color: var(--forest); }
.status-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 50%; background: var(--sage); color: var(--forest); font-size: 25px; }
.status-mark[data-kind="loading"] { animation: pulse 1.2s ease-in-out infinite; }
.purchase-details { display: grid; gap: 12px; margin: 24px 0; }
.detail-row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.detail-row span { color: var(--muted); }
.detail-row strong { text-align: right; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 19px; border: 1px solid transparent; border-radius: 9px; background: var(--orange); color: #fff; text-decoration: none; font-weight: 800; cursor: pointer; }
.button:hover { background: #bc4929; }
.button.secondary { border-color: var(--forest); background: transparent; color: var(--forest); }
.button:disabled { opacity: .58; cursor: wait; }
.upgrade-card { position: relative; overflow: hidden; background: var(--forest); color: #fff; }
.upgrade-card::after { position: absolute; right: -40px; bottom: -70px; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; content: ""; }
.upgrade-card .commerce-kicker { color: #ff9a73; }
.upgrade-card p { color: #dbe5df; }
.upgrade-card .button { position: relative; z-index: 1; width: 100%; }
.upgrade-card[hidden] { display: none; }
.offer-chip { display: inline-flex; margin-bottom: 22px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.recovery-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 24px; }
.recovery-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.recovery-form input { min-width: 0; min-height: 52px; padding: 13px 15px; border: 1px solid #b9bcb6; border-radius: 9px; background: #fff; color: var(--ink); }
.form-message { min-height: 26px; margin-top: 14px !important; color: var(--forest); font-weight: 700; }
.access-panel[hidden], .recovery-panel[hidden] { display: none; }
.asset-list { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.asset-list a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; font-weight: 700; }
.asset-list a::after { content: "Download ↓"; color: var(--orange); font-size: 13px; }
.sheet-card { margin-top: 18px; padding: 22px; border-radius: 13px; background: var(--sage); }
.sheet-card p { margin-bottom: 14px; }
.sheet-card .button { width: 100%; }
.privacy-note { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

@keyframes pulse { 50% { transform: scale(.9); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

@media (max-width: 760px) {
  .commerce-header { min-height: 64px; padding-inline: 18px; }
  .commerce-brand img { width: 78px; }
  .commerce-brand span { font-size: 12px; }
  .commerce-header > a:last-child { display: none; }
  .commerce-shell { width: min(100% - 24px, 620px); margin-top: 34px; }
  .commerce-title { font-size: clamp(40px, 13vw, 58px); }
  .commerce-grid { grid-template-columns: 1fr; }
  .commerce-card { padding: 24px 20px; border-radius: 15px; }
  .recovery-form { grid-template-columns: 1fr; }
  .recovery-form .button { width: 100%; }
  .detail-row { display: grid; gap: 4px; }
  .detail-row strong { text-align: left; }
}
