/* Gate and proposal pages: the same leather world as the demo, one document on it. */
body.gate, body.proposal { min-height: 100svh; }

/* ---------- gate ---------- */
.gate__leaf { position: relative; min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center; padding: clamp(32px, 6vw, 80px) var(--gutter); }
.gate__leaf::after { content: ""; position: absolute; inset: 18px; border: 1px dashed var(--stitch); border-radius: 12px; pointer-events: none; }
.gate__logo { height: 56px; width: auto; margin-bottom: 40px; }
.gate__kicker { font-size: 13px; color: var(--on-leather-3); letter-spacing: 0.02em; }
.gate__title { margin-top: 14px; font-size: clamp(34px, 5.2vw, 72px); max-width: 16ch; }
.gate__title .foil { display: inline-block; }
.gate__note { margin-top: 22px; max-width: 44ch; color: var(--on-leather-2); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; text-wrap: pretty; }
.gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.gate__btn { min-width: 200px; min-height: 60px; font-size: 17px; }
.gate__meta { margin-top: 34px; font-family: var(--font-receipt); font-size: 13px; color: var(--on-leather-3); }
@media (max-width: 560px) { .gate__btn { width: 100%; } .gate__logo { height: 44px; margin-bottom: 28px; } }

/* ---------- proposal ---------- */
.proposal .topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); background: rgba(6,43,41,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(11,181,168,0.25); }
.proposal .topbar img { height: 36px; width: auto; }
.proposal .topbar nav { display: flex; gap: 10px; }
.doc { position: relative; width: min(820px, 100% - 2 * var(--gutter)); margin: clamp(36px, 6vw, 72px) auto clamp(60px, 8vw, 110px); padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 64px); border-radius: 6px; color: var(--ink); }
.doc::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(184,134,11,0.45); border-radius: 3px; pointer-events: none; }
.doc__head { text-align: center; padding-bottom: 28px; border-bottom: 1px dashed rgba(30,26,21,0.4); }
.doc__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.03em; line-height: 1.02; color: var(--ink); text-wrap: balance; }
.doc__sub { margin-top: 12px; font-family: var(--font-receipt); font-size: 13px; color: var(--ink-2); }
.doc__section { padding: 28px 0 8px; }
.doc__section + .doc__section { border-top: 1px dashed rgba(30,26,21,0.3); }
.doc h2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.doc p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 66ch; }
.doc ul { margin-top: 12px; display: grid; gap: 8px; }
.doc li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.doc li svg { width: 14px; height: 14px; margin-top: 5px; color: var(--teal-deep); }
.doc li b { color: var(--ink); font-weight: 600; }
.doc .notice { margin-top: 14px; padding: 14px 16px; border: 1px dashed rgba(8,112,104,0.6); border-radius: 6px; background: rgba(11,181,168,0.06); font-size: 15px; line-height: 1.55; color: var(--ink); }
.doc .lines { margin-top: 14px; font-family: var(--font-receipt); font-size: 14px; }
.doc .lines .rl { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dotted rgba(30,26,21,0.45); }
.doc .lines .rl span:first-child { color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.doc .lines .rl span:last-child { font-weight: 700; text-align: right; }
.doc .lines .rl.total span:last-child { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.doc .stamp-row { display: flex; justify-content: flex-end; margin-top: 16px; }
.doc .foot { margin-top: 32px; padding-top: 18px; border-top: 1px dashed rgba(30,26,21,0.4); font-family: var(--font-receipt); font-size: 12px; color: var(--ink-3); text-align: center; }
.doc__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 560px) { .doc li { grid-template-columns: 14px 1fr; } .proposal .topbar nav .btn { padding: 0 14px; } }
