@import url("/assets/fonts/fonts.css");

/* Store pages (checkout, thank-you, download, help) — same system as the sales page ("Living Botanical"):
   cream base, dark-green card, lime action, Poppins / Inter / Fraunces.
   The logic only reads data-* attributes; everything here is look. */

:root {
  --green: #b0ba25; --green-d: #7e8718; --green-dd: #5c6411; --lime: #c9d66e;
  --ink: #20241a; --ink-soft: #57604a; --ink-mute: #8a927e;
  --cream: #f7f8f0; --paper: #fff; --line: #e7e9d8;
  --forest: #173d1e; --forest-2: #0b2010;
  --warn-bg: #fff8e6; --warn-line: #f1dfa6; --warn-ink: #6b5200;
  --bad-bg: #fff0ef; --bad-line: #f7c3be; --bad-ink: #a80d0d;
  --teal: #009cbf;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;
  --ff-disp: "Poppins", var(--ff-body);
  --ff-serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body); color: var(--ink); line-height: 1.6;
  background: radial-gradient(90% 40% at 50% 0, #eef3d6, transparent 70%), var(--cream);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
a { color: var(--green-dd); text-underline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }

.co { max-width: 560px; margin: 0 auto; padding: 28px 20px 56px; }

/* top */
.co__brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.co__name { font-family: var(--ff-disp); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.co__secure {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-disp); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-dd); background: #f0f2d8; border: 1px solid #e2e7bd; border-radius: 100px; padding: .4em .85em;
}
.co__secure svg { width: 13px; height: 13px; }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  font-size: .74rem; font-weight: 500; color: var(--ink-mute); line-height: 1.3; }
.steps i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-family: var(--ff-disp); font-weight: 700; font-size: .82rem; background: var(--paper); border: 1.5px solid var(--line); color: var(--ink-mute); }
.steps .now { color: var(--ink); }
.steps .now i { background: var(--forest); border-color: var(--forest); color: var(--lime); }

/* order card */
.order {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 24px 20px 22px; border-radius: 28px; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(170deg, var(--forest), var(--forest-2)); border: 1px solid rgba(176,186,37,.45);
  box-shadow: 0 30px 70px -36px rgba(15,40,15,.75);
}
.order::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -130px; width: 360px; height: 260px;
  transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(176,186,37,.32), transparent); }
.order__cover { width: 96px; border-radius: 8px; box-shadow: 0 12px 24px -10px rgba(0,0,0,.7); }
.order__kicker { font-family: var(--ff-disp); font-weight: 600; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.order__name { font-family: var(--ff-disp); font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin-top: 2px; white-space: nowrap; }
.order__price { font-family: var(--ff-disp); font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; margin-top: 10px; }
.order__bill { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 6px; }

/* form card */
.formcard { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  padding: 26px 22px 24px; box-shadow: 0 14px 40px -18px rgba(45,50,20,.28); }
.formcard__title { font-family: var(--ff-disp); font-weight: 700; font-size: 1.32rem; line-height: 1.2; letter-spacing: -.02em; }
.formcard__title .fx { color: var(--green-d); font-family: var(--ff-serif); font-style: italic; font-weight: 600; }
.formcard__sub { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }

.field { margin-top: 18px; }
.field label { display: block; font-family: var(--ff-disp); font-weight: 600; font-size: .84rem; margin-bottom: 6px; }
.field small { display: block; color: var(--ink-mute); font-size: .78rem; margin-top: 6px; }
.field input {
  width: 100%; min-height: 52px; padding: 12px 16px; font: 16px/1.3 var(--ff-body); color: var(--ink);
  background: #fbfcf5; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(176,186,37,.22); background: #fff; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 16px; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--green-d); cursor: pointer; }
.check b { color: var(--ink); font-weight: 600; }
.check + .check { margin-top: 12px; }

/* button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; width: 100%; min-height: 56px; margin-top: 22px;
  font-family: var(--ff-disp); font-weight: 600; font-size: 1.04rem; line-height: 1.2; color: #1c2205;
  padding: .9em 1.4em; border-radius: 100px; border: 0; cursor: pointer; touch-action: manipulation;
  background: linear-gradient(135deg, #c3ce34, #9aa41c); box-shadow: 0 10px 26px -12px rgba(140,150,20,.9);
  text-decoration: none; transition: transform .18s ease, box-shadow .25s ease, opacity .2s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(140,150,20,.95); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.btn--ghost { min-height: 48px; margin-top: 12px; font-size: .94rem; background: #fff; border: 1.5px solid var(--line); box-shadow: none; color: var(--ink); }

.after { text-align: center; color: var(--ink-mute); font-size: .8rem; margin-top: 12px; }

/* notices */
.notice { margin-top: 16px; border-radius: 16px; padding: 14px 16px; font-size: .9rem; }
.notice--bad { background: var(--bad-bg); border: 1px solid var(--bad-line); color: var(--bad-ink); }
.notice--warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.notice b { font-weight: 600; }
.notice p + p { margin-top: 6px; }

/* payment methods */
.pay { margin-top: 18px; text-align: center; }
.pay__title { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-disp); font-weight: 600; font-size: .78rem; color: var(--ink-soft); }
.pay__title svg { width: 14px; height: 14px; color: var(--green-d); }
.pay__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.pay__list li { font-size: .78rem; font-weight: 500; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: .35em .8em; }
.pay__list .first { color: var(--green-dd); border-color: #d9e0a6; background: #f6f8e4; }
.pay__list .first b { font-weight: 700; }

/* states */
.state { text-align: center; padding: 60px 0; color: var(--ink-soft); }
.state--bad { color: var(--bad-ink); }

.legal { text-align: center; color: var(--ink-mute); font-size: .74rem; margin-top: 26px; }
.legal a { color: var(--ink-mute); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

@media (min-width: 520px) {
  .order { flex-direction: row; text-align: left; gap: 20px; }
  .order__cover { width: 104px; }
}

/* ---------- shared bits for thank-you / download / help pages ---------- */
.steps .done i { background: var(--green); border-color: var(--green); color: #1c2205; }
.steps .done { color: var(--ink-soft); }

.hero { text-align: center; margin: 8px 0 20px; }
.hero__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest); color: var(--lime); box-shadow: 0 16px 34px -16px rgba(15,40,15,.8); }
.hero__icon svg { width: 30px; height: 30px; }
.hero__title { font-family: var(--ff-disp); font-weight: 700; font-size: 1.7rem; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.hero__title .fx { color: var(--green-d); font-family: var(--ff-serif); font-style: italic; font-weight: 600; }
.hero__sub { color: var(--ink-soft); font-size: .95rem; margin-top: 8px; text-wrap: pretty; }

.spinner { width: 46px; height: 46px; margin: 10px auto 16px; border-radius: 50%;
  border: 4px solid #e4e9c4; border-top-color: var(--green-d); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.order .btn { margin-top: 16px; }
.order__ref { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 6px; }
.order__ref b { color: #fff; font-weight: 600; }

.small { font-size: .84rem; color: var(--ink-soft); text-align: center; margin-top: 12px; }
.small b { color: var(--ink); font-weight: 600; }
.notice--info { background: #f4f6e6; border: 1px solid #e2e7bd; color: var(--ink-soft); }
.notice a { color: inherit; font-weight: 600; }

.inline-form { margin-top: 12px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--green-dd); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* in-app browser warning: always first and loud */
.inapp { background: var(--warn-bg); border: 1.5px solid #e9c25a; color: var(--warn-ink); border-radius: 18px; padding: 16px 18px; margin-bottom: 18px; font-size: .92rem; }
.inapp p + p { margin-top: 6px; }

/* download page banner: colour carries meaning (fixed) */
.banner { border-radius: 22px; padding: 16px 18px; text-align: center; margin-bottom: 16px; font-family: var(--ff-disp); font-weight: 600; font-size: .95rem; }
.banner .big { font-size: 1.05rem; margin-top: 4px; font-weight: 700; }
body[data-state="fresh"] .banner { background: #eef5d8; border: 1.5px solid #c9d97a; color: #3b4a0a; }
body[data-state="last"] .banner { background: #fff4d6; border: 1.5px solid #f0c75a; color: #6b4b00; }
body[data-state="expired"] .banner, body[data-state="revoked"] .banner { background: #ffecea; border: 1.5px solid #f3a9a2; color: #8f1712; }
body[data-state="reopened"] .banner, body[data-state="final"] .banner { background: #f1ecfb; border: 1.5px solid #c9b6ef; color: #4a2e86; }

.filecard .btn[aria-disabled="true"] { opacity: .65; pointer-events: none; }
.file-status { display: block; font-size: .8rem; color: var(--lime); margin-top: 8px; min-height: 1em; }
.product-title { font-family: var(--ff-disp); font-weight: 700; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; text-align: center; margin-bottom: 14px; }
.product-title:empty { display: none; }
.licence { font-size: .78rem; color: var(--ink-mute); text-align: center; margin-top: 14px; }

.btn[aria-disabled="true"], .btn:disabled { opacity: .6; pointer-events: none; cursor: default; transform: none; box-shadow: none; }

/* Download page file card (2026-10-23): the stamped file name is long
   ("The Zero Utang E-book - PM-0001.pdf"); let it wrap on phones instead of
   running off the card. The thanks page keeps the one-line product name. */
.order > div { min-width: 0; max-width: 100%; }
.filecard .order__name { white-space: normal; overflow-wrap: anywhere; }
.filecard .notice { margin: 12px 0 0; text-align: left; }

/* GCash-through-QR Ph tip on checkout (2026-10-23): GCash is not a direct
   option on Xendit yet; QR Ph scanned from the GCash app is the way in. */
.gcash { margin-top: 16px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.gcash__title { font-family: var(--ff-disp); font-weight: 600; font-size: .92rem; color: var(--ink); line-height: 1.35; }
.gcash__tag { display: inline-block; background: #0b6df5; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: .25em .6em; border-radius: 100px; margin-right: 6px; vertical-align: 1px; }
.gcash__steps { margin: 10px 0 0; padding-left: 20px; font-size: .9rem; line-height: 1.5; color: var(--ink); }
.gcash__steps li { margin-top: 4px; }
.gcash__steps li::marker { font-weight: 700; color: var(--green-d); }
.gcash__note { margin-top: 10px; font-size: .78rem; color: var(--ink-soft); }

/* /pay — our own QR Ph page (2026-10-23) */
.hero--tight { padding-top: 6px; }
.qrcard { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px 16px; text-align: center; }
.qrcard__qr { display: inline-block; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px -16px rgba(0,0,0,.35); }
.qrcard__qr canvas { display: block; width: 248px; height: 248px; max-width: 100%; image-rendering: pixelated; }
.qrcard__label { margin-top: 12px; font-family: var(--ff-disp); font-weight: 600; font-size: 1.05rem; }
.qrcard__expiry { margin-top: 4px; font-size: .8rem; color: var(--ink-soft); }
.qrcard .btn { margin-top: 14px; }
.qrcard .notice { margin-top: 12px; text-align: left; }
.pay__wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: .85rem; color: var(--ink-soft); }
.spinner--sm { width: 16px; height: 16px; border-width: 2px; margin: 0; }
.other { margin-top: 20px; text-align: center; }
.other__title { font-family: var(--ff-disp); font-weight: 600; font-size: .85rem; color: var(--ink-soft); margin-bottom: 8px; }
.other .btn { width: 100%; }

/* Checkout banner, slim: name + price on one strip so the form shows without scrolling (2026-10-23) */
.order--slim { flex-direction: row; text-align: left; gap: 14px; padding: 14px 16px; border-radius: 20px; }
.order--slim .order__cover { width: 52px; border-radius: 6px; }
.order--slim .order__name { font-size: 1.08rem; white-space: normal; }
.order--slim .order__price { font-family: var(--ff-disp); font-size: .95rem; color: #fff; letter-spacing: 0; margin: 0; display: inline; line-height: inherit; }
.order--slim .order__bill { margin-top: 4px; }
.order--slim::before { top: -170px; }
.co .steps { margin-bottom: 16px; }
.order--slim + .formcard { margin-top: 14px; }
@media (max-width: 519px) {
  .co .co__brand { margin-bottom: 14px; }
  .co .steps { margin-bottom: 12px; }
  .co .steps li { font-size: .72rem; gap: 4px; }
  .co .steps i { width: 26px; height: 26px; }
  .order--slim { padding: 12px 14px; }
  .order--slim + .formcard { margin-top: 12px; padding: 18px 18px 18px; border-radius: 22px; }
  .formcard__title { font-size: 1.2rem; }
  .formcard .field { margin-top: 12px; }
  .formcard .check { margin-top: 12px; font-size: .86rem; }
  .formcard .check + .check { margin-top: 8px; }
}
.qrcard__clock { font-family: var(--ff-disp); font-variant-numeric: tabular-nums; color: var(--ink); }
.qrcard [data-action="renew"] { margin-top: 12px; }
.qrcard__qr img { display: block; width: 248px; height: 248px; max-width: 100%; -webkit-touch-callout: default; }
.qrcard__hold { margin-top: 8px; font-size: .78rem; color: var(--ink-mute); }
.gpay { margin-top: 18px; text-align: center; }
.btn--gcash { width: 100%; background: #0a6cff; color: #fff; }
.btn--gcash:hover { background: #0859d1; }
.gpay__note { margin-top: 10px; font-size: .85rem; color: var(--ink-soft); text-wrap: pretty; }
.gpay .notice { margin-top: 12px; text-align: left; }
