/* On Paper — product demo for itsonpaper.lmntltools.com.
   Design system lifted faithfully from the real app (paper + ink + emerald,
   Bricolage Grotesque + Stack Sans Notch). Everything here is a STATIC demo:
   fabricated data, no API, no auth, no backend. The constant LMNTL footer
   signs it back to the studio. */

/* self-hosted fonts (no CDN) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('/itsonpaper/fonts/bricolage-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Stack Sans Notch';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/itsonpaper/fonts/stacksansnotch-latin.woff2') format('woff2');
}

:root {
  --paper: #f6f4ee; --paper-deep: #ede8dc; --surface: #ffffff; --surface-2: #faf8f3; --surface-3: #f1ecdf;
  --ink: #17140f; --ink-2: #3d382f; --ink-soft: #625b4d; --muted: #76705f;
  --line: #e9e3d6; --line-2: #f0ece2;
  --accent: #0d7a44; --accent-ink: #0a5d34; --accent-soft: #e7f3ec; --accent-line: #b9dec8;
  --blue-soft: #eaf0fb; --gold-soft: #fbf3dd;
  --danger: #b3261e; --danger-soft: #fceceb; --amber: #b7791f;
  --radius: 12px; --radius-sm: 8px;
  --section-gap: clamp(22px, 3vw, 42px);
  --shadow: 0 1px 2px rgba(23,20,15,.04), 0 10px 28px rgba(23,20,15,.06);
  --shadow-lg: 0 18px 56px rgba(23,20,15,.14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
:is(h1, h2, h3, h4), .page-title, .lp-h1, .op-brand-name {
  font-family: 'Stack Sans Notch', 'Bricolage Grotesque', sans-serif; font-weight: 400; letter-spacing: 0;
}
html, body { margin: 0; max-width: 100%; overflow-x: clip; background: var(--paper); }
a { color: var(--accent-ink); text-decoration: none; }
p { line-height: 1.6; }
.muted { color: var(--muted); font-size: 13px; }
.spacer { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

button, .btn {
  font: inherit; font-weight: 650; padding: 11px 20px; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; border: 1px solid var(--ink); cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
button:hover, .btn:hover { background: #000; }
button:active, .btn:active { transform: translateY(1px); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-ink); box-shadow: 0 8px 20px rgba(13,122,68,.2); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface-2); border-color: #ded6c8; }
.btn.lg { padding: 14px 26px; font-size: 15.5px; }

.badge {
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--line-2); color: var(--ink-2); text-transform: capitalize;
}
.badge.funded { background: var(--accent-soft); color: var(--accent-ink); }
.badge.delivered { background: var(--blue-soft); color: #2552a0; }
.badge.released { background: var(--accent); color: #fff; }
.badge.disputed { background: var(--danger-soft); color: var(--danger); }

/* ---------------- view switching ---------------- */
.view { display: none; }
.view.on { display: block; }

/* ---------------- landing ---------------- */
.op-nav { display: flex; align-items: center; gap: 12px; max-width: 1240px; margin: 0 auto; padding: 20px clamp(20px, 5vw, 56px); }
.op-brand { display: flex; align-items: center; gap: 10px; }
.op-brand img { width: 30px; height: 34px; object-fit: contain; }
.op-brand-name { font-size: 20px; font-weight: 700; }
.op-nav .op-nav-links { display: flex; align-items: center; gap: 8px; }
.op-pill {
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(23,20,15,.08);
  font-weight: 650; font-size: 13.5px; transition: background .15s, border-color .15s, transform .15s; cursor: pointer;
}
.op-pill:hover { background: #fff; border-color: rgba(23,20,15,.16); transform: translateY(-1px); }

.op-hero {
  max-width: 1120px; margin: 0 auto; padding: clamp(32px, 5vh, 60px) clamp(20px, 5vw, 40px) clamp(24px, 4vh, 48px);
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center;
}
.op-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--accent-ink);
  background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.op-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lp-h1 { font-size: clamp(42px, 5vw, 62px); line-height: 1; font-weight: 780; margin: 0 0 18px; max-width: 8.5em; }
.op-sub { font-size: clamp(16px, 1.1vw, 19px); color: var(--ink-2); max-width: 33em; margin: 0 0 26px; }
.op-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.op-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.op-trust span { display: inline-flex; align-items: center; gap: 6px; }
.op-trust svg { color: var(--accent); }

/* hero art: a stylized "both sides" preview card */
.op-hero-art {
  background: linear-gradient(160deg, var(--surface), var(--surface-2)); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; position: relative; overflow: hidden;
}
.op-hero-art .mini-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.op-mini {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow);
}
.op-mini h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; font-weight: 700; }
.op-mini .amt { font-family: 'Stack Sans Notch', sans-serif; font-size: 26px; line-height: 1; }
.op-mini .lbl { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.op-mini.hero-mini { background: var(--ink); color: #fff; border-color: var(--ink); }
.op-mini.hero-mini h4 { color: #cdc8bc; }
.op-mini.hero-mini .lbl { color: #c9c4b8; }
.op-mini.accent-mini { background: var(--accent); color: #fff; border-color: var(--accent); }
/* the uppercase label needs a light tone on the green card — the default
   --muted (a brown-grey) is illegible on emerald */
.op-mini.accent-mini h4 { color: #dcf3e6; }
.op-mini.accent-mini .lbl { color: #dcf3e6; }
.op-flow-arrow { display: grid; place-items: center; color: var(--accent); }
.op-hero-art .guar { margin-top: 12px; display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 12px; font-weight: 650; color: var(--accent-ink); background: var(--accent-soft); padding: 8px; border-radius: 10px; }

/* real-site showcase — itsonpaper.com desktop in a browser frame with the
   mobile view in a phone frame overlapping the corner */
.op-hero-art--showcase { background: none; border: none; box-shadow: none; padding: 0; overflow: visible; }
.op-showcase { position: relative; padding: 6px 0 10px 34px; }
.op-frame-desktop { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }
.op-frame-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.op-frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d8d2c4; }
.op-frame-bar span { margin-left: 10px; font-size: 11px; font-weight: 600; color: var(--muted); }
.op-frame-desktop img { display: block; width: 100%; height: auto; }
.op-frame-phone { position: absolute; left: 0; bottom: 0; width: 29%; max-width: 138px; border: 5px solid #17140f;
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: #17140f; }
.op-frame-phone img { display: block; width: 100%; height: auto; }
@media (max-width: 1080px) {
  .op-showcase { padding-left: 44px; max-width: 640px; margin: 0 auto; }
  .op-frame-phone { max-width: 150px; }
}
@media (max-width: 460px) {
  .op-frame-phone { width: 33%; max-width: 116px; border-width: 4px; }
  .op-showcase { padding-left: 26px; }
}

/* features */
.op-features { max-width: 1120px; margin: 0 auto; padding: clamp(24px, 4vh, 40px) clamp(20px, 5vw, 40px); }
.op-features-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.op-features-head h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.05; margin: 0 0 10px; }
.op-features-head p { color: var(--ink-2); margin: 0; }
.op-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.op-feature {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); text-align: left; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.op-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.op-feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 14px; }
.op-feature h3 { font-size: 18px; margin: 0 0 7px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.op-feature p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.op-demo-band { max-width: 1120px; margin: clamp(24px, 4vh, 44px) auto 0; padding: 0 clamp(20px, 5vw, 40px); }
.op-demo-cta {
  background: linear-gradient(135deg, var(--ink), #2a251c); color: #fff; border-radius: 20px;
  padding: clamp(30px, 4vw, 48px); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.op-demo-cta h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 6px; color: #fff; }
.op-demo-cta p { margin: 0; color: #d7d1c4; max-width: 40em; }

/* ---------------- reveals ---------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------------- demo view: the dashboards ---------------- */
.demo-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 14px clamp(18px, 4vw, 44px); background: rgba(246,244,238,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.demo-top .op-brand-name { font-size: 17px; }
.demo-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink);
  background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 4px 10px; border-radius: 999px; }
.demo-lead { max-width: 1560px; margin: clamp(20px, 3vw, 34px) auto 0; padding: 0 clamp(18px, 4vw, 44px); text-align: center; }
.demo-lead h1 { font-size: clamp(28px, 3.4vw, 44px); margin: 0 0 8px; }
.demo-lead p { color: var(--ink-2); max-width: 60ch; margin: 0 auto; font-size: clamp(15px, 1.1vw, 17px); }

.duo { max-width: 1560px; margin: clamp(20px, 3vw, 34px) auto 0; padding: 0 clamp(18px, 4vw, 44px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.side {
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.25)); border: 1px solid var(--line);
  border-radius: 20px; padding: clamp(16px, 1.6vw, 24px); box-shadow: var(--shadow); min-width: 0;
}
.side-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.side-avatar { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; font-weight: 700; font-size: 16px; }
.side-avatar.creator { background: var(--ink); }
.side-avatar.worker { background: var(--accent); }
.side-role { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); }
.side-name { font-size: 17px; font-weight: 700; line-height: 1.15; }
.side-seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.side-seg span { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 5px 9px; border-radius: 7px; }
.side-seg span.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); overflow: hidden; }
.kpi .k-label { font-size: 12px; color: var(--muted); font-weight: 650; }
.kpi .k-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.kpi .k-val { font-size: clamp(21px, 1.7vw, 27px); font-weight: 760; margin-top: 8px; line-height: 1; }
.kpi .k-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.kpi.hero-kpi { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi.hero-kpi .k-label, .kpi.hero-kpi .k-sub { color: #c9c4b8; }
.kpi.accent-kpi { background: var(--accent); color: #fff; border-color: var(--accent); }
.kpi.accent-kpi .k-label, .kpi.accent-kpi .k-sub { color: #cfeada; }
.delta-up { color: #3fcb72; font-weight: 600; } .hero-kpi .delta-up { color: #7ff0aa; }

.panel { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-head h2 { font-size: 15px; margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 670; }
.panel-head .muted { font-size: 12px; }

.chart-svg { width: 100%; height: auto; display: block; }
.donut-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.donut-legend { display: flex; flex-direction: column; gap: 7px; }
.donut-legend .lg-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.donut-legend .sw { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.donut-legend .cap { text-transform: capitalize; }

.vault { background: linear-gradient(135deg, var(--accent), var(--accent-ink)); color: #fff; padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.vault .v-label { color: #cfe9d6; font-size: 12.5px; }
.vault .v-val { font-family: 'Stack Sans Notch', sans-serif; font-size: 30px; line-height: 1.1; }
.vault .v-sub { color: #cfe9d6; font-size: 11.5px; margin-top: 4px; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 700; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); }
.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .hl td { background: var(--gold-soft); }
.table .hl td:first-child { box-shadow: inset 3px 0 0 var(--amber); }

/* the "same job, both sides" connector */
.link-note { max-width: 1560px; margin: 14px auto 0; padding: 0 clamp(18px, 4vw, 44px); }
.link-note-inner { display: flex; align-items: center; gap: 12px; justify-content: center; text-align: center;
  background: var(--gold-soft); border: 1px solid #eadfba; border-radius: 14px; padding: 13px 18px; font-size: 13.5px; color: #6b551b; font-weight: 600; }
.link-note-inner svg { color: var(--amber); flex: none; }

/* try-the-real-thing band inside the demo */
.try-band { max-width: 1560px; margin: clamp(24px, 3vw, 40px) auto clamp(20px, 3vw, 36px); padding: 0 clamp(18px, 4vw, 44px); }
.try-inner { background: linear-gradient(135deg, var(--accent), var(--accent-ink)); color: #fff; border-radius: 22px;
  padding: clamp(28px, 4vw, 46px); text-align: center; box-shadow: var(--shadow-lg); }
.try-inner h2 { color: #fff; font-size: clamp(26px, 3vw, 40px); margin: 0 0 10px; }
.try-inner p { color: #d8f0e2; max-width: 46ch; margin: 0 auto 22px; }
.try-inner .btn { background: #fff; color: var(--accent-ink); border-color: #fff; }
.try-inner .btn:hover { background: var(--paper); }
.try-inner .fineprint { margin-top: 14px; font-size: 12px; color: #bfe6cf; }

/* ---------------- constant LMNTL footer ---------------- */
.lmntl-foot { border-top: 1px solid rgba(255,255,255,.1); background: #0f1d26; }
.lmntl-foot-inner { max-width: 1560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px clamp(18px, 4vw, 44px); }
.lmntl-foot img { height: 12px; width: auto; opacity: .9; }
.lmntl-foot .fmono { font-family: ui-monospace, Menlo, monospace; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; color: #8ba0a0; }
.lmntl-foot .fmono a { color: #48a5a8; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .op-hero { grid-template-columns: 1fr; gap: 26px; }
  .op-hero-art { order: -1; }
  .op-grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .op-hide-sm { display: none; }
}
@media (max-width: 560px) {
  .demo-tag { display: none; }
  .demo-top { gap: 10px; }
}
@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .donut-wrap { grid-template-columns: 1fr; }
  .op-demo-cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
