/* ==========================================================================
   Gold Logic — marketing landing page
   Token system translated 1:1 from JSM.BlazorUI / JSM.MobileApp brand:
   deep sapphire-navy brand, antique-gold jewellery accent, emerald = paid.
   Display face: Fraunces (ledger/heritage serif). Body: Inter.
   Data face: IBM Plex Mono (weights, amounts, invoice ids).
   ========================================================================== */

:root {
  /* -- brand -- */
  --navy: #0D2040;
  --navy-deep: #081831;
  --navy-fill: #17406E;
  --sapphire: #1B5FA0;
  --sapphire-light: #4A88C0;
  --gold: #C9920E;
  --gold-dark: #A37008;
  --gold-tint: #F6ECD2;
  --on-gold: #1A1204;
  --emerald: #0C8A62;
  --emerald-surface: #E7F5EF;
  --danger: #C42424;

  /* -- neutrals / canvas -- */
  --bg: #EDF1F6;
  --surface: #FFFFFF;
  --ink: #0F1E30;
  --ink-soft: #4A6480;
  --line: #D0DCE8;
  --gray-100: #E8EDF3;
  --gray-300: #A9BACB;

  /* -- type -- */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* -- geometry (matches app radius scale) -- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;

  --shadow-card: 0 1px 2px rgba(13,32,64,0.04), 0 12px 32px -16px rgba(13,32,64,0.18);
  --shadow-lift: 0 24px 60px -24px rgba(13,32,64,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--sapphire);
  outline-offset: 2px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
}
.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-dark);
}

.section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 16px; line-height: 1.15; }
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 560px; margin: 0 0 8px; }
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }

.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------------------------------- buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: 0 8px 20px -8px rgba(201,146,14,0.55); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); background: var(--gray-100); }
.btn-ghost { color: var(--navy); }
.btn-ghost:hover { color: var(--sapphire); }

/* ---------------------------------- header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(237,241,246,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); }
.brand-mark { border-radius: 8px; flex-shrink: 0; }

.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--navy); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span { width: 16px; height: 2px; background: var(--navy); margin: 0 auto; border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--line);
}
.mobile-nav a { padding: 10px 4px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--gray-100); }
.mobile-nav .btn { margin-top: 12px; }

@media (max-width: 880px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
}

/* ---------------------------------- hero ---------------------------------- */
.hero {
  padding: 76px 0 60px;
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(201,146,14,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1.08; }
.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 22px 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.trust-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.trust-bullets li { position: relative; padding-left: 18px; }
.trust-bullets li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
}

/* ---- ledger card signature element ---- */
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art-glow {
  position: absolute;
  inset: -10% -6%;
  background: radial-gradient(closest-side, rgba(23,64,110,0.16), transparent 70%);
  z-index: -1;
  filter: blur(6px);
}

.ledger-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--navy);
  color: #EAF1FA;
  border-radius: var(--r-lg);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-lift);
  transform: rotate(1.4deg);
  animation: ledgerIn 0.7s cubic-bezier(.2,.8,.2,1) both;
  overflow: hidden;
}
.ledger-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), transparent 40%);
  pointer-events: none;
}

@keyframes ledgerIn {
  from { opacity: 0; transform: rotate(1.4deg) translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: rotate(1.4deg) translateY(0) scale(1); }
}

.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed rgba(234,241,250,0.22);
}
.ledger-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: #9FB8D4; }
.ledger-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--emerald);
  background: rgba(46,212,160,0.14);
  padding: 4px 10px;
  border-radius: 999px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.ledger-swatch {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(145deg, #F0C860, var(--gold));
}
.ledger-swatch.alt { background: linear-gradient(145deg, #cfe0f0, var(--sapphire-light)); }
.ledger-line { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ledger-item { font-weight: 600; font-size: 0.92rem; color: #fff; }
.ledger-meta { font-size: 0.76rem; color: #93AECB; }
.ledger-figure { font-family: var(--font-mono); font-size: 0.94rem; font-weight: 600; color: #EAF1FA; }
.ledger-figure small { font-size: 0.68rem; color: #93AECB; margin-left: 1px; }

.ledger-barcode {
  height: 26px;
  margin: 14px 0 16px;
  background-image: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px, #fff 5px 6px, transparent 6px 11px, #fff 11px 14px, transparent 14px 17px);
  opacity: 0.85;
  border-radius: 2px;
}

.ledger-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(234,241,250,0.16);
  font-family: var(--font-mono);
}
.ledger-total span { font-size: 0.78rem; color: #93AECB; text-transform: uppercase; letter-spacing: 0.06em; }
.ledger-total strong { font-size: 1.4rem; color: var(--emerald); font-weight: 600; }

.hallmark-stamp {
  position: absolute;
  right: -14px;
  bottom: -14px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
  transform: scale(1.5) rotate(-14deg);
  opacity: 0;
  animation: stampIn 0.5s 0.85s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes stampIn {
  0%   { opacity: 0; transform: scale(2.2) rotate(-14deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ledger-card, .hallmark-stamp { animation: none; opacity: 1; transform: rotate(1.4deg); }
  .hallmark-stamp { transform: rotate(-8deg); }
}

/* ---------------------------------- logic bar ---------------------------------- */
.logic-bar { background: var(--navy); padding: 22px 0; }
.logic-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.logic-bar-inner p { margin: 0; color: #9FB8D4; font-size: 0.9rem; font-weight: 500; }
.logic-terms { display: flex; gap: 22px; flex-wrap: wrap; }
.logic-terms span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #E0C878;
  letter-spacing: 0.02em;
}

/* ---------------------------------- modules ---------------------------------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.module-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.module-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(13,32,64,0.25); }
.module-card h3 { font-family: var(--font-display); font-size: 1.12rem; margin: 4px 0 8px; color: var(--navy); font-weight: 600; }
.module-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.module-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.icon-sapphire { background: rgba(27,95,160,0.1); color: var(--sapphire); }
.icon-gold { background: var(--gold-tint); color: var(--gold-dark); }
.icon-emerald { background: var(--emerald-surface); color: var(--emerald); }

/* ---------------------------------- workflow ---------------------------------- */
.workflow-wrap {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.workflow-steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.workflow-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.step-index {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold-dark);
  background: var(--gold-tint);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.workflow-steps h3 { margin: 2px 0 4px; font-size: 1.02rem; color: var(--navy); }
.workflow-steps p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.workflow-art { position: relative; height: 360px; }
.mini-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 220px;
}
.mini-label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.mini-card strong { font-family: var(--font-mono); font-size: 1.15rem; color: var(--navy); }
.mini-sub { font-size: 0.76rem; color: var(--ink-soft); }
.mini-sub.up { color: var(--emerald); font-weight: 600; }

.mini-card-1 { top: 0; left: 8%; }
.mini-card-2 { top: 128px; left: 32%; }
.mini-card-3 { top: 250px; left: 4%; border-color: var(--gold); }

/* ---------------------------------- trust ---------------------------------- */
.trust-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sapphire);
  border-radius: var(--r-sm);
  padding: 20px 22px;
}
.trust-item h4 { margin: 0 0 6px; font-size: 0.98rem; color: var(--navy); }
.trust-item p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------------------------------- faq ---------------------------------- */
.faq-wrap { max-width: 760px; }
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------------------------------- cta band ---------------------------------- */
.cta-band {
  background: var(--navy);
  padding: 88px 0;
  text-align: center;
}
.cta-band .display { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.cta-band > .wrap > p { color: #9FB8D4; max-width: 480px; margin: 16px auto 30px; }

.cta-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}
.cta-form input {
  flex: 1 1 240px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(159,184,212,0.3);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.94rem;
}
.cta-form input::placeholder { color: #7C9AB8; }
.cta-form input:focus { outline: 2px solid var(--gold); outline-offset: 2px; background: rgba(255,255,255,0.1); }
.cta-note { font-size: 0.8rem; color: #7C9AB8; margin: 16px 0 0; }

/* ---------------------------------- footer ---------------------------------- */
.site-footer { background: var(--navy-deep); color: #92AAC6; padding: 44px 0 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.05rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.86rem; color: #92AAC6; }
.footer-nav a:hover { color: #fff; }
.footer-contact { font-family: var(--font-mono); font-size: 0.84rem; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(146,170,198,0.16);
  padding: 18px 0;
  font-size: 0.78rem;
}

/* ---------------------------------- responsive ---------------------------------- */
@media (max-width: 980px) {
  .hero-inner, .workflow-wrap, .trust-wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 12px; }
  .workflow-art { height: 300px; margin-top: 8px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .module-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .logic-bar-inner { flex-direction: column; align-items: flex-start; }
  .ledger-card { transform: none; }
  .hallmark-stamp { right: 8px; bottom: 8px; }
  @keyframes ledgerIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
  .workflow-art { height: auto; position: static; display: flex; flex-direction: column; gap: 14px; }
  .mini-card { position: static; width: auto; }
}
