/* ==========================================================================
   Aureon Studio OS v4.0 — Official Checkout Stylesheet
   Exact acode.tech Design Tokens (#151713 ink, #e9e8df cream, #f5f4ee paper, #ff6b35 orange)
   Typography: Space Grotesk (Display/UI) + DM Sans (Body)
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin.woff2') format('woff2');
}

:root {
  --ink: #151713;
  --ink-2: #20231d;
  --ink-3: #2b2f27;
  --cream: #e9e8df;
  --paper: #f5f4ee;
  --white: #fffefa;
  --orange: #ff6b35;
  --orange-hi: #ff8a5c;
  --rust: #a8390f;
  --muted: #464940;
  --muted-on-ink: #c3c3b6;
  --line: #c9c8bc;
  --line-on-ink: #3a3d35;
  --edge-on-ink: #71756a;
  --field-line: #6d7065;
  --success: #15803d;
  --success-bg: #dcfce7;
  --danger: #a11a1a;
  --danger-bg: #fbeaea;

  --head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-m: 12px;
  --r-l: 20px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.wrap {
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
}

/* ---------- Top Orange Launch Promo Strip ---------- */
.promo-strip {
  background: var(--orange);
  color: var(--ink);
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(21, 23, 19, 0.14);
}
.promo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}
.promo-pill {
  background: var(--ink);
  color: var(--white);
  font-family: var(--head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.promo-strip del { opacity: 0.65; margin-inline: 3px; }
.promo-strip code {
  background: rgba(21, 23, 19, 0.12);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 700;
}

/* ---------- Header (Exact acode.tech Style) ---------- */
.site-header {
  background: rgba(233, 232, 223, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand i { color: var(--orange); font-style: normal; }

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.secure-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.ghost-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  font-family: var(--head);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.16s, color 0.16s;
}
.ghost-link:hover {
  background: var(--ink);
  color: var(--white);
}

/* ---------- Main Intro ---------- */
.checkout-main {
  padding: 44px 0 72px;
}
.checkout-intro {
  max-width: 780px;
  margin-bottom: 34px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}
.checkout-intro h1 {
  margin: 0 0 12px;
  font-family: var(--head);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.accent-word {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}
.intro-lead {
  margin: 0;
  font-size: 1.04rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- 2-Column Checkout Grid ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.88fr);
  gap: 28px;
  align-items: start;
}

.card-light {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 32px;
  box-shadow: 0 18px 45px rgba(21, 23, 19, 0.06);
}

.card-ink {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink-3);
  border-radius: var(--r-l);
  padding: 30px;
  position: sticky;
  top: 90px;
  box-shadow: 0 24px 60px rgba(21, 23, 19, 0.22);
}

/* ---------- Alerts ---------- */
.co-alert {
  padding: 14px 16px;
  border-radius: var(--r-m);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.co-alert[hidden] { display: none !important; }
.co-alert.error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(161, 26, 26, 0.25);
}
.co-alert.success {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(21, 128, 61, 0.28);
}

/* ---------- Steps & Form Controls ---------- */
.step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--orange);
  font-family: var(--head);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-head h2 {
  margin: 0 0 3px;
  font-family: var(--head);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.step-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.fields-stack { display: flex; flex-direction: column; gap: 15px; }
.fields-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--rust); }
.field .opt { font-weight: 400; color: var(--muted); font-size: 0.78rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.96rem;
  transition: border-color 0.16s, background-color 0.16s, box-shadow 0.16s;
}
.field input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.22);
}

.divider {
  border: 0;
  border-top: 1px solid var(--cream);
  margin: 28px 0;
}

/* ---------- Payment Method Tabs ---------- */
.method-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.method-tab {
  text-align: left;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.16s, background-color 0.16s, transform 0.16s;
}
.method-tab:hover {
  border-color: var(--ink);
}
.method-tab.is-active {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 2px var(--orange);
}
.method-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.method-tab strong {
  font-family: var(--head);
  font-size: 0.96rem;
}
.method-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.method-badge {
  font-family: var(--head);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}
.method-badge.instant { background: var(--orange); color: var(--ink); }
.method-badge.local { background: var(--ink); color: var(--cream); }

.pay-pane[hidden] { display: none !important; }

/* ---------- PayPal Pane ---------- */
.paypal-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.paypal-box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.paypal-box-head strong {
  font-family: var(--head);
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}
.paypal-box-head p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.price-pill-dark {
  background: var(--ink);
  color: var(--orange);
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.paypal-sdk-slot {
  min-height: 54px;
  margin-bottom: 14px;
}
.paypal-loading {
  text-align: center;
  padding: 16px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.card-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.card-trust-row span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
}

/* ---------- CIH Bank Transfer Pane ---------- */
.rib-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: 16px;
  padding: 20px 22px;
}
.rib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-on-ink);
}
.rib-head strong {
  font-family: var(--head);
  font-size: 0.96rem;
  color: var(--orange);
}
.rib-amount {
  background: rgba(255, 107, 53, 0.16);
  color: var(--orange-hi);
  border: 1px solid rgba(255, 107, 53, 0.35);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
}
.rib-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}
.rib-row:last-child { border-bottom: 0; }
.rib-lbl { font-size: 0.82rem; color: var(--muted-on-ink); }
.rib-val-group { display: flex; align-items: center; gap: 8px; }
.rib-val-group code {
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
}
.copy-btn {
  border: 1px solid var(--edge-on-ink);
  background: var(--ink-2);
  color: var(--cream);
  font-family: var(--head);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.copy-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-primary-orange {
  width: 100%;
  margin-top: 18px;
  padding: 15px 22px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--head);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s, background-color 0.16s;
}
.btn-primary-orange:hover {
  background: var(--orange-hi);
  transform: translateY(-1px);
}
.btn-primary-orange:disabled { opacity: 0.55; cursor: not-allowed; }
.cih-footnote {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Right Summary Card (Dark Ink #151713) ---------- */
.summary-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.tag-orange {
  background: var(--orange);
  color: var(--ink);
  font-family: var(--head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: var(--r-pill);
}
.tag-ver {
  border: 1px solid var(--line-on-ink);
  color: var(--muted-on-ink);
  font-family: var(--head);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.summary-title {
  margin: 0 0 6px;
  font-family: var(--head);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.03em;
}
.summary-sub {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--muted-on-ink);
}

.spec-chips {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.spec-chips li {
  background: var(--ink-2);
  border: 1px solid var(--line-on-ink);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-chips b {
  font-family: var(--head);
  font-size: 1.15rem;
  color: var(--orange);
}
.spec-chips span {
  font-size: 0.72rem;
  color: var(--muted-on-ink);
}

.price-box {
  background: var(--ink-2);
  border: 1px solid var(--line-on-ink);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted-on-ink);
  padding: 6px 0;
}
.price-row del { opacity: 0.65; }
.promo-row strong { color: var(--orange); }
.total-row {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-on-ink);
  color: var(--white);
}
.total-row small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted-on-ink);
}
.total-figure {
  font-family: var(--head);
  color: var(--white);
  white-space: nowrap;
}
.total-figure strong { font-size: 2rem; color: var(--orange); letter-spacing: -0.04em; }
.total-figure span { font-size: 0.9rem; color: var(--cream); }

.included-block h3 {
  font-family: var(--head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin: 0 0 12px;
}
.included-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted-on-ink);
}
.included-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.45;
}
.included-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 800;
}
.included-list strong { color: var(--white); }

.trust-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-top: 16px;
  border-top: 1px solid var(--line-on-ink);
  font-size: 0.82rem;
  color: var(--muted-on-ink);
}
.trust-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
.trust-box strong { color: var(--white); display: block; margin-bottom: 2px; }
.trust-box p { margin: 0; }
.trust-box a { color: var(--orange); text-decoration: none; font-weight: 600; }

/* ---------- License Revealed Success Screen ---------- */
.license-reveal-box {
  background: var(--ink);
  color: var(--white);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
  margin: 18px 0;
}
.license-key-display {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  word-break: break-all;
  background: var(--ink-2);
  border: 1.5px dashed var(--orange);
  color: var(--orange-hi);
  padding: 14px;
  border-radius: 12px;
  margin: 10px 0 18px;
}
.success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge-on-ink);
  background: var(--ink-2);
  color: var(--white);
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-pill-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--rust); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .card-ink { position: static; }
}
@media (max-width: 640px) {
  .card-light, .card-ink { padding: 22px 18px; }
  .fields-row, .method-tabs { grid-template-columns: 1fr; }
  .secure-chip { display: none; }
}
