/* Proposal drafting: Marlow Joinery, after Waida's Zenvira (with a nod to Studio Arch).
   A green room photo hero inside a rounded frame, a white floating nav pill, condensed caps
   headlines (Barlow Condensed 700), a star rating, a cream body with a "Works with" row, a
   photo carousel with angled crops, a dark olive band with pill labels and a stats row, and
   photo cards with a notched corner and a round arrow button. */
.demo--proposal-drafting {
  --cream: #f6f3ec; --cream-2: #ebe6da; --olive: #1f2a1a; --olive-2: #2b3824; --olive-3: #3a4832; --sage: #6f7f5c; --ink: #1c2117; --ink-2: #3b4034;
  --muted: #5f6356; --line: #dcd6c8; --star: #f5a623; --warn: #7a3b12;
  background: var(--cream); color: var(--ink); font: 400 16px/1.55 "DM Sans", system-ui, sans-serif;
}
.demo--proposal-drafting .mj-wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 5.5vw, 80px); }
.demo--proposal-drafting :focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.demo--proposal-drafting .mj-hero :focus-visible, .demo--proposal-drafting .mj-stage :focus-visible { outline-color: #d9e7c4; }
.demo--proposal-drafting img { width: 100%; height: 100%; object-fit: cover; }
.demo--proposal-drafting em { font-style: normal; }

/* ---- hero ---- */
.mj-hero { padding: 0; }
.mj-hero__frame { position: relative; height: min(800px, 92vh); min-height: 600px; overflow: hidden; isolation: isolate; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.mj-hero__img { position: absolute; inset: 0; z-index: -2; object-position: 50% 55%; }
.mj-hero__frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,30,15,.12), rgba(20,30,15,0) 35%, rgba(15,22,12,.68)); }
.mj-nav { width: min(840px, calc(100% - 32px)); margin: 30px auto 0; background: #fff; color: var(--ink); border-radius: 999px; padding: 12px 20px 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.mj-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 17px/1 "Barlow Condensed", sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.mj-nav__links { display: flex; gap: 30px; }
.mj-nav__links a { color: var(--ink); text-decoration: none; font-size: 16px; }
.mj-nav__links a:hover { color: var(--sage); }
.mj-nav__cta { background: var(--olive); color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 24px; font-size: 16px; font-weight: 500; }
.mj-nav__cta:hover { background: #000; }
.mj-hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; padding: 0 clamp(16px, 5.5vw, 80px) 40px; }
.mj-eyebrow { font-size: 14px; font-weight: 500; opacity: .92; margin-bottom: 10px; }
.mj-h1 { font: 700 clamp(56px, 7.4vw, 106px)/.94 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: -.01em; }
.mj-hero__lede { margin-top: 18px; max-width: 30em; font-size: 18px; line-height: 1.45; }
.mj-hero__btn { margin-top: 24px; border: 0; background: #fff; color: var(--olive); border-radius: 999px; padding: 14px 24px; font: 500 16px/1 "DM Sans", sans-serif; }
.mj-hero__btn:hover { background: #e9efe0; }
.mj-rating { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 500; }
.mj-rating__stars { color: var(--star); font-size: 26px; letter-spacing: 6px; }
@media (max-width: 800px) {
  .mj-nav { margin-top: 14px; padding: 8px 8px 8px 16px; }
  .mj-nav__links { display: none; }
  .mj-nav__cta { padding: 10px 16px; font-size: 14px; }
  .mj-hero__frame { min-height: 640px; }
  .mj-rating { font-size: 15px; } .mj-rating__stars { font-size: 18px; letter-spacing: 3px; }
  .mj-hero__lede { font-size: 16px; }
}

/* ---- works with ---- */
.mj-tools { padding: 64px 16px 40px; }
.mj-tools__h { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 20px; font-weight: 500; }
.mj-tools__line { width: min(170px, 18vw); height: 1px; background: var(--ink); position: relative; }
.mj-tools__line::before, .mj-tools__line::after { content: ""; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.mj-tools__line::before { left: 0; } .mj-tools__line::after { right: 0; }
.mj-tools__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(28px, 6vw, 84px); margin-top: 34px; color: #8a8a82; }
.mj-wm { white-space: nowrap; }
.mj-wm--a { font: 700 26px/1 Manrope, sans-serif; letter-spacing: -.02em; }
.mj-wm--b { font: 600 24px/1 Figtree, sans-serif; letter-spacing: -.02em; }
.mj-wm--c { font: 500 24px/1 Inter, sans-serif; letter-spacing: -.03em; }
.mj-wm--d { font: 700 25px/1 "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.mj-wm--e { font: 800 24px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }

/* ---- split heading + carousel ---- */
.mj-work { padding: clamp(56px, 6vw, 90px) 0 clamp(72px, 8vw, 120px); }
.mj-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 24px 60px; align-items: start; margin-bottom: clamp(44px, 6vw, 110px); }
.mj-h2 { font: 700 clamp(44px, 5.4vw, 78px)/1.08 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: -.005em; color: var(--olive); }
.mj-h2--c { text-align: center; }
.mj-split__txt { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.4; color: var(--ink-2); padding-top: .4em; }
@media (max-width: 860px) { .mj-split { grid-template-columns: 1fr; } }
.mj-carousel { display: grid; grid-template-columns: 320fr 614fr 320fr; gap: 10px; height: clamp(300px, 28vw, 404px); }
.mj-shot { position: relative; overflow: hidden; border-radius: 30px; }
.mj-shot--l { clip-path: polygon(0 0, 68% 0, 100% 100%, 0 100%); border-radius: 30px 0 0 30px; }
.mj-shot--r { clip-path: polygon(0 0, 100% 0, 100% 100%, 36% 100%); border-radius: 0 30px 30px 0; }
.mj-shot__arrow { position: absolute; top: 30px; right: 30px; width: 66px; height: 66px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; font-size: 22px; }
@media (max-width: 760px) {
  .mj-carousel { grid-template-columns: 1fr 1fr; height: auto; }
  .mj-shot--c { grid-column: 1 / -1; order: -1; aspect-ratio: 3 / 2; border-radius: 24px; }
  .mj-shot--l, .mj-shot--r { aspect-ratio: 3 / 4; }
  .mj-shot__arrow { width: 52px; height: 52px; top: 16px; right: 16px; }
}

/* ---- stage: dark olive band ---- */
.mj-stage { background: var(--olive); color: #fff; margin: 0 20px; padding: clamp(56px, 5vw, 70px) 0 clamp(40px, 4vw, 60px); }
.mj-split--dark .mj-h2 { color: #fff; }
.mj-split--dark .mj-split__txt { color: rgba(255,255,255,.88); font-size: clamp(16px, 1.3vw, 19px); }
.mj-split--dark { margin-bottom: clamp(40px, 4.5vw, 64px); }
.mj-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .mj-grid { grid-template-columns: 1fr; } }
.mj-side { display: grid; gap: 14px; }
.mj-panel { background: var(--olive-2); border-radius: 24px; padding: 22px; border: 0; margin: 0; min-width: 0; }
.mj-label { font: 700 15px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #d9e7c4; }
legend.mj-label { float: left; width: 100%; margin-bottom: 12px; padding: 0; }
.mj-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mj-preset { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--olive-3); color: #fff; border-radius: 999px; padding: 10px 16px; font: 500 14.5px/1 "DM Sans", sans-serif; }
.mj-preset::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .55; }
.mj-preset[aria-pressed="true"] { background: #fff; color: var(--olive); }
.mj-preset[aria-pressed="true"]::before { opacity: 1; }
.mj-notes { display: block; width: 100%; margin-top: 14px; resize: vertical; min-height: 124px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(0,0,0,.18); color: #fff;
  padding: 12px 14px; font: 400 14.5px/1.5 "JetBrains Mono", monospace; }
.mj-notes:focus { outline: 2px solid #d9e7c4; outline-offset: 1px; }
.mj-hint { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.72); }
.mj-btn { margin-top: 14px; display: inline-flex; align-items: center; gap: 12px; border: 0; background: #fff; color: var(--olive); border-radius: 999px; padding: 6px 6px 6px 20px; font: 500 15.5px/1 "DM Sans", sans-serif; }
.mj-btn__dot { width: 36px; height: 36px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; font-size: 15px; }
.mj-btn:hover:not(:disabled) { background: #e9efe0; }
.mj-btn:disabled { opacity: .45; cursor: default; }
.mj-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mj-facts:empty { display: none; }
.mj-fact { font-size: 12.5px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 5px 10px; animation: mj-in .3s ease both; }
.mj-fact b { font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #d9e7c4; margin-right: 5px; }

.mj-opts[disabled] { opacity: .55; }
.mj-opts__q { clear: both; font-size: 13.5px; color: rgba(255,255,255,.8); margin-bottom: 8px; }
.mj-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: rgba(0,0,0,.2); border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.mj-seg button { border: 0; background: transparent; color: rgba(255,255,255,.85); border-radius: 999px; padding: 9px 4px; font-size: 13px; line-height: 1.2; }
.mj-seg button[aria-checked="true"] { background: #fff; color: var(--olive); }
.mj-seg button:disabled { cursor: default; }
.mj-toggle { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 14.5px; cursor: pointer; position: relative; }
.mj-toggle input { position: absolute; opacity: 0; width: 40px; height: 22px; margin: 0; cursor: pointer; }
.mj-toggle__ui { width: 40px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.18); position: relative; transition: background .2s; }
.mj-toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.mj-toggle input:checked + .mj-toggle__ui { background: #9cb57d; }
.mj-toggle input:checked + .mj-toggle__ui::after { transform: translateX(18px); }
.mj-toggle input:focus-visible + .mj-toggle__ui { outline: 2px solid #d9e7c4; outline-offset: 2px; }
.mj-toggle b { font: 500 12.5px/1 "JetBrains Mono", monospace; color: rgba(255,255,255,.75); }

.mj-logpanel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.mj-ghost { border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; border-radius: 999px; padding: 8px 14px; font: 500 13px/1 "DM Sans", sans-serif; }
.mj-ghost:hover:not(:disabled) { background: rgba(255,255,255,.1); }
.mj-ghost:disabled { opacity: .45; cursor: default; }
.mj-logbody { max-height: 320px; overflow-y: auto; }
.demo--proposal-drafting .rf-log { display: grid; }
.demo--proposal-drafting .rf-log__empty { color: rgba(255,255,255,.72); font-size: 14px; }
.demo--proposal-drafting .rf-log__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 13.5px; line-height: 1.45; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.demo--proposal-drafting .rf-log__item.is-in { opacity: 1; transform: none; }
.demo--proposal-drafting .rf-log__time { font: 400 12px/1.6 "JetBrains Mono", monospace; color: rgba(255,255,255,.6); }
.demo--proposal-drafting .rf-log__text { color: rgba(255,255,255,.9); }
.demo--proposal-drafting .rf-log__tag { grid-column: 2; justify-self: start; font-size: 11.5px; font-weight: 500; border-radius: 999px; padding: 3px 9px; background: rgba(255,255,255,.12); }
.demo--proposal-drafting .rf-log__item.is-done .rf-log__text::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9cb57d; margin-right: 7px; vertical-align: 1px; }
.demo--proposal-drafting .rf-log__item.is-hot .rf-log__text::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--star); margin-right: 7px; vertical-align: 1px; }

/* the document */
.mj-docwrap { min-width: 0; position: relative; }
.mj-docpill { position: absolute; top: -22px; left: 28px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; background: var(--olive-3); color: #fff; border-radius: 999px; padding: 14px 24px; font-size: 18px; font-weight: 500; }
.mj-docpill span { width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.mj-doc { position: relative; background: #fffdf8; color: var(--ink); border-radius: 24px; padding: clamp(40px, 4vw, 56px) clamp(20px, 4vw, 52px) clamp(28px, 3vw, 40px); min-height: 640px; }
.mj-doc__head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--olive); }
.mj-doc__brand { font: 700 clamp(30px, 3vw, 40px)/1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--olive); }
.mj-doc__addr { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.mj-doc__ref { text-align: right; font: 400 13px/1.5 "JetBrains Mono", monospace; color: var(--muted); }
.mj-doc__ref .mj-label { color: var(--sage); }
.mj-doc__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 440px; color: var(--muted); text-align: center; }
.mj-doc__empty svg { width: 120px; color: var(--sage); }
.mj-sec { padding: 22px 0 4px; animation: mj-in .45s ease both; }
.mj-sec + .mj-sec { border-top: 1px solid var(--line); margin-top: 16px; }
.mj-sec .mj-label { color: var(--sage); }
.mj-sec__h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.mj-sec__n { font: 700 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; color: var(--sage); }
.mj-sec__h h3 { font: 700 clamp(24px, 2.2vw, 30px)/1.05 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--olive); }
.mj-sec .mj-for { margin-top: 4px; font: 700 clamp(30px, 3vw, 40px)/1.05 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--olive); }
.mj-for em { color: var(--sage); }
.mj-sec .mj-for__sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.mj-sec p, .mj-sec li { font-size: 15px; }
.mj-list { display: flex; flex-direction: column; gap: 4px; }
.mj-list li { padding-left: 18px; position: relative; }
.mj-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.mj-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.mj-table th { text-align: left; font: 700 13px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); padding: 6px 0; border-bottom: 1px solid var(--olive); }
.mj-table td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mj-table td small { display: block; font-size: 12.5px; color: var(--muted); }
.mj-table .num { text-align: right; white-space: nowrap; font-family: "JetBrains Mono", monospace; font-size: 13.5px; padding-left: 12px; }
.mj-table tfoot td { border-bottom: 0; padding-top: 6px; }
.mj-table tfoot tr:last-child td { font: 700 26px/1.2 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--olive); border-top: 2px solid var(--olive); padding-top: 10px; }
.is-flash { animation: mj-flash 1.2s ease; }
@keyframes mj-flash { 0%, 40% { background: #e4ecd6; } }
@keyframes mj-in { from { opacity: 0; transform: translateY(6px); } }
.mj-time { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.mj-time li { border-left: 3px solid var(--sage); padding: 2px 0 2px 12px; }
.mj-time b { display: block; font: 700 13px/1.4 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.mj-sec .mj-ok { margin-top: 10px; font-size: 14px; color: #3d5a2a; font-weight: 600; }
.mj-sec .mj-ok.is-warn { color: var(--warn); }
.mj-sec .mj-note { font-size: 16px; line-height: 1.6; color: var(--ink); }
.mj-sec .mj-sign { margin-top: 10px; font: 700 24px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--olive); }
.mj-stamp { position: absolute; right: clamp(16px, 4vw, 40px); top: 130px; transform: rotate(-8deg); border: 3px solid var(--olive); color: var(--olive); border-radius: 999px;
  padding: 8px 18px; font: 700 20px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,253,248,.9); }
.mj-send { margin-top: 14px; display: flex; justify-content: flex-end; }
.mj-btn--light { margin-top: 0; }
@media (max-width: 560px) { .mj-doc__ref { text-align: left; } .mj-stamp { top: 170px; } .mj-docpill { left: 16px; font-size: 15px; padding: 11px 18px; top: -18px; } }

/* stats row, as in Zenvira */
.mj-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(56px, 6vw, 90px) 0 0; }
.mj-stats div { text-align: center; padding: 0 12px; position: relative; }
.mj-stats div + div::before { content: ""; position: absolute; left: 0; top: 50%; height: 24px; width: 1px; background: rgba(255,255,255,.35); }
.mj-stats dd { order: -1; margin: 0; font: 700 clamp(44px, 5vw, 72px)/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; }
.mj-stats div { display: flex; flex-direction: column-reverse; gap: 12px; }
.mj-stats dt { font-size: 17px; }
@media (max-width: 760px) { .mj-stats { grid-template-columns: 1fr 1fr; gap: 28px 0; } .mj-stats div:nth-child(3)::before { display: none; } .mj-stats dt { font-size: 14px; } }

/* ---- how: photo cards ---- */
.mj-how { padding: clamp(80px, 9vw, 150px) 0 clamp(80px, 8vw, 130px); }
.mj-how__sub { text-align: center; margin: 16px auto 0; max-width: 40ch; font-size: 18px; color: var(--ink-2); }
.mj-how__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; margin-top: clamp(40px, 5vw, 80px); }
.mj-card { position: relative; border-radius: 30px; overflow: hidden; min-height: 520px; isolation: isolate; color: #fff; display: flex; align-items: flex-end; }
.mj-card img { position: absolute; inset: 0; z-index: -2; }
.mj-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(15,22,12,.82)); }
.mj-card__txt { padding: 26px; }
.mj-card__n { font: 700 18px/1 "Barlow Condensed", sans-serif; letter-spacing: .12em; opacity: .85; }
.mj-card h3 { margin-top: 8px; font: 700 clamp(32px, 3vw, 44px)/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.mj-card p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.9); }
.mj-card--notch { border-top-right-radius: 0; }
.mj-card--notch::before { content: ""; position: absolute; top: 0; right: 0; width: 104px; height: 104px; background: var(--cream); border-bottom-left-radius: 36px; z-index: 1; }
.mj-card__arrow { position: absolute; top: 0; right: 0; z-index: 2; width: 82px; height: 82px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; font-size: 24px; }
@media (max-width: 960px) { .mj-how__grid { grid-template-columns: 1fr; } .mj-card { min-height: 400px; } }

@media (prefers-reduced-motion: reduce) {
  .demo--proposal-drafting *, .demo--proposal-drafting *::before { animation: none !important; transition: none !important; }
  .demo--proposal-drafting .rf-log__item { opacity: 1; transform: none; }
}
@media (max-width: 600px) { .mj-stage { margin: 0 8px; } .mj-h2--c br { display: none; } .mj-panel { padding: 18px; } }
