/* =========================
   Root
========================= */

:root {
  --ivory: #f4efe5;
  --ivory-light: #faf7f0;
  --cream: #e9dfce;

  --charcoal: #27231f;
  --charcoal-soft: #565047;
  --muted: #7d756a;

  --gold: #a6854d;
  --gold-dark: #806331;

  --success: #52654d;
  --pending: #9a7b43;
  --failed: #8b514a;

  --border: rgba(64, 52, 38, 0.14);

  --shadow:
    0 30px 80px rgba(57, 44, 27, 0.12);

  --max-width: 860px;
}


/* =========================
   Reset
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;

  background:
    radial-gradient(
      circle at 50% 5%,
      rgba(186, 154, 98, 0.15),
      transparent 32%
    ),
    var(--ivory);

  color: var(--charcoal);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}


/* =========================
   Layout
========================= */

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}


/* =========================
   Header
========================= */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 80px;

  display: flex;
  align-items: center;
}

.brand {
  text-decoration: none;
}

.brand span {
  display: block;

  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.brand small {
  display: block;

  margin-top: 2px;

  color: var(--gold-dark);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 0.9rem;
  font-style: italic;
}


/* =========================
   Main
========================= */

.access-main {
  min-height: calc(100vh - 200px);
  padding: 80px 0 100px;
}

.access-container {
  max-width: 780px;
}


/* =========================
   Status Card
========================= */

.status-card {
  padding: 64px;

  border: 1px solid var(--border);
  border-radius: 24px;

  background: rgba(250, 247, 240, 0.92);

  box-shadow: var(--shadow);

  text-align: center;
}

.eyebrow {
  margin: 0 0 17px;

  color: var(--gold-dark);

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.15em;
}

h1,
h2 {
  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-weight: 500;

  line-height: 1.15;
}

h1 {
  margin: 0 0 24px;

  font-size: clamp(2.6rem, 7vw, 4.4rem);

  letter-spacing: -0.035em;
}

h2 {
  font-size: 1.75rem;
}

.status-description {
  max-width: 610px;

  margin: 0 auto 34px;

  color: var(--charcoal-soft);

  font-size: 1.02rem;
}


/* =========================
   Status Icons
========================= */

.status-icon {
  width: 68px;
  height: 68px;

  margin: 0 auto 31px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-family: Georgia, serif;

  font-size: 2rem;
}

.success-icon {
  border: 1px solid rgba(82, 101, 77, 0.4);
  background: rgba(82, 101, 77, 0.08);
  color: var(--success);
}

.pending-icon {
  border: 1px solid rgba(154, 123, 67, 0.4);
  background: rgba(154, 123, 67, 0.08);
  color: var(--pending);
}

.failed-icon {
  border: 1px solid rgba(139, 81, 74, 0.35);
  background: rgba(139, 81, 74, 0.08);
  color: var(--failed);
}

.unknown-icon {
  border: 1px solid var(--border);
  color: var(--muted);
}


/* =========================
   Loading
========================= */

.loading-icon {
  border: 1px solid var(--border);
}

.loading-icon span {
  width: 22px;
  height: 22px;

  border: 2px solid var(--cream);
  border-top-color: var(--gold);

  border-radius: 50%;

  animation: rotate 0.8s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}


/* =========================
   Product Name
========================= */

.product-name {
  margin: -6px 0 28px;

  color: var(--gold-dark);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1.5rem;
}

.product-name strong {
  display: block;

  color: var(--charcoal);

  font-size: 1rem;
}


/* =========================
   Download Card
========================= */

.download-card {
  margin-top: 42px;

  padding: 36px;

  border: 1px solid rgba(166, 133, 77, 0.35);
  border-radius: 18px;

  background: var(--ivory);

  text-align: left;
}

.download-card-top {
  margin-bottom: 28px;
}

.download-label {
  display: block;

  margin-bottom: 12px;

  color: var(--gold-dark);

  font-size: 0.66rem;
  font-weight: 800;

  letter-spacing: 0.14em;
}

.download-card h2 {
  margin: 0 0 6px;

  font-size: 2rem;
}

.download-card p {
  margin: 0;

  color: var(--muted);
}

.download-note {
  margin-top: 14px !important;

  font-size: 0.8rem;
  text-align: center;
}


/* =========================
   Buttons
========================= */

.btn {
  min-height: 57px;

  padding: 16px 27px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  font-size: 0.95rem;
  font-weight: 750;

  line-height: 1.3;

  text-align: center;
  text-decoration: none;

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  width: 100%;

  background: var(--charcoal);

  color: var(--ivory-light);

  box-shadow:
    0 12px 28px rgba(39, 35, 31, 0.18);
}

.btn-primary:hover {
  background: #171513;
}

.btn-secondary {
  border: 1px solid var(--gold);

  background: transparent;

  color: var(--charcoal);
}

.btn-secondary:hover {
  background: var(--gold);
  color: white;
}

.text-link {
  display: block;

  margin-top: 25px;

  color: var(--muted);

  font-size: 0.85rem;
}


/* =========================
   Transaction
========================= */

.transaction-box {
  margin: 25px 0 0;

  padding: 18px;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.transaction-box span {
  display: block;

  color: var(--muted);

  font-size: 0.73rem;
}

.transaction-box strong {
  display: block;

  margin-top: 4px;

  font-size: 0.9rem;
}


/* =========================
   Next Step
========================= */

.next-step {
  margin-top: 55px;
  padding-top: 48px;

  border-top: 1px solid var(--border);
}

.next-step h2 {
  max-width: 550px;

  margin: 0 auto 20px;

  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.next-step > p:not(.eyebrow) {
  max-width: 570px;

  margin: 0 auto 28px;

  color: var(--charcoal-soft);
}

.next-step .btn {
  min-width: 310px;
}

.next-step small {
  display: block;

  margin-top: 13px;

  color: var(--muted);
}


/* =========================
   Footer
========================= */

.site-footer {
  padding: 42px 0;

  background: var(--charcoal);

  color: rgba(255, 255, 255, 0.65);
}

.footer-inner strong {
  display: block;

  color: var(--ivory);

  font-family: Georgia, serif;

  font-size: 1.08rem;
}

.footer-inner p {
  max-width: 550px;

  margin: 6px 0 15px;

  font-size: 0.8rem;
}

.footer-inner > span {
  font-size: 0.75rem;
}


/* =========================
   Mobile
========================= */

@media (max-width: 640px) {

  .container {
    width: calc(100% - 28px);
  }

  .access-main {
    padding: 42px 0 65px;
  }

  .status-card {
    padding: 42px 22px;
    border-radius: 17px;
  }

  .download-card {
    padding: 27px 20px;
  }

  .download-card h2 {
    font-size: 1.6rem;
  }

  .next-step .btn {
    width: 100%;
    min-width: 0;
  }

}





/* Purchase form */
.purchase-card { text-align:left; }
.purchase-card .eyebrow, .purchase-card h1, .purchase-card .status-description { text-align:center; }
.purchase-summary { margin:0 0 32px; padding:22px 24px; border:1px solid var(--border); border-radius:16px; background:rgba(233,223,206,.45); display:grid; grid-template-columns:1fr auto; gap:4px 20px; }
.purchase-summary span { font-family:Georgia,"Times New Roman",serif; font-size:1.18rem; }
.purchase-summary strong { color:var(--gold-dark); font-size:1.15rem; }
.purchase-summary small { grid-column:1/-1; color:var(--muted); }
.purchase-form { display:grid; gap:20px; }
.purchase-form label { display:grid; gap:7px; color:var(--charcoal); font-weight:700; }
.purchase-form input { width:100%; border:1px solid rgba(64,52,38,.22); border-radius:12px; padding:14px 15px; background:#fffdf8; color:var(--charcoal); font:inherit; }
.purchase-form input:focus { outline:2px solid rgba(166,133,77,.35); outline-offset:2px; border-color:var(--gold); }
.purchase-form label small { color:var(--muted); font-weight:400; font-size:.86rem; }
.purchase-form .btn { border:0; cursor:pointer; font:inherit; }
.secure-note { margin:22px 0 0; color:var(--muted); font-size:.84rem; text-align:center; }
.site-footer { padding:28px 0 42px; color:var(--muted); font-size:.86rem; text-align:center; }
.site-footer p { margin:0 0 6px; }
@media (max-width:640px){ .status-card{padding:36px 22px}.purchase-summary{grid-template-columns:1fr}.purchase-summary strong{grid-row:2}.purchase-summary small{grid-column:1} }
