/* ============================================================
   Trade Ledger Pro — pages.css
   Page-specific styles: page heroes, legal/prose, promo graphics,
   feature detail rows, industries grid, contact form, roadmap.
   ============================================================ */

/* ---------- Page hero (sub-page top) ---------- */
.page-hero { position: relative; padding: clamp(72px, 9vw, 120px) 0 clamp(48px, 6vw, 72px); overflow: hidden; text-align: center; }
.page-hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; z-index: 0; }
.page-hero .blob.b1 { width: 420px; height: 420px; background: var(--gold-200); top: -160px; right: -80px; }
.page-hero .blob.b2 { width: 340px; height: 340px; background: var(--blue-tint); bottom: -180px; left: -100px; opacity: .6; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: var(--fw-heavy); line-height: 1.04; max-width: 16ch; margin: 0 auto; }
.page-hero .lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--text-secondary); max-width: 56ch; margin: 20px auto 0; line-height: 1.5; }
.page-hero .hero-actions { justify-content: center; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 13px; color: var(--text-muted); font-weight: var(--fw-semibold); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-600); }
.breadcrumb svg { width: 14px; height: 14px; }



/* ---------- Prose / legal ---------- */
.prose-wrap { max-width: 820px; margin: 0 auto; }
.legal-meta { font-size: 14px; color: var(--text-muted); font-weight: var(--fw-semibold); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-hairline); }
.prose { color: var(--text-secondary); font-size: 16.5px; line-height: 1.7; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--text-primary); font-weight: var(--fw-bold); }
.prose a { color: var(--gold-600); font-weight: var(--fw-semibold); }
.prose a:hover { text-decoration: underline; }
.toc { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px 26px; margin-bottom: 32px; }
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text-secondary); font-size: 14.5px; font-weight: var(--fw-medium); }
.toc a:hover { color: var(--gold-600); }

/* ---------- Legal cards ---------- */
.legal-card { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px 30px; margin-bottom: 18px; scroll-margin-top: 92px; }
.lc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.lc-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.lc-ic svg { width: 22px; height: 22px; }
.legal-card h2 { font-size: 21px; font-weight: var(--fw-heavy); color: var(--text-primary); margin: 0; }
.legal-card .prose { font-size: 15.5px; }
.legal-card .prose > :first-child { margin-top: 0; }
.legal-card .prose > :last-child { margin-bottom: 0; }
.legal-intro { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 30px 32px; margin-bottom: 26px; border-left: 4px solid var(--gold-500); }
.legal-intro h2 { font-size: 20px; font-weight: var(--fw-heavy); margin-bottom: 12px; }
.legal-intro p { color: var(--text-secondary); font-size: 16px; line-height: 1.65; margin-bottom: 12px; }
.legal-intro p:last-child { margin-bottom: 0; }

/* ---------- Promo graphics ---------- */
.promo-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-raised); background: var(--surface-card); }
.promo-figure img { width: 100%; height: auto; display: block; }
.promo-figure.reveal { transition: opacity .7s var(--ease-standard), transform .7s var(--ease-standard); }
.promo-frame { max-width: 1000px; margin: 0 auto; }
.promo-figcaption { text-align: center; font-size: 13.5px; color: var(--text-muted); margin-top: 14px; font-weight: var(--fw-semibold); }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); background: var(--surface-card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 680px; }
table.compare th, table.compare td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--border-hairline); }
table.compare th:first-child, table.compare td:first-child { text-align: left; font-weight: var(--fw-bold); color: var(--text-primary); }
table.compare thead th { font-size: 15px; font-weight: var(--fw-heavy); color: var(--text-secondary); }
table.compare thead th.ours { color: var(--ink-950); background: var(--gold-100); border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }
table.compare td.ours { background: rgba(245,179,1,.07); font-weight: var(--fw-semibold); color: var(--text-primary); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare .yes { color: var(--green-500); }
table.compare .no { color: var(--ink-300); }
table.compare svg { width: 20px; height: 20px; vertical-align: middle; }

/* ---------- Feature detail rows ---------- */
.fdetail { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.fdetail .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.fdetail .ic svg { width: 27px; height: 27px; }
.fdetail h3 { font-size: 20px; font-weight: var(--fw-bold); margin-bottom: 7px; }
.fdetail p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.55; }
.fdetail ul { margin: 12px 0 0 0; list-style: none; display: grid; gap: 7px; }
.fdetail li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--text-secondary); }
.fdetail li svg { width: 17px; height: 17px; color: var(--green-500); flex: none; margin-top: 2px; }

/* ---------- Industries grid ---------- */
.ind-tile { background: var(--surface-card); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 24px; transition: transform .18s var(--ease-standard), box-shadow .18s ease; }
.ind-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
.ind-tile .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 15px; }
.ind-tile .ic svg { width: 23px; height: 23px; }
.ind-tile h3 { font-size: 17px; font-weight: var(--fw-bold); margin-bottom: 6px; }
.ind-tile p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ---------- Contact form ---------- */
.contact-single { max-width: 720px; margin: 0 auto; }
.contact-trust { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.ct-item { display: flex; gap: 12px; align-items: center; background: var(--surface-card); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 15px 16px; }
.ct-item .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ct-item .ic svg { width: 19px; height: 19px; }
.ct-item b { display: block; font-size: 14px; font-weight: var(--fw-bold); }
.ct-item span { font-size: 12.5px; color: var(--text-muted); }
.form-card { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: var(--fw-bold); margin-bottom: 7px; }
.field .opt { color: var(--text-muted); font-weight: var(--fw-regular); font-size: 12.5px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text-primary);
  background: var(--surface-app); border: 1px solid var(--border-hairline); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(245,179,1,.18); }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.form-success { display: none; background: var(--green-tint); color: var(--green-500); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: var(--fw-semibold); font-size: 14.5px; margin-bottom: 18px; align-items: center; gap: 9px; }
.form-success.show { display: flex; }
.form-success svg { width: 18px; height: 18px; flex: none; }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-band .s b { font-size: clamp(32px, 4vw, 46px); font-weight: var(--fw-heavy); display: block; letter-spacing: -.02em; }
.stat-band .s span { font-size: 14.5px; color: var(--text-secondary); }

/* ---------- Value cards (about) ---------- */
.value .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.value .ic svg { width: 24px; height: 24px; }
.value h3 { font-size: 18px; font-weight: var(--fw-bold); margin-bottom: 7px; }
.value p { font-size: 15px; color: var(--text-secondary); line-height: 1.55; }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; gap: 16px; }
.road-row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--border-hairline); }
.road-row:last-child { border-bottom: 0; }
.road-row .when { font-weight: var(--fw-heavy); color: var(--gold-600); font-size: 15px; }
.road-row h3 { font-size: 17px; font-weight: var(--fw-bold); margin-bottom: 5px; }
.road-row p { color: var(--text-secondary); font-size: 15px; line-height: 1.5; }

/* generic centered CTA */
.mini-cta { text-align: center; }

/* ---------- Workflow vertical stepper ---------- */
.wsteps { max-width: 760px; margin: 0 auto; position: relative; }
.wsteps::before { content: ""; position: absolute; left: 31px; top: 20px; bottom: 20px; width: 2px; background: var(--border-hairline); }
.wstep { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; padding: 14px 0; }
.wstep .node { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-card); box-shadow: var(--shadow-card); z-index: 1; }
.wstep .node svg { width: 26px; height: 26px; }
.wstep .body { background: var(--surface-card); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 20px 22px; }
.wstep .body .n { font-size: 12px; font-weight: 800; color: var(--gold-600); }
.wstep .body h3 { font-size: 19px; font-weight: 800; margin: 2px 0 6px; }
.wstep .body p { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
@media (max-width: 560px) { .wsteps::before { left: 24px; } .wstep { grid-template-columns: 50px 1fr; gap: 14px; } .wstep .node { width: 50px; height: 50px; } }
