/* Client pages: a clean proposal sheet. */
:root {
  --paper: #F3F6FA; --sheet: #FFFFFF; --ink: #0B1B35; --graphite: #4A5A6A; --line: #D6DEE8;
  --signal: #1A5DBA; --signal-soft: #E3EDFA; --warn-soft: #FBF1D9;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0A1426; --sheet: #12203A; --ink: #E8EEF7; --graphite: #9AA9BC; --line: #22324F;
    --signal: #4C9BEF; --signal-soft: #13305A; --warn-soft: #3A3018; color-scheme: dark; }
  .studio img { background: #fff; padding: 6px 10px; border-radius: 10px; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); font-feature-settings: "tnum" 1; }
.sheet { max-width: 780px; margin: 40px auto; background: var(--sheet); border-radius: 18px; padding: 48px 56px; }
.sheet.narrow { max-width: 540px; margin-top: 12vh; }
h1, h2 { font-family: var(--display); letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
h1 { font-size: 36px; font-weight: 750; }
h2 { font-size: 19px; font-weight: 650; margin: 38px 0 12px; }
a { color: inherit; text-underline-offset: 3px; }
.studio { font-weight: 700; margin: 0 0 30px; color: var(--graphite); min-height: 24px; }
.studio-name { font: 750 22px/1.1 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.studio img { max-height: 46px; max-width: 260px; display: block; }
.lede { font-size: 17px; color: var(--graphite); max-width: 62ch; margin: 14px 0 0; }
.meta { display: flex; gap: 8px 26px; flex-wrap: wrap; margin-top: 14px; color: var(--graphite); font-size: 14px; }
.meta a { color: var(--signal); font-weight: 600; }

.price { display: flex; align-items: flex-end; gap: 10px 22px; flex-wrap: wrap; margin: 34px 0 0;
  padding: 26px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.price .total { font: 800 66px/0.9 var(--display); letter-spacing: -0.03em; }
.price .split { color: var(--graphite); font-size: 15px; padding-bottom: 4px; }

table { width: 100%; border-collapse: collapse; }
td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.amt { text-align: right; white-space: nowrap; padding-left: 16px; font-weight: 600; }
td .detail { display: block; font-size: 14px; color: var(--graphite); }
tr.sum td { border-bottom: 0; font-weight: 700; font-size: 18px; padding-top: 16px; }

/* payment schedule: a segmented bar of real proportions */
.schedule { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; }
.schedule li { flex-basis: 0; display: grid; gap: 2px; padding: 14px 16px; background: var(--paper); font-size: 14px; }
.schedule li:first-child { background: var(--signal-soft); border-radius: 10px 0 0 10px; }
.schedule li:last-child { border-radius: 0 10px 10px 0; }
.schedule li:only-child { border-radius: 10px; }
.schedule .when { font-weight: 600; }
.schedule .pct { color: var(--graphite); font-size: 13px; }
.schedule b { font: 700 20px/1.2 var(--display); }
.schedule li:nth-child(1) { flex-grow: 3; } .schedule li:nth-child(2) { flex-grow: 4; } .schedule li:nth-child(3) { flex-grow: 3; }

.included { columns: 2; column-gap: 32px; padding-left: 18px; margin: 0; }
.included li { margin-bottom: 6px; break-inside: avoid; }
.terms summary { list-style: none; cursor: pointer; }
.terms summary::-webkit-details-marker { display: none; }
.terms summary h2::after { content: " +"; color: var(--graphite); font-weight: 400; }
.terms[open] summary h2::after { content: " −"; }
.terms-text { font-size: 14.5px; color: var(--graphite); max-height: 360px; overflow-y: auto; padding: 4px 16px 4px 0; border-left: 3px solid var(--line); padding-left: 16px; }
.terms-text p { margin: 0 0 10px; }

.cta { margin-top: 40px; padding: 28px; border-radius: 14px; background: var(--signal-soft); }
.cta p { margin: 0 0 16px; }
.accept { display: grid; gap: 14px; }
.accept label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.accept .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.accept .agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--signal); flex: none; }
.accept input[type=text], .accept input[type=email] { font: 16px/1.4 var(--body); padding: 12px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--sheet); color: var(--ink); width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
button.pay { font: 700 17px/1 var(--body); background: linear-gradient(115deg, #0B1B35 0%, #0E4FA1 100%); color: var(--sheet); border: 0;
  border-radius: 10px; padding: 18px 24px; cursor: pointer; width: 100%; }
button.pay:hover { opacity: .92; }
button.pay:focus-visible, input:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.fine { font-size: 13px; color: var(--graphite); margin: 12px 0 0; }
.foot { margin-top: 44px; }
.notice { padding: 18px 20px; border-radius: 12px; background: var(--paper); margin-top: 30px; }
.notice.warn { background: var(--warn-soft); margin: 0 0 20px; }
.paid { color: var(--signal); font-weight: 700; }
.btn-link { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--signal); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 30px 0 6px; }
.plan { background: var(--paper); border-radius: 14px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.plan.featured { background: var(--signal-soft); }
.plan h2 { margin: 0; }
.plan p { margin: 0; color: var(--graphite); font-size: 15px; }
.plan-price { font: 800 40px/1 var(--display); letter-spacing: -0.02em; }
.plan-price small { font: 500 15px var(--body); color: var(--graphite); }
.plan .pay { margin-top: 8px; }
button.pay.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.progress { list-style: none; padding: 0; margin: 30px 0 0; display: flex; gap: 4px; }
.progress li { flex: 1; padding: 12px 10px; background: var(--paper); font-size: 14px; font-weight: 600; color: var(--graphite); }
.progress li:first-child { border-radius: 10px 0 0 10px; }
.progress li:last-child { border-radius: 0 10px 10px 0; }
.progress li.done { background: var(--signal-soft); color: var(--signal); }
.progress li.on { background: var(--ink); color: var(--sheet); }
.update { padding: 14px 0; border-bottom: 1px solid var(--line); }
.hp { position: absolute; left: -5000px; }

@media (max-width: 640px) {
  .progress { flex-direction: column; }
  .progress li, .progress li:first-child, .progress li:last-child { border-radius: 8px; }
  .sheet { margin: 0; border-radius: 0; padding: 30px 20px; min-height: 100vh; }
  .sheet.narrow { margin-top: 0; }
  h1 { font-size: 29px; }
  .price .total { font-size: 50px; }
  .included { columns: 1; }
  .two { grid-template-columns: 1fr; }
  .schedule { flex-direction: column; }
  .schedule li, .schedule li:first-child, .schedule li:last-child { border-radius: 10px; }
  .cta { padding: 20px; margin-left: -4px; margin-right: -4px; }
}
.approve-box { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: start; margin-top: 14px; }
.approve-box details summary { cursor: pointer; font-weight: 700; padding: 16px 0; color: var(--signal); }
.approve-box textarea { font: 16px/1.4 var(--body); padding: 12px; border: 1px solid var(--line); border-radius: 9px; width: 100%;
  background: var(--sheet); color: var(--ink); }
@media (max-width: 640px) { .approve-box { grid-template-columns: 1fr; } }

/* "Owner only" and similar app messages: a way back without closing the app */
.back-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--ink); color: var(--sheet); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.back-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.back-btn:hover { filter: brightness(1.08); }

/* savings estimate on a proposal */
.savings { border: 1px solid var(--line, #D6DEE8); border-radius: 14px; padding: 18px; margin: 8px 0 26px; }
.sv-big { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 12px; background: #12271E; color: #fff; }
.sv-big span { font-size: 13px; opacity: .8; font-weight: 600; }
.sv-big b { font-size: 40px; line-height: 1.1; letter-spacing: -.01em; color: #7BE0A8; font-variant-numeric: tabular-nums; }
.sv-big em { font-style: normal; font-size: 14px; opacity: .85; }
.sv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.sv-row div { background: var(--paper, #F3F6FA); border-radius: 10px; padding: 10px 12px; }
.sv-row span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; opacity: .7; }
.sv-row b { display: block; margin-top: 3px; font-size: 16px; font-variant-numeric: tabular-nums; }
.sv-table { margin-top: 14px; }
@media (max-width: 600px) { .sv-row { grid-template-columns: 1fr; } .sv-big b { font-size: 34px; } }

.kind { display: inline-block; font-size: 13px; padding: 5px 12px; border-radius: 99px; background: var(--warn-soft, #FBF1D9); margin: 0 0 12px; }
.kind.engineered { background: var(--signal-soft, #E3EDFA); }

.why-wrap { overflow-x: auto; margin: 8px 0 18px; }
.why { width: 100%; border-collapse: collapse; font-size: 14px; }
.why th, .why td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid #e3e8e5; }
.why thead th { background: #10673A; color: #fff; font-weight: 600; }
.why tbody th { width: 22%; font-weight: 600; }
.why tbody td:nth-child(2) { background: #f1f8f3; }
.whois{border:1px solid var(--line,#ddd);border-radius:12px;padding:12px 14px;margin:18px 0;font-size:14px}
.whois span{color:#666}
.whois div{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.whois input{flex:1 1 160px;padding:8px 10px;border:1px solid #ccc;border-radius:8px;font:inherit}
.whois button{padding:8px 14px;border:0;border-radius:8px;background:var(--signal,#1a7f37);color:#fff;font-weight:600;cursor:pointer}
