/* Regency Research — landing is the design source of truth; checkout/receipt cascade from these tokens. */

:root {
  color-scheme: light dark;
  --navy: #002b49;
  --navy-deep: #001a2e;
  --navy-mid: #0a3a5c;
  --gold: #b4975a;
  --gold-soft: #c9b07a;
  --paper: #f4f1ea;
  --paper-warm: #ebe6dc;
  --ink: #14202e;
  --muted: #5a6573;
  --border: #d4cfc4;
  --surface: #fffcf7;
  --heading: #002b49;
  --accent: var(--navy);
  --accent-hover: var(--navy-mid);
  --success: #1e6b45;
  --danger: #9a2f2f;
  --paypal: #0070ba;
  --paypal-hover: #005ea6;
  --radius: 10px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --bg: var(--paper);
  --text: var(--ink);
  --header-h: 4.25rem;
  --panel-bg: rgba(255, 252, 247, 0.92);
  --panel-bg-warm: rgba(235, 230, 220, 0.93);
  --panel-bg-cta: rgba(0, 43, 73, 0.88);
  --panel-border: rgba(255, 255, 255, 0.35);
  --header-bg: rgba(255, 252, 247, 0.92);
  --footer-bg: rgba(255, 252, 247, 0.94);
  --alert-info-bg: #e8eef4;
  --alert-info-border: #c5d0dc;
  --alert-success-bg: #e8f2ec;
  --alert-success-border: #b8d9c4;
  --alert-warn-bg: #f8f0e4;
  --alert-warn-border: #e0d0b0;
  --alert-warn-text: #6a4a18;
  --panel-success-bg: #f4faf6;
  --panel-error-bg: #fdf5f5;
  --panel-error-border: #e8b4b4;
  --scrim: linear-gradient(180deg, rgba(0, 26, 46, 0.52) 0%, rgba(0, 43, 73, 0.58) 45%, rgba(0, 26, 46, 0.68) 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b141e;
    --paper-warm: #122033;
    --ink: #e8eef4;
    --muted: #9aabba;
    --border: #2c4156;
    --surface: #152536;
    --heading: #f0f5fa;
    --bg: var(--paper);
    --text: var(--ink);
    --success: #5dca8f;
    --danger: #f07171;
    --panel-bg: rgba(18, 32, 48, 0.9);
    --panel-bg-warm: rgba(22, 38, 56, 0.92);
    --panel-bg-cta: rgba(0, 26, 46, 0.9);
    --panel-border: rgba(180, 151, 90, 0.22);
    --header-bg: rgba(12, 22, 34, 0.9);
    --footer-bg: rgba(12, 22, 34, 0.94);
    --alert-info-bg: #1a2d40;
    --alert-info-border: #2c4156;
    --alert-success-bg: #143226;
    --alert-success-border: #2a5a40;
    --alert-warn-bg: #2e2618;
    --alert-warn-border: #5a4a28;
    --alert-warn-text: #e0c48a;
    --panel-success-bg: #143226;
    --panel-error-bg: #2a1818;
    --panel-error-border: #6a3030;
    --scrim: linear-gradient(180deg, rgba(0, 14, 26, 0.7) 0%, rgba(0, 26, 46, 0.78) 45%, rgba(0, 10, 18, 0.86) 100%);
  }
}

html[data-theme="dark"] {
    --paper: #0b141e;
    --paper-warm: #122033;
    --ink: #e8eef4;
    --muted: #9aabba;
    --border: #2c4156;
    --surface: #152536;
    --heading: #f0f5fa;
    --bg: var(--paper);
    --text: var(--ink);
    --success: #5dca8f;
    --danger: #f07171;
    --panel-bg: rgba(18, 32, 48, 0.9);
    --panel-bg-warm: rgba(22, 38, 56, 0.92);
    --panel-bg-cta: rgba(0, 26, 46, 0.9);
    --panel-border: rgba(180, 151, 90, 0.22);
    --header-bg: rgba(12, 22, 34, 0.9);
    --footer-bg: rgba(12, 22, 34, 0.94);
    --alert-info-bg: #1a2d40;
    --alert-info-border: #2c4156;
    --alert-success-bg: #143226;
    --alert-success-border: #2a5a40;
    --alert-warn-bg: #2e2618;
    --alert-warn-border: #5a4a28;
    --alert-warn-text: #e0c48a;
    --panel-success-bg: #143226;
    --panel-error-bg: #2a1818;
    --panel-error-border: #6a3030;
    --scrim: linear-gradient(180deg, rgba(0, 14, 26, 0.7) 0%, rgba(0, 26, 46, 0.78) 45%, rgba(0, 10, 18, 0.86) 100%);
}

html[data-theme="light"] {
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hidden { display: none !important; }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header[hidden] { display: none !important; }

.header-inner {
  max-width: 44rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.header-chip {
  min-width: 2.75rem;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.header-chip--icon {
  width: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-chip--icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-chip--lang {
  text-transform: none;
  letter-spacing: 0.01em;
  min-width: auto;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

body.page-landing .hero {
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--heading);
}
.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.subtitle {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

/* ---------- Site sticky parallax background ---------- */
body.has-atmosphere {
  background: var(--navy-deep);
}
body.has-atmosphere .site-footer {
  position: relative;
  z-index: 2;
  background: var(--footer-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#landing {
  position: relative;
  z-index: 1;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
body:not(.has-atmosphere) .site-bg {
  display: none;
}

.site-bg-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: -8%;
  height: 160%;
  will-change: transform;
}

.site-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  transform: scale(1.14);
}

.site-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 18%, rgba(180, 151, 90, 0.18), transparent 55%),
    var(--scrim);
}

@media (prefers-reduced-motion: reduce) {
  .site-bg-layer { transform: none !important; will-change: auto; }
}

/* ---------- Landing hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
  color: #f5f0e6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: heroIn 0.9s ease-out both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner { animation: none; }
  html { scroll-behavior: auto; }
}

.hero-logo {
  width: min(72vw, 17.5rem);
  height: auto;
  aspect-ratio: 1;
  display: block;
  margin: 0 auto 1.75rem;
  border-radius: 1.35rem;
  object-fit: cover;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.42);
}

.hero-headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 5.8vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 22ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 3.2vw, 1.15rem);
  line-height: 1.5;
  color: rgba(245, 240, 230, 0.9);
  max-width: 32ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.hero-email {
  color: var(--gold-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
}
.hero-email:hover { color: #fff; text-decoration: underline; }

/* ---------- Landing sections (scroll over sticky bg) ---------- */
.landing-main {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.land-section {
  padding: 1.15rem 0;
  background: transparent;
}
.land-section--cta {
  background: transparent;
  color: #f5f0e6;
  text-align: center;
  padding: 1.15rem 0 2rem;
}
.land-section--cta .land-h { color: #fff; }
.land-section--cta .land-p { color: rgba(245, 240, 230, 0.82); margin-left: auto; margin-right: auto; }

.land-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 1.65rem 1.35rem 1.75rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
.land-panel--warm {
  background: var(--panel-bg-warm);
}
.land-panel--cta {
  background: var(--panel-bg-cta);
  border-color: rgba(180, 151, 90, 0.35);
  text-align: center;
  padding: 2rem 1.35rem;
}
.land-panel--cta .land-h { color: #fff; }
.land-panel--cta .land-p { color: rgba(245, 240, 230, 0.82); }

.land-narrow { max-width: 34rem; }

.land-h {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  color: var(--heading);
  letter-spacing: -0.015em;
}

.land-p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.land-note {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  color: var(--heading);
  font-weight: 600;
}

.land-p-tight { margin-top: 1.35rem; margin-bottom: 0; }
.land-p-emphasis {
  margin-top: -0.35rem;
  font-style: italic;
}
.land-p-emphasis em { font-style: italic; }

.land-steps {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.land-steps li {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}
.land-steps strong {
  display: block;
  color: var(--heading);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.land-steps a {
  color: var(--heading);
  font-weight: 600;
  word-break: break-word;
}
.land-steps a:hover { text-decoration: underline; }
.step-n {
  flex: 0 0 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.cost-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
}
.cost-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--border);
}
.cost-grid > div:first-child { border-top: none; padding-top: 0; }
.cost-grid dt {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.cost-grid dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.2;
}
.cost-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.land-cta-email {
  margin: 1.15rem 0 0;
}
.land-cta-email a {
  color: var(--gold-soft);
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.land-cta-email a:hover { color: #fff; text-decoration: underline; }

.land-cta-block .btn,
.land-panel--cta .btn { margin-top: 0.5rem; }

.credit-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.credit-rows li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.45;
}
.credit-n {
  flex: 0 0 auto;
  min-width: 5.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.15;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.35rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn[aria-busy="true"] {
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.btn-spinner {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(0, 26, 46, 0.25);
  border-top-color: var(--navy-deep);
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation: none; border-top-color: var(--navy-deep); opacity: 0.7; }
}
.btn-lg {
  min-height: 52px;
  padding: 0.95rem 1.75rem;
  font-size: 1.08rem;
  min-width: min(100%, 16rem);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.btn-primary:hover:not(:disabled) {
  background: var(--gold-soft);
  transform: translateY(-1px);
}
.land-section--cta .btn-primary {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--heading);
  min-height: 44px;
}
.btn-ghost:hover:not(:disabled) { background: var(--panel-bg-warm); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; min-height: 44px; }
.btn-paypal { background: var(--paypal); color: #fff; }
.btn-paypal:hover:not(:disabled) { background: var(--paypal-hover); }

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

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  padding: 1.5rem 0 2.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: auto;
}
.site-footer a { color: var(--heading); font-weight: 600; }
.fineprint { font-size: 0.8rem; margin-top: 0.5rem; line-height: 1.45; }

/* ---------- Checkout / receipt (cascaded tokens) ---------- */
.page-main {
  flex: 1;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
}
.page-main[hidden] { display: none !important; }

body.mode-checkout {
  background: var(--navy-deep);
}
body.mode-checkout .site-header { display: block; }
body.mode-checkout .page-main {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
}

h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--heading);
}
.lead { color: var(--muted); margin: 0 0 1.25rem; font-size: 1.02rem; }
.muted { color: var(--muted); font-size: 0.92rem; }

.field {
  display: block;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.field span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}
.field input,
input[type="text"],
input[type="email"],
input[type="number"],
select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

.panel,
.card {
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 1.65rem 1.4rem 1.75rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
.card { margin-bottom: 1rem; padding: 1rem 1.1rem; }

.credit-legend {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  background: var(--panel-bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.credit-legend ul { margin: 0.5rem 0; padding-left: 1.2rem; }
.credit-legend li { margin-bottom: 0.25rem; }

.purchase-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1rem 0 0.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-bg-warm);
  font-size: 1.05rem;
}
.purchase-total strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: var(--heading);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.actions.row { gap: 0.75rem; }

.alert {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.alert-info { background: var(--alert-info-bg); border: 1px solid var(--alert-info-border); color: var(--heading); }
.alert-success { background: var(--alert-success-bg); border: 1px solid var(--alert-success-border); color: var(--success); }
.alert-warn { background: var(--alert-warn-bg); border: 1px solid var(--alert-warn-border); color: var(--alert-warn-text); }

.client-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--heading);
}
.regno-label { color: var(--muted); }
.error-msg {
  color: var(--danger);
  margin-top: 0.75rem;
  line-height: 1.45;
  max-width: 36rem;
}

.terms-box,
.terms-scroll {
  max-height: 280px;
  overflow-y: auto;
  font-size: 0.88rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  background: var(--surface);
}
.terms-body p,
.terms-scroll p { margin: 0 0 0.75rem; }
.terms-panel { margin-top: 1.25rem; }
.terms-lead { font-weight: 600; margin-bottom: 0.75rem; color: var(--heading); }
.terms-accept {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.terms-accept-btn { width: 100%; max-width: 320px; }
.terms-accept-btn.accepted,
.btn.terms-accepted {
  background: var(--alert-success-bg);
  border: 1px solid var(--alert-success-border);
  color: var(--success);
  cursor: default;
  opacity: 1;
}
.terms-scroll-hint {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 0.85rem;
}
.paypal-mount {
  margin-top: 1rem;
  min-height: 45px;
  /* Prevent browser dark-mode from painting a white iframe canvas around PP buttons */
  color-scheme: only light;
  background: transparent;
}
.paypal-mount iframe {
  background: transparent !important;
}

.panel.success { border-color: var(--alert-success-border); background: var(--panel-success-bg); }
.panel.error { border-color: var(--panel-error-border); background: var(--panel-error-bg); }

.order-summary {
  background: var(--panel-bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.order-summary h2 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.order-summary .due {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.25rem 0 0.75rem;
  color: var(--heading);
}
.order-summary .due.zero { color: var(--success); }

.quote-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.quote-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.quote-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.quote-table tr:last-child td { border-bottom: none; }
.quote-table tr.total td { font-weight: 700; padding-top: 0.75rem; }
.credit { color: var(--success); }

.hint, .meta { font-size: 0.88rem; color: var(--muted); }

.receipt-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.receipt-panel > *:not(.receipt-watermark) {
  position: relative;
  z-index: 1;
}
.receipt-watermark {
  position: absolute;
  z-index: 2;
  left: -8%;
  top: 42%;
  width: 116%;
  transform: rotate(-11deg);
  color: var(--heading);
  font-size: clamp(1.15rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-align: center;
  opacity: 0.08;
  pointer-events: none;
  white-space: nowrap;
}
.receipt-heading-ref {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.78em;
  overflow-wrap: anywhere;
}
.receipt-lead {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-bg-warm);
}
.receipt-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}
.receipt-details > div {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-bg-warm);
}
.receipt-details dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.receipt-details dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  color: var(--heading);
}
.transaction-id {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88rem;
}
.receipt-notice {
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--gold);
  background: var(--paper-warm);
  font-size: 0.88rem;
}
.receipt-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.receipt-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
@media (min-width: 480px) {
  .receipt-actions .btn {
    width: auto;
    min-width: 14rem;
  }
}

@media (max-width: 560px) {
  .receipt-details { grid-template-columns: 1fr; }
}

@media (min-width: 720px) {
  .hero {
    padding: 3.5rem 2rem 4rem;
  }
  .hero-inner { width: min(34rem, 100%); }
  .hero-logo { width: min(40vw, 20rem); margin-bottom: 2rem; border-radius: 1.6rem; }
  .land-section { padding: 1.5rem 0; }
  .land-section--cta { padding: 1.5rem 0 2.75rem; }
  .land-panel { padding: 2rem 1.75rem 2.1rem; }
  .cost-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem 2rem;
    padding-top: 0.35rem;
  }
  .cost-grid > div {
    border-top: none;
    padding: 0;
  }
  .cost-grid > div:first-child { padding-top: 0; }
}

/* ---------- Guides ---------- */
body.page-guide { min-height: 100vh; display: flex; flex-direction: column; }
body.page-guide .guide-main { flex: 1; position: relative; z-index: 1; padding: 1.5rem 0 3rem; }
.guide-intro .land-h { margin-bottom: 0.5rem; }
.guide-intro .land-p { margin-bottom: 0; }
.guide-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--heading);
  margin: 1.75rem 0 0.65rem;
}
.guide-body p, .guide-body li { color: var(--muted); line-height: 1.6; }
.guide-body ul { padding-left: 1.25rem; margin: 0.5rem 0 1rem; }
.guide-body li { margin-bottom: 0.4rem; }
.guide-cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li { margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.guide-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.guide-list a { font-weight: 600; color: var(--heading); text-decoration: none; }
.guide-list a:hover { text-decoration: underline; }
.guide-list p { margin: 0.35rem 0 0; font-size: 0.95rem; }
.faq { margin-top: 0.75rem; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
  background: var(--panel-bg);
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.faq details p { margin: 0.65rem 0 0; }
.guide-nav-link { font-size: 0.9rem; font-weight: 600; }
