/* Releaz — soft, atmospheric, editorial.
   Sage / stone / sand palette, serif display type, frosted glass, pill controls. */
:root {
  --ink: #1f211c;
  --ink-2: #464a40;
  --muted: #7b7e73;
  --line: rgba(31, 33, 28, .10);
  --line-2: rgba(31, 33, 28, .18);
  --paper: #f3f3ee;
  --bg: #ecede6;
  --card: rgba(255, 255, 255, .72);
  --card-solid: #fbfbf8;
  --canvas: #e6e7df;
  --sage-50: #eef1e6;
  --sage-100: #e2e8d5;
  --sage-200: #d0dabd;
  --sage-500: #8a9870;
  --accent: #3e5530;
  --accent-soft: #e0e8d2;
  --amber: #85602c;
  --amber-soft: #f1e5d1;
  --blue: #3f5873;
  --blue-soft: #e1e8ee;
  --danger: #a3392b;
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
  --radius: 20px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -22px rgba(42, 48, 32, .28);
  --shadow-lg: 0 40px 90px -40px rgba(30, 34, 24, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.015em; line-height: 1.2; }
h3 { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
code { background: rgba(31,33,28,.06); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
[data-show=""] { display: none !important; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 28px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
::selection { background: var(--sage-200); }

/* Outlined uppercase label, e.g. "01 · UPLOAD" */
.tag { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.tag-dim { color: var(--ink-2); border-color: var(--line-2); }
.tag .dotc { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-500); }

/* Buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .08s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #f6f6f1; }
.btn-primary:hover { background: #33362e; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #33492a; }
.btn-ghost { background: rgba(255,255,255,.7); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: #fff; border-color: rgba(31,33,28,.3); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }
.btn-white:hover { background: #f4f4ef; }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-round { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
.link-btn { white-space: nowrap; background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.link-btn.danger:hover { color: var(--danger); }

/* Forms */
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
input, textarea, select { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: rgba(255,255,255,.85); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; width: 100%; }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a3a59b; }
input:focus, textarea:focus, select:focus { border-color: var(--ink-2); background: #fff; box-shadow: 0 0 0 4px rgba(138, 152, 112, .2); }
.error { background: #f6e3de; color: var(--danger); border-radius: 14px; padding: 11px 14px; font-size: 14px; }
.error:empty { display: none; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; font-size: 18px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #f6f6f1; display: grid; place-items: center; font-size: 15px; font-weight: 700; font-family: var(--font); letter-spacing: 0; }

/* Floating glass navigation */
.topnav { position: sticky; top: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: calc(100% - 24px); max-width: 1120px; height: 58px; margin: 12px auto 0; padding: 0 10px 0 16px; border-radius: 18px; background: rgba(250, 250, 246, .62); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 30px -18px rgba(30, 34, 24, .35); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.topnav nav { display: flex; align-items: center; gap: 22px; }
.topnav form { margin: 0; }
.topnav .link { text-decoration: none; color: var(--ink-2); font-size: 14px; }
.topnav .link:hover { color: var(--ink); }
.studio-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--sage-100); color: var(--accent); display: grid; place-items: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; flex: none; }
.avatar-lg { width: 40px; height: 40px; font-size: 13px; }

.topnav .link[aria-current] { color: var(--ink); font-weight: 500; }
.subnav { display: none; }
@media (max-width: 820px) {
  .subnav { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: calc(100% - 20px); margin: 10px auto 0; padding: 4px; border-radius: 999px; background: rgba(250,250,246,.62); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 8px 24px -18px rgba(30,34,24,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .subnav a { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
  .subnav a[aria-current] { background: var(--ink); color: #f6f6f1; }
}

/* Atmosphere: blurred colour fields + film grain (used on hero, auth, CTA) */
.atmos { position: relative; isolation: isolate; overflow: hidden; background: #3d4235; color: #f4f3ec; }
.atmos::before { content: ""; position: absolute; inset: -20%; z-index: -2; filter: blur(60px) saturate(1.05);
  background:
    radial-gradient(32% 40% at 18% 30%, #8e9b78 0%, transparent 70%),
    radial-gradient(30% 36% at 72% 18%, #c8b48c 0%, transparent 70%),
    radial-gradient(38% 42% at 85% 70%, #e6d9bf 0%, transparent 70%),
    radial-gradient(34% 40% at 35% 85%, #6f7c62 0%, transparent 70%),
    radial-gradient(26% 30% at 55% 50%, #a9a587 0%, transparent 70%);
  animation: drift 38s ease-in-out infinite alternate; }
.atmos::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .22; mix-blend-mode: overlay; pointer-events: none; }
.atmos.light { background: #dfe3d2; color: var(--ink); }
.atmos.light::before {
  background:
    radial-gradient(34% 40% at 15% 25%, #c9d3b3 0%, transparent 70%),
    radial-gradient(30% 36% at 80% 15%, #ead9bb 0%, transparent 70%),
    radial-gradient(40% 44% at 85% 80%, #f4eee0 0%, transparent 70%),
    radial-gradient(34% 40% at 25% 90%, #b6c19d 0%, transparent 70%); }
.atmos.light::after { opacity: .14; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-3%, 2%, 0) scale(1.06); } 100% { transform: translate3d(3%, -2%, 0) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .atmos::before { animation: none; } html { scroll-behavior: auto; } }

/* Glass surface */
.glass { background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); }

/* Auth pages */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: #dfe3d2; position: relative; isolation: isolate; overflow-x: hidden; }
body.auth::before { content: ""; position: fixed; inset: -20%; z-index: -2; filter: blur(60px);
  background:
    radial-gradient(34% 40% at 15% 25%, #c3cdab 0%, transparent 70%),
    radial-gradient(30% 36% at 80% 15%, #e8d6b5 0%, transparent 70%),
    radial-gradient(40% 44% at 85% 80%, #f4eee0 0%, transparent 70%),
    radial-gradient(34% 40% at 25% 90%, #aab78f 0%, transparent 70%);
  animation: drift 38s ease-in-out infinite alternate; }
body.auth::after { content: ""; position: fixed; inset: 0; z-index: -1; background-image: var(--grain); opacity: .14; mix-blend-mode: overlay; pointer-events: none; }
.auth-card { width: 100%; max-width: 420px; border-radius: var(--r-lg); padding: 34px; display: flex; flex-direction: column; gap: 16px; background: rgba(251,251,248,.66); border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); box-shadow: var(--shadow-lg); }
.auth-card .brand { margin-bottom: 10px; }
.auth-card h1 { font-size: 34px; }
.auth-card.center { align-items: center; margin: 12vh auto; }
.auth-card p { margin: 0; }

/* App layout */
body:not(.landing):not(.auth):not(.viewer) { background: radial-gradient(1400px 520px at 50% -180px, var(--sage-100), transparent 70%), var(--paper); min-height: 100vh; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 44px 28px 96px; }
.wrap.narrow { max-width: 980px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head h1 { font-size: 44px; }
.page-head p { margin: 8px 0 0; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.back:hover { color: var(--ink); }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.8); border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pad { padding: 24px; }
.card.pad p { margin: 0 0 14px; }
.card.pad h3 .pill { font-size: 12px; text-transform: none; letter-spacing: 0; }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--card); border: 1px solid rgba(255,255,255,.8); border-radius: var(--r); padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; box-shadow: var(--shadow); }
.stat b { font-family: var(--serif); font-size: 36px; font-weight: 400; letter-spacing: -.02em; text-transform: none; line-height: 1.1; }
.list { background: var(--card); border: 1px solid rgba(255,255,255,.8); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr auto auto 130px; align-items: center; gap: 22px; padding: 18px 24px; text-decoration: none; border-top: 1px solid var(--line); transition: background .15s; }
.row:first-child { border-top: 0; }
.row:hover { background: rgba(255,255,255,.65); }
.row-title { font-family: var(--serif); font-size: 19px; letter-spacing: -.01em; }
.row-sub, .row-meta { font-size: 13px; color: var(--muted); }
.row-amount { font-weight: 500; font-variant-numeric: tabular-nums; }
.pill { justify-self: end; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; white-space: nowrap; letter-spacing: .01em; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-paid { background: var(--accent-soft); color: var(--accent); }
.pill-viewed { background: var(--blue-soft); color: var(--blue); }
.pill-sent { background: var(--amber-soft); color: var(--amber); }
.pill-draft { background: rgba(31,33,28,.06); color: var(--muted); }
.pill-lg { font-size: 13px; padding: 7px 14px; }
.empty { text-align: center; padding: 72px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty h2 { font-size: 30px; }
.empty-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--sage-100); color: var(--accent); display: grid; place-items: center; font-size: 22px; margin-bottom: 6px; }
.empty p { margin: 0 0 12px; }

/* Detail */
.detail-grid { display: grid; grid-template-columns: 1fr 310px; gap: 18px; align-items: start; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-size: 14px; background: rgba(255,255,255,.6); border-radius: 999px; padding-left: 18px; }
.done-actions { display: flex; gap: 10px; justify-content: center; margin: 16px 0 6px; flex-wrap: wrap; }
.done-actions.left { justify-content: flex-start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; position: relative; }
.timeline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-200); margin-left: 0; box-shadow: 0 0 0 4px var(--paper); }
.timeline li:last-child .dot { background: var(--accent); }
.quote { margin: 0; padding: 14px 16px; background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 14px; white-space: pre-wrap; font-size: 14px; color: var(--ink-2); }
.big-amount { font-family: var(--serif); font-size: 44px; font-weight: 400; letter-spacing: -.02em; margin: 2px 0 16px; line-height: 1.1; }
.files-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.files-mini li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); background: rgba(255,255,255,.7); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 8px; min-width: 40px; text-align: center; }
.acc-line { display: flex; align-items: center; gap: 8px; margin: 0 0 4px !important; font-size: 14px; }

/* Composer (upload) */
body.new { background: #e3e7d8; position: relative; isolation: isolate; }
body.new::before { content: ""; position: fixed; inset: -20%; z-index: -2; filter: blur(60px);
  background:
    radial-gradient(34% 40% at 12% 20%, #ccd5b6 0%, transparent 70%),
    radial-gradient(30% 36% at 85% 12%, #ecdcbd 0%, transparent 70%),
    radial-gradient(40% 44% at 80% 85%, #f5f0e3 0%, transparent 70%),
    radial-gradient(34% 40% at 20% 92%, #b7c29f 0%, transparent 70%); }
body.new::after { content: ""; position: fixed; inset: 0; z-index: -1; background-image: var(--grain); opacity: .12; mix-blend-mode: overlay; pointer-events: none; }
.composer { display: flex; justify-content: center; padding: 48px 16px 90px; }
.composer-card { width: 100%; max-width: 500px; padding: 24px; display: flex; flex-direction: column; gap: 18px; border-radius: var(--r-lg); background: rgba(251,251,248,.7); border: 1px solid rgba(255,255,255,.75); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); box-shadow: var(--shadow-lg); }
.drop { border: 1.5px dashed rgba(31,33,28,.22); border-radius: 20px; padding: 20px; cursor: pointer; transition: border-color .2s, background .2s; background: rgba(255,255,255,.35); }
.drop:hover, .drop.over { border-color: var(--ink-2); background: rgba(255,255,255,.7); }
.drop-empty { display: flex; align-items: center; gap: 16px; }
.drop-empty b { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.drop-plus { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #f6f6f1; display: grid; place-items: center; font-size: 24px; font-weight: 300; flex: none; }
.drop.has-files .drop-empty { display: none; }
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; }
.file-list li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; padding: 6px 2px; }
.file-list .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }
.file-list .rm:hover { color: var(--danger); }
.add-more { display: none; margin-top: 8px; }
.drop.has-files .add-more { display: inline; }
.drop.has-files { cursor: default; border-style: solid; border-color: var(--line); }
.more { display: flex; flex-direction: column; gap: 8px; }
.more summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink-2); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { margin-bottom: 2px; }
.more textarea { margin-bottom: 2px; }
.fields { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.money-input { display: flex; gap: 8px; }
.money-input select { width: 112px; flex: none; }
.money-input input { font-family: var(--serif); font-size: 24px; padding-top: 8px; padding-bottom: 8px; }
.state { align-items: center; text-align: center; padding: 44px 30px; position: relative; }
.state h2 { font-size: 32px; }
.state p { margin: 0; }
.ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: rgba(31,33,28,.08); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset .2s; }
.ring-label { position: absolute; top: 44px; left: 0; right: 0; height: 120px; display: grid; place-items: center; font-family: var(--serif); font-size: 28px; }
.done-check { width: 68px; height: 68px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 28px; }
.state .copy-field { width: 100%; }

/* Demo checkout */
.demo-badge { background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 500; border-radius: 999px; padding: 7px 14px; align-self: flex-start; letter-spacing: .02em; }
.fake-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.5); }
.fake-line { height: 12px; border-radius: 6px; background: rgba(31,33,28,.07); }
.fake-line.short { width: 55%; }

/* Payouts / onboarding */
.setup-card { max-width: 580px; margin: 24px auto; padding: 40px; display: flex; flex-direction: column; gap: 16px; border-radius: var(--r-lg); }
.setup-card h1 { font-size: 38px; }
.setup-card p { margin: 0; }
.setup-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--sage-100); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 26px; }
.checks { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; display: grid; place-items: center; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; margin-bottom: 18px; border-radius: var(--r); background: var(--amber-soft); color: var(--amber); text-decoration: none; font-size: 14px; border: 1px solid rgba(133, 96, 44, .12); }
.callout-go { font-weight: 500; white-space: nowrap; }
.note { padding: 13px 18px; border-radius: 16px; font-size: 14px; margin-bottom: 16px; }
.note.ok { background: var(--accent-soft); color: var(--accent); }
.note.warn { background: var(--amber-soft); color: var(--amber); }
.fees { list-style: none; margin: 0 0 12px; padding: 0; }
.fees li { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fees li:first-child { border-top: 0; }
.fees b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* ======================================================================
   Client viewer
   ====================================================================== */
body.viewer { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: var(--canvas); }
.vbar { height: 72px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; background: rgba(250,250,246,.86); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 5; }
.vbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vbar-id { min-width: 0; }
.vbar-studio { font-size: 11px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; }
.vbar-title { font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.vbar-right { display: flex; align-items: center; gap: 14px; flex: none; }
.vbar-price { text-align: right; line-height: 1.15; }
.vbar-price small { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.vbar-price b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.lock { display: inline-block; width: 14px; height: 14px; }
.vbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px 1fr; }
.vside { background: rgba(247,247,242,.9); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.vside-intro { padding: 22px 22px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.vmsg { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; }
.vfiles { list-style: none; margin: 0; padding: 10px; overflow: auto; flex: 1; }
.vfile { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 14px; cursor: pointer; font-size: 14px; transition: background .15s; }
.vfile:hover { background: rgba(255,255,255,.7); }
.vfile.active { background: #fff; box-shadow: 0 6px 18px -10px rgba(30,34,24,.3); }
.vfile .meta { font-size: 12px; color: var(--muted); }
.vfile .dl { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line-2); background: #fff; }
.vfile .dl:hover { border-color: var(--ink); }
.vside-foot { padding: 16px 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.vmain { position: relative; overflow: auto; min-height: 0; }
.vpages { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 30px 24px 120px; min-width: min-content; }
.sheet { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -18px rgba(30,34,24,.3); position: relative; flex: none; border-radius: 2px; }
.sheet canvas { display: block; width: 100%; height: 100%; }
.sheet.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f8f8f4 0%, #efefe9 50%, #f8f8f4 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.nopreview { margin: 12vh auto; background: rgba(255,255,255,.8); border-radius: var(--r-lg); padding: 44px; max-width: 400px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nopreview b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.nopreview .ext { font-size: 12px; padding: 8px 14px; }
.nopreview p { margin: 0; }
.vtools { position: fixed; bottom: 24px; left: calc(150px + 50vw); transform: translateX(-50%); width: max-content; display: flex; align-items: center; gap: 2px; background: rgba(31, 33, 28, .78); color: #f6f6f1; padding: 6px; border-radius: 999px; box-shadow: 0 14px 34px -14px rgba(0,0,0,.4); z-index: 4; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.vtools button { background: transparent; border: 0; color: inherit; font: inherit; font-size: 17px; width: 36px; height: 34px; border-radius: 999px; cursor: pointer; }
.vtools button:hover { background: rgba(255,255,255,.12); }
.vtools .vzoom { width: auto; padding: 0 12px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 58px; }
.vsep { width: 1px; height: 18px; background: rgba(255,255,255,.22); margin: 0 6px; }
.vpage { font-size: 13px; padding: 0 12px 0 4px; font-variant-numeric: tabular-nums; opacity: .85; }
.vstatus { margin: 14px 14px 0; padding: 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.vstatus p { margin: 0; }
.vstatus.paid { background: var(--accent-soft); color: var(--ink); }
.vstatus.wait { background: var(--amber-soft); color: var(--amber); }
.vstatus.owner { background: rgba(255,255,255,.7); padding: 12px 16px; }
.vstatus-head { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.vstatus-head b { font-weight: 500; }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 11px; flex: none; }
.vstatus-note { white-space: pre-wrap; font-family: var(--serif); font-size: 17px; line-height: 1.4; color: var(--ink); }
.vstatus-small { font-size: 12px; color: var(--muted); }
.vstatus-small a { color: inherit; }
.vstatus.wait .vstatus-small { color: inherit; opacity: .85; }
.vclose { background: none; border: 0; color: inherit; opacity: .6; font-size: 20px; cursor: pointer; padding: 0 4px; line-height: 1; }
.vclose:hover { opacity: 1; }
.vpaybar { display: none; }

/* Review & accept dialog */
.accept { border: 0; padding: 0; border-radius: var(--r-lg); width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-lg); color: var(--ink); background: #fbfbf8; }
.accept::backdrop { background: rgba(31, 33, 28, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.accept form { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.accept-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 26px 12px; }
.accept-head h2 { font-size: 32px; }
.accept-head .muted { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; margin-bottom: 4px; }
.accept-head .vclose { color: var(--muted); }
.accept-body { padding: 0 26px 18px; display: flex; flex-direction: column; gap: 16px; overflow: auto; }
.accept-body p { margin: 0; }
.accept-files ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; max-height: 130px; overflow: auto; }
.accept-files li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; font-size: 13px; }
.accept-terms { background: var(--sage-50); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-family: var(--serif); font-size: 17px; line-height: 1.5; white-space: pre-wrap; max-height: 210px; overflow: auto; }
.accept-check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.accept-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.accept-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 26px; border-top: 1px solid var(--line); background: rgba(236,237,230,.6); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ======================================================================
   Marketing site
   ====================================================================== */
body.landing { background: var(--paper); }
.landing .topnav { position: fixed; left: 0; right: 0; top: 14px; margin: 0 auto; }
.mk { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Hero */
.mk-hero { min-height: max(680px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; }
.mk-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; flex: 1; }
.mk-hero h1 { font-size: clamp(44px, 5.3vw, 76px); line-height: 1.02; letter-spacing: -.03em; font-weight: 300; }
.mk-hero h1 em { font-style: italic; color: #e9e2cf; }
.mk-hero .lede { font-size: 18px; line-height: 1.55; color: rgba(244,243,236,.82); max-width: 520px; margin: 26px 0 34px; }
.mk-hero .tag { color: rgba(244,243,236,.9); margin-bottom: 26px; }
.mk-hero .tag .dotc { background: #dfe8c9; }
.hero-facts { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 0 30px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.18); font-size: 15px; color: rgba(244,243,236,.86); }
.hero-facts ul { display: flex; gap: 48px; list-style: none; margin: 0; padding: 0; }
.hero-facts li { max-width: 170px; line-height: 1.35; }
.hero-facts .by { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: rgba(244,243,236,.6); text-align: right; }
.hero-facts .by b { display: block; font-size: 20px; letter-spacing: -.01em; text-transform: none; color: #f4f3ec; font-weight: 600; margin-top: 4px; }

/* Hero viewer mock */
.mock { position: relative; border-radius: 26px; overflow: hidden; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); box-shadow: 0 50px 100px -40px rgba(0,0,0,.55); color: var(--ink); }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: rgba(250,250,246,.86); }
.mock-id { display: flex; align-items: center; gap: 10px; font-size: 12px; min-width: 0; }
.mock-id small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.mock-id > div { min-width: 0; }
.mock-id b { display: block; font-family: var(--serif); font-weight: 400; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-pay { background: var(--accent); color: #fff; font-size: 11px; font-weight: 500; padding: 8px 13px; border-radius: 999px; white-space: nowrap; }
.mock-body { padding: 26px; }
.mock-sheet { background: #fff; aspect-ratio: 1.414; position: relative; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); overflow: hidden; border-radius: 2px; }
.mock-sheet svg, .mock-sheet img { position: absolute; display: block; inset: 0; width: 100%; height: 100%; }
.mock-wm { position: absolute; inset: -40%; display: flex; flex-wrap: wrap; gap: 28px 44px; transform: rotate(-24deg); align-content: center; justify-content: center; color: rgba(31,33,28,.07); font-weight: 600; font-size: 14px; letter-spacing: .04em; pointer-events: none; }
.mock-float { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(250,250,246,.82); border: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 34px -16px rgba(0,0,0,.4); font-size: 12px; }
.mock-float b { display: block; font-weight: 500; font-size: 13px; }
.mock-float .btn-round { width: 34px; height: 34px; background: var(--accent); color: #fff; font-size: 14px; display: grid; place-items: center; }

/* Sections */
.mk-section { padding: 120px 0; }
.mk-sage { background: var(--sage-100); }
.mk-stone { background: var(--paper); }
.mk-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mk-h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.025em; max-width: 880px; }
.mk-sub { font-size: 17px; color: var(--ink-2); max-width: 560px; margin: 18px 0 0; }

/* Statement with scroll-reveal */
.statement { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.statement p { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.22; letter-spacing: -.015em; margin: 0 0 .7em; max-width: 880px; padding-left: 28px; border-left: 2px solid var(--line-2); }
.statement p .w { transition: opacity .35s ease; }
.statement.js p .w { opacity: .18; }
.statement.js p .w.on { opacity: 1; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.steps-visual { position: sticky; top: 100px; }
.steps-card { position: relative; aspect-ratio: 1 / 1.05; border-radius: var(--r-lg); overflow: hidden; }
.steps-card .scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 34px; opacity: 0; transform: scale(.98); transition: opacity .6s ease, transform .6s ease; }
.steps-card .scene.on { opacity: 1; transform: none; }
.steps-chip { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px; background: rgba(250,250,246,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; color: var(--ink); }
.steps-chip span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ui { width: 100%; max-width: 360px; border-radius: 22px; background: rgba(251,251,248,.86); border: 1px solid rgba(255,255,255,.85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); padding: 18px; color: var(--ink); display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.ui-drop { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed rgba(31,33,28,.2); border-radius: 16px; }
.ui-drop i { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.ui-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.ui-field { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--muted); }
.ui-amount { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.ui-btn { text-align: center; padding: 11px; border-radius: 999px; background: var(--ink); color: #f6f6f1; font-weight: 500; }
.ui-btn.accent { background: var(--accent); }
.ui-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; }
.ui-link span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.ui-link b { padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: 12px; }
.ui-title { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.ui-check { display: flex; gap: 8px; align-items: center; }
.ui-check i { width: 16px; height: 16px; border-radius: 4px; background: var(--accent); color: #fff; font-style: normal; font-size: 10px; display: grid; place-items: center; }
.ui-terms { padding: 12px; border-radius: 12px; background: var(--sage-50); font-family: var(--serif); font-size: 14px; line-height: 1.4; }
.ui-paid { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.ui-sig { font-family: var(--serif); font-style: italic; font-size: 20px; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.steps-list { display: flex; flex-direction: column; }
.step { min-height: 38vh; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 4px 0 40px 28px; border-left: 2px solid var(--line); transition: border-color .4s; }
.step:last-child { min-height: 60vh; }  /* keeps the picture pinned while step 04 is read */
.step.on { border-color: var(--ink-2); }
.step h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; letter-spacing: -.015em; line-height: 1.15; text-transform: none; color: var(--ink); margin: 0; transition: opacity .4s; }
.step:not(.on) h3 { opacity: .35; }
.step p { margin: 0; color: var(--muted); font-size: 15px; max-width: 380px; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.ficon { width: 46px; height: 46px; border-radius: 15px; background: var(--sage-100); color: var(--accent); display: grid; place-items: center; }
.ficon svg { width: 24px; height: 24px; }
.fcard { border-radius: var(--r-lg); padding: 26px; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow); }
.fcard h4 { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.12; letter-spacing: -.015em; }
.fcard p { margin: 0; color: var(--ink-2); font-size: 14px; }
.fcard .tag { color: var(--ink-2); border-color: var(--line-2); align-self: flex-start; }

/* Hero buttons */
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-glass { background: rgba(255,255,255,.1); color: #f4f3ec; border-color: rgba(255,255,255,.32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.18); }

/* Sign-off spotlight */
.signoff { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.ticks { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 470px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); font-size: 15px; }
.ticks li b { color: var(--ink); font-weight: 500; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; }
.signoff-visual { border-radius: var(--r-lg); padding: 44px 40px 72px; display: grid; place-items: center; position: relative; }
.dlg { width: 100%; max-width: 420px; background: #fbfbf8; border-radius: 24px; box-shadow: 0 40px 80px -36px rgba(0,0,0,.45); color: var(--ink); font-size: 13px; overflow: hidden; }
.dlg-head { padding: 20px 22px 6px; }
.dlg-head small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dlg-head b { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.01em; }
.dlg-files { padding: 8px 22px; display: flex; flex-direction: column; gap: 6px; }
.dlg-files .ui-row { grid-template-columns: auto 1fr; }
.dlg-terms { margin: 8px 22px 12px; padding: 12px 14px; border-radius: 14px; background: var(--sage-50); border: 1px solid var(--line); font-family: var(--serif); font-size: 14.5px; line-height: 1.45; }
.dlg .ui-check, .dlg .ui-sig { margin: 0 22px 10px; }
.dlg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; margin-top: 6px; border-top: 1px solid var(--line); background: rgba(236,237,230,.6); font-size: 12px; }
.dlg-foot .ui-btn { padding: 9px 16px; white-space: nowrap; }
.record-chip { position: absolute; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgba(250,250,246,.88); border: 1px solid rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 34px -16px rgba(0,0,0,.35); font-size: 12px; color: var(--ink-2); }
.record-chip b { display: block; color: var(--ink); font-weight: 500; font-size: 13px; }

/* Trust (dark band) */
.mk-dark { background: #2c3026; color: #f4f3ec; }
.mk-dark .tag { color: rgba(244,243,236,.8); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.16); }
.trust > div { padding: 28px 28px 8px 0; border-right: 1px solid rgba(255,255,255,.1); margin-right: 28px; }
.trust > div:last-child { border-right: 0; margin-right: 0; }
.trust b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 12px; }
.trust p { margin: 0; color: rgba(244,243,236,.7); font-size: 14px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.price-card { border-radius: var(--r-lg); padding: 34px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.85); box-shadow: var(--shadow-lg); }
.price-big { font-family: var(--serif); font-weight: 300; font-size: 76px; letter-spacing: -.03em; line-height: 1; }
.price-big small { font-family: var(--font); font-size: 15px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price-card .fees { margin: 22px 0; }
.price-card .fees:first-child { margin-top: 0; }
.price-card .fees:first-child li:first-child { padding-top: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
.faq details { border-top: 1px solid var(--line-2); padding: 24px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font); font-weight: 300; font-size: 18px; color: var(--ink-2); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 14px 0 0; color: var(--ink-2); max-width: 680px; font-size: 16px; }

/* Closing CTA + footer */
.mk-cta { padding: 140px 0; text-align: center; }
.mk-cta h2 { font-weight: 300; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.03em; margin: 0 auto 34px; max-width: 860px; }
.mk-foot { background: #23261f; color: rgba(244,243,236,.7); padding: 56px 0 36px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 14px 0 0; max-width: 300px; }
.mk-foot nav { display: flex; flex-direction: column; gap: 10px; }
.mk-foot nav b { color: #f4f3ec; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 4px; }
.mk-foot nav a { text-decoration: none; }
.mk-foot nav a:hover { color: #f4f3ec; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; }
.mk-foot .brand { color: #f4f3ec; }
.mk-foot .brand-mark { background: #f4f3ec; color: var(--ink); }

/* Reveal on scroll */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } .statement.js p .w { opacity: 1; } }

/* ======================================================================
   Small screens
   ====================================================================== */
@media (max-width: 900px) {
  .cards, .cards.three { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust > div:nth-child(2n) { border-right: 0; margin-right: 0; }
  .signoff { grid-template-columns: 1fr; gap: 40px; }
  .pricing { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .topnav { width: calc(100% - 20px); padding: 0 8px 0 14px; height: 54px; top: 10px; }
  .topnav nav { gap: 14px; }
  .hide-sm { display: none; }
  .wrap { padding: 28px 16px 72px; }
  .page-head h1 { font-size: 36px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { display: none; }
  .stat b { font-size: 28px; }
  .row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 18px; }
  .row-meta { grid-column: 1; grid-row: 2; }
  .row-amount { grid-column: 2; grid-row: 1; text-align: right; }
  .row .pill { grid-column: 2; grid-row: 2; }
  .detail-grid { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .composer { padding: 22px 12px 60px; }
  .composer-card { padding: 18px; }
  .setup-card { padding: 26px; }
  .callout { flex-direction: column; align-items: flex-start; }

  .mk { padding-left: 18px; padding-right: 18px; }
  .mk-hero { padding-top: 100px; min-height: 0; }
  .mk-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mk-hero .tag { white-space: normal; height: auto; padding: 5px 12px; line-height: 1.4; }
  .mock-body { padding: 16px; }
  .mock-float { right: 10px; bottom: 10px; }
  .steps-chip { display: none; }
  .hero-facts { flex-direction: column; align-items: flex-start; }
  .hero-facts ul { flex-direction: column; gap: 10px; }
  .hero-facts .by { text-align: left; }
  .mk-section { padding: 80px 0; }
  .statement, .faq-grid { grid-template-columns: 1fr; gap: 20px; }
  .statement p { padding-left: 18px; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps-visual { position: relative; top: 0; }
  .steps-card { aspect-ratio: 1 / .9; }
  .step { min-height: 0; padding-bottom: 34px; gap: 14px; padding-left: 20px; }
  .step:last-child { min-height: 0; }
  .step:not(.on) h3 { opacity: 1; }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust > div { border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .trust > div:last-child { border-bottom: 0; }
  .signoff-visual { padding: 24px 14px 84px; }
  .dlg-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .record-chip { left: 14px; right: 14px; bottom: 14px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hero-ctas .btn { flex: 1; }
  .fcard { min-height: 0; }
  .faq summary { font-size: 20px; }
  .mk-cta { padding: 96px 0; }
  .mk-cta h2 { font-size: 34px; }

  .vbar { height: 62px; padding: 0 16px; }
  .vbar-title { font-size: 18px; }
  .vbar-right { display: none; }
  .vbody { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .vside { border-right: 0; border-bottom: 1px solid var(--line); }
  .vside-intro, .vside-foot { display: none; }
  .vfiles { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; flex: none; }
  .vfile { flex: none; grid-template-columns: auto auto; padding: 6px 12px 6px 6px; border: 1px solid var(--line-2); border-radius: 999px; max-width: 250px; background: rgba(255,255,255,.6); }
  .vfile .meta, .vfile .dl { display: none; }
  .vfile.active { box-shadow: none; border-color: var(--ink); background: #fff; }
  .vpages { padding: 16px 12px 150px; gap: 14px; }
  .vtools { bottom: 96px; left: 50%; }
  .vstatus { margin: 10px 12px 2px; padding: 12px 16px; gap: 6px; }
  .vstatus-note { font-size: 15px; }
  .vstatus-btn, .vstatus.paid .vstatus-small { display: none; }
  .vpaybar { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 10; background: rgba(250,250,246,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.8); border-radius: 22px; box-shadow: 0 16px 40px -18px rgba(0,0,0,.35); padding: 10px 10px 10px 18px; margin-bottom: env(safe-area-inset-bottom); align-items: center; justify-content: space-between; gap: 12px; }
  .accept { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .accept-foot { flex-direction: column; align-items: stretch; border-radius: 0; }
  .accept-foot .muted { text-align: center; }
  .accept-head h2 { font-size: 28px; }
}

/* ---------- Legal pages ---------- */
.consent { margin: 4px 0 0; line-height: 1.5; }
.consent a { color: inherit; }
.accept-body .consent { margin-top: 2px; }
.legal-wrap { max-width: 1120px; margin: 0 auto; padding: 128px 24px 96px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-side { position: sticky; top: 100px; }
.legal-side b { display: block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
.legal-side nav { display: flex; flex-direction: column; gap: 2px; }
.legal-side a { text-decoration: none; color: var(--ink-2, #464a40); font-size: 14px; padding: 7px 12px; border-radius: 10px; }
.legal-side a:hover { background: rgba(31,33,28,.05); color: var(--ink); }
.legal-side a[aria-current] { background: var(--sage-100); color: var(--accent); font-weight: 500; }
.legal-doc { max-width: 720px; font-size: 15.5px; line-height: 1.65; color: #33362e; }
.legal-doc h1 { font-family: var(--serif); font-weight: 300; font-size: 52px; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 18px; color: var(--ink); }
.legal-doc h2 { font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: -.01em; color: var(--ink); margin: 44px 0 10px; text-transform: none; }
.legal-doc h3 { font-size: 13px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; margin: 26px 0 8px; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ol { margin: 0 0 14px; padding-left: 22px; }
.legal-doc li { margin: 0 0 8px; padding-left: 4px; }
.legal-doc a { color: var(--accent); }
.legal-doc .tbl { overflow-x: auto; margin: 8px 0 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.55); }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-doc th { text-align: left; font-weight: 600; color: var(--ink); background: rgba(31,33,28,.035); }
.legal-doc th, .legal-doc td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-doc tr:last-child td { border-bottom: 0; }
.legal-doc mark.ph { background: #f3ecc9; color: #5b4d12; border-radius: 4px; padding: 0 3px; }
.legal-draft { display: inline-block; font-size: 13px; color: var(--muted); background: rgba(31,33,28,.05); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px !important; }
.legal-draft b { color: var(--ink); }
@media (max-width: 820px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 24px; padding: 104px 16px 64px; }
  .legal-side { position: static; }
  .legal-side nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .legal-side a { background: rgba(31,33,28,.05); font-size: 13px; padding: 6px 12px; border-radius: 999px; }
  .legal-doc h1 { font-size: 38px; }
  .legal-doc { font-size: 15px; }
}
