/* Real Pro proposal engine, v1 (2026-11-03).
   One stylesheet for every Real Pro proposal. Each proposal page holds only a JSON block;
   engine/v1/proposal.js renders it. Never edit v1 in a way that changes a sent proposal:
   copy to v2 instead. Brand tokens from clients/real-pro-studios/brand/ and the kit. */

@font-face { font-family: 'Inter Tight'; src: url('fonts/inter-tight-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('fonts/inter-tight-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --navy: #07111F; --panel: #0E1B2E; --panel-2: #12223A; --red: #D32F2F; --cream: #F5F2EC;
  --dim: #8FA0B5; --muted: #C3CCD8; --rule: #1F2D42; --rule-2: #2C3D57;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --label: 'Oswald', 'Inter Tight', sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(18px, 4.4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--cream); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.rp-err { padding: 40px var(--pad); font-family: var(--sans); color: var(--cream); background: #3a0d0d; }

/* top bar + progress */
.rp-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px var(--pad); background: rgba(7, 17, 31, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.rp-bar img { height: 18px; width: auto; }
.rp-bar .for { font: 500 11px/1.2 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rp-prog { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 31; transform-origin: 0 50%; transform: scaleX(0); background: var(--red); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 4px; font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn-red { background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn-red:hover { background: #b72626; }
.btn-line { background: transparent; color: var(--cream); border: 1px solid var(--rule-2); }
.btn-line:hover { border-color: var(--cream); }
.rp-bar .btn { min-height: 36px; padding: 0 14px; font-size: 11px; flex: none; }

/* scene scaffolding */
.scene { position: relative; padding: clamp(80px, 13vh, 150px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 58px; }
.lbl { display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--label); letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.lbl i { display: block; width: 34px; height: 2px; background: var(--red); transform-origin: 0 50%; }
.lbl span:last-child { color: var(--dim); }
h1, h2, h3 { margin: 0; }
.h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 5.4vw, 72px); line-height: .95; letter-spacing: -0.015em; margin-top: 18px; max-width: 16ch; text-wrap: balance; }
.intro { margin: 22px 0 0; max-width: 60ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }

/* reveal motion (only when JS sets .fx and motion is allowed) */
.fx .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.fx .rv.in { opacity: 1; transform: none; }
.fx .lbl i { transform: scaleX(0); transition: transform .8s var(--ease) .2s; }
.fx .lbl.in i { transform: scaleX(1); }

/* 00 cover */
.cover { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 0 clamp(48px, 9vh, 96px); overflow: hidden; border-top: 0; }
.cover .bg { position: absolute; inset: 0; }
.cover .bg img { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.fx .cover .bg img { animation: drift 40s ease-in-out infinite alternate; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,17,31,.55) 0%, rgba(7,17,31,.35) 35%, rgba(7,17,31,.92) 78%, var(--navy) 100%); }
.cover .wrap { position: relative; z-index: 2; }
.cover h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 7.4vw, 108px); line-height: .92; letter-spacing: -0.02em; margin-top: 20px; max-width: 15ch; text-wrap: balance; }
.cover .sub { margin: 24px 0 0; max-width: 54ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.cover .meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font: 500 12px/1.4 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.cover .meta b { color: var(--cream); font-weight: 500; }
.cover .lbl span:last-child { color: rgba(245, 242, 236, .85); }
.cover .credit { position: absolute; right: var(--pad); bottom: 14px; z-index: 2; font-size: 11px; color: var(--dim); }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1.5%, -1%); } }
.fx .cover .ld { opacity: 0; transform: translateY(24px); animation: up 1s var(--ease) forwards; animation-delay: calc(.15s + var(--i, 0) * .14s); }
@keyframes up { to { opacity: 1; transform: none; } }

/* 01 heard */
.quote { margin: clamp(30px, 5vh, 52px) 0 0; padding: 0 0 0 clamp(18px, 2.4vw, 30px); border-left: 3px solid var(--red); }
.quote p { max-width: 22ch; }
.quote p { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.01em; }
.quote cite { display: block; margin-top: 14px; font: 500 12px/1.4 var(--label); letter-spacing: .18em; text-transform: uppercase; font-style: normal; color: var(--dim); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 5vh, 56px); }
.card { background: var(--panel); border: 1px solid var(--rule); border-top: 2px solid var(--red); border-radius: 8px; padding: clamp(20px, 2.4vw, 30px); }
.card .n { font: 500 11px/1 var(--label); letter-spacing: .22em; color: var(--dim); }
.card h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 2vw, 26px); line-height: 1; margin-top: 14px; }
.card p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }

/* the seconds bar (a sketch, labeled as one) */
.secs { margin-top: clamp(36px, 6vh, 64px); background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(22px, 3vw, 38px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(22px, 4vw, 56px); align-items: center; }
.secs h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 2.8vw, 36px); line-height: .98; }
.secs p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
.track { position: relative; height: 64px; margin-top: 28px; }
.track .full { position: absolute; left: 0; right: 0; top: 26px; height: 12px; border-radius: 6px; background: var(--rule); }
.track .hold { position: absolute; left: 0; top: 26px; height: 12px; border-radius: 6px 0 0 6px; background: var(--red); width: var(--w); transform-origin: 0 50%; }
.fx .track .hold { transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.fx .secs.in .track .hold { transform: scaleX(1); }
.track .mk { position: absolute; top: 0; left: var(--w); transform: translateX(-50%); font: 500 12px/1 var(--label); letter-spacing: .12em; color: var(--cream); white-space: nowrap; }
.track .mk::after { content: ''; position: absolute; left: 50%; top: 18px; width: 2px; height: 30px; margin-left: -1px; background: var(--cream); }
.track .end, .track .start { position: absolute; top: 48px; font: 500 11px/1 var(--label); letter-spacing: .12em; color: var(--dim); }
.track .start { left: 0; } .track .end { right: 0; }
.secs small { display: block; margin-top: 18px; font-size: 12px; color: var(--dim); }

/* 02 plan: a timeline whose rail fills as you scroll */
.steps { position: relative; list-style: none; margin: clamp(36px, 6vh, 64px) 0 0; padding: 0 0 0 clamp(30px, 4vw, 54px); }
.steps::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.steps .fill { position: absolute; left: 7px; top: 8px; width: 2px; height: var(--fill, 0%); background: var(--red); transition: height .2s linear; }
.step { position: relative; padding: 0 0 clamp(28px, 4.4vh, 46px); display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 6px clamp(20px, 3vw, 44px); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: calc(-1 * clamp(30px, 4vw, 54px) + 1px); top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); border: 2px solid var(--rule-2); transition: border-color .4s var(--ease), background .4s var(--ease); }
.step.on::before { border-color: var(--red); background: var(--red); }
.step .when { font: 500 13px/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--red); padding-top: 3px; }
.step h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 2.1vw, 28px); line-height: 1; }
.step p { margin: 10px 0 0; color: var(--muted); max-width: 58ch; }
.plan-note { margin-top: clamp(30px, 5vh, 46px); padding: 18px 22px; border: 1px dashed var(--rule-2); border-radius: 8px; color: var(--muted); max-width: 70ch; }

/* 03 included */
.gets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 5vh, 56px); }
.get { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: clamp(20px, 2.4vw, 30px); transition: border-color .4s var(--ease), transform .4s var(--ease); }
.get:hover { border-color: var(--rule-2); transform: translateY(-2px); }
.get .tag { align-self: flex-start; font: 500 11px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); border: 1px solid var(--rule-2); border-radius: 100px; padding: 7px 11px; }
.get h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 30px); line-height: 1; margin-top: 4px; }
.get p { margin: 0; color: var(--muted); font-size: 16px; }
.get.wide { grid-column: 1 / -1; }
.idea { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(18px, 3vw, 40px); align-items: center; background: var(--cream); color: var(--navy); border-radius: 8px; padding: clamp(24px, 3vw, 40px); }
.idea .k { font: 500 11px/1 var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.idea h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 5vw, 64px); line-height: .9; margin-top: 12px; }
.idea ul { list-style: none; margin: 16px 0 0; padding: 0; font: 700 14px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.idea li { padding: 8px 0; border-top: 1px solid rgba(7,17,31,.15); }
.idea li b { color: var(--red); font-weight: 900; }
.idea p { margin: 0; font-size: 16.5px; }
.idea p + p { margin-top: 12px; }

/* 04 investment */
.inv { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(22px, 4vw, 56px); margin-top: clamp(32px, 5vh, 56px); align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-2); }
.lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.lines li span { color: var(--muted); }
.lines li b { font: 500 12px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.total { background: var(--panel); border: 1px solid var(--rule-2); border-top: 3px solid var(--red); border-radius: 8px; padding: clamp(24px, 3vw, 36px); position: sticky; top: 90px; }
.total .k { font: 500 12px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.total { container-type: inline-size; }
.total .amt { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 24cqi, 104px); line-height: .9; letter-spacing: -0.03em; margin-top: 14px; white-space: nowrap; }
.total .per { font: 500 13px/1 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--cream); margin-top: 10px; }
.total p { margin: 20px 0 0; color: var(--muted); font-size: 16px; }
.total .btn { margin-top: 22px; width: 100%; }

/* 05 why */
.why { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(26px, 5vw, 70px); align-items: start; margin-top: clamp(32px, 5vh, 56px); }
.why .body p { margin: 0 0 16px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 56ch; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 18px 0; border-top: 1px solid var(--rule-2); }
.facts li:last-child { border-bottom: 1px solid var(--rule-2); }
.facts b { display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 2vw, 26px); line-height: 1.05; }
.facts span { display: block; margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.who { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rule-2); }
.who b { display: block; font-family: var(--display); font-weight: 700; font-size: 18px; }
.who span { font: 500 11px/1.3 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.mark { margin-top: 30px; opacity: .9; width: 120px; }

/* 06 value */
.vt { margin-top: clamp(32px, 5vh, 56px); border-top: 1px solid var(--rule-2); }
.vr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.vr span { color: var(--muted); }
.vr span sup { color: var(--dim); font-size: 11px; margin-left: 3px; }
.vr b { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.8vw, 24px); white-space: nowrap; }
.vr.ours { border-bottom: 0; border-top: 2px solid var(--red); margin-top: -1px; padding-top: 22px; }
.vr.ours span { color: var(--cream); font-weight: 600; }
.vr.ours b { font-weight: 900; font-size: clamp(30px, 3.6vw, 48px); }
.vnote { margin-top: 16px; color: var(--dim); font-size: 14.5px; max-width: 70ch; }
.srcs { margin-top: 18px; max-width: 80ch; }
.srcs summary { cursor: pointer; font: 500 12px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); min-height: 44px; display: flex; align-items: center; }
.srcs ol { margin: 6px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.srcs li { margin-bottom: 8px; overflow-wrap: anywhere; }

/* 07 next */
.next { background: var(--cream); color: var(--navy); border-top: 0; }
.next .lbl span:last-child { color: #5a6577; }
.next .intro { color: #3a4556; }
.nsteps { list-style: none; margin: clamp(28px, 5vh, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: n; }
.nsteps li { counter-increment: n; border-top: 2px solid var(--navy); padding-top: 14px; font-size: 16px; }
.nsteps li::before { content: '0' counter(n); display: block; font: 500 12px/1 var(--label); letter-spacing: .2em; color: var(--red); margin-bottom: 10px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(30px, 5vh, 46px); }
.next .btn-line { color: var(--navy); border-color: rgba(7,17,31,.3); }
.next .btn-line:hover { border-color: var(--navy); }
.sign { margin-top: clamp(40px, 7vh, 70px); display: flex; align-items: center; gap: 14px; }
.sign img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.sign b { display: block; font-family: var(--display); font-weight: 700; font-size: 18px; }
.sign span, .sign a { font-size: 14px; color: #3a4556; }
.foot { background: var(--navy); color: var(--dim); padding: 22px 0; font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: center; }
.foot img { height: 14px; width: auto; }
.print-only { display: none; }

@media (max-width: 900px) {
  .cards, .gets, .inv, .why, .secs, .idea { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); }
  .total { position: static; }
  .nsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .rp-bar .for { display: none; }
  .nsteps { grid-template-columns: minmax(0, 1fr); }
  .vr { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .vr b { white-space: normal; }
  .lines li { flex-direction: column; gap: 6px; }
  .cover .credit { position: static; margin-top: 18px; padding: 0 var(--pad); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover .bg img { animation: none !important; }
}

/* print: a clean light document */
@media print {
  @page { size: letter; margin: 14mm 14mm 16mm; }
  body { background: #fff; color: var(--navy); font-size: 11pt; }
  .rp-bar, .rp-prog, .srcs summary, .btn, .ctas, .cover .credit { display: none !important; }
  .cover .lbl span:last-child { color: #5a6577; }
  .lbl, .h2 { break-after: avoid; page-break-after: avoid; }
  .h2, .intro { break-inside: avoid; page-break-inside: avoid; }
  .intro { break-after: avoid; page-break-after: avoid; }
  .intro { break-before: avoid; }
  .vr.ours span, .vr.ours b { color: var(--navy); }
  .quote, .cards .card, .secs, .get, .idea, .total, .facts li, .vr, .nsteps, .sign { break-inside: avoid; page-break-inside: avoid; }
  .cards, .gets { display: block; } .cards .card, .gets .get { margin-bottom: 10px; }
  .idea { display: block; } .idea > div + div { margin-top: 12px; }
  .print-only { display: block; }
  .fx .rv, .fx .cover .ld { opacity: 1 !important; transform: none !important; animation: none !important; }
  .scene { padding: 10mm 0; border-top: 1px solid #d7dbe2; break-inside: auto; }
  .cover { min-height: 0; padding: 0 0 8mm; display: block; }
  .cover::after { display: none; }
  .cover .bg { position: static; height: 90mm; overflow: hidden; border-radius: 6px; margin-bottom: 8mm; }
  .cover .bg img { position: static; width: 100%; height: 100%; inset: auto; animation: none !important; filter: none; }
  .cover h1, .h2 { color: var(--navy); }
  .cover h1 { font-size: 34pt; } .h2 { font-size: 24pt; }
  .cover .sub, .intro, .card p, .step p, .get p, .why .body p, .facts span, .vr span, .lines li span, .total p, .secs p, .plan-note { color: #3a4556; }
  .cover .meta, .lbl span:last-child, .quote cite, .card .n { color: #5a6577; }
  .cover .meta b { color: var(--navy); }
  .print-logo { display: block; height: 16px; width: auto; margin-bottom: 8mm; }
  .card, .get, .secs, .total { background: #f6f7f9; border-color: #d7dbe2; color: var(--navy); break-inside: avoid; }
  .get .tag { color: var(--navy); border-color: #c3cad5; }
  .idea { break-inside: avoid; border: 1px solid #d7dbe2; }
  .track .full { background: #d7dbe2; } .track .mk { color: var(--navy); } .track .mk::after { background: var(--navy); }
  .steps::before { background: #d7dbe2; } .steps .fill { display: none; }
  .step { break-inside: avoid; } .step::before { background: var(--red); border-color: var(--red); }
  .lines, .vt { border-color: #c3cad5; } .lines li, .vr { border-color: #e1e5ea; }
  .facts li { border-color: #d7dbe2; } .who img { border-color: #d7dbe2; }
  .srcs[open] ol, .srcs ol { display: block; color: #3a4556; }
  .srcs { display: block; } .srcs > ol { display: block !important; }
  .next { background: #fff; }
  .foot { background: #fff; color: #5a6577; border-top: 1px solid #d7dbe2; }
  .foot img.on-dark { display: none; } .foot img.on-light { display: inline; }
  .mark { display: none; }
  .foot a { display: none; }
  .scene { padding: 7mm 0; }
}
.foot img.on-light { display: none; }
@media print { .foot img.on-light { display: inline; } }
