:root {
    --dusk-sky:#072B5E; --twilight-sky:#00449D; --bright-sky:#007BDD;
    --pink-haze:#F7598C; --surface:#FFFFFF; --canvas:#FAF8F5; --hairline:#E8E2D8;
    --sky-mist:#EBF2FA; --ink-mute:#8B97A8; --ink-soft:#3F526E; --ink:#0A1F44; --storm-gray:#333333;
    --success:#1B605D; --success-bg:#e7f0ef;
    --font-display:'Marcellus','Optima','Optima Nova',Georgia,serif;
    --font-sans:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
    --check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230A1F44' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230A1F44' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 88px); }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { margin:0; background:var(--canvas); color:var(--storm-gray); font-family:var(--font-sans); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; padding-bottom:env(safe-area-inset-bottom, 0px); }
  a { color:var(--twilight-sky); } a:hover { color:var(--bright-sky); }
  :focus-visible { outline:2px solid var(--twilight-sky); outline-offset:2px; border-radius:4px; }
  img { max-width:100%; }
  .kicker { font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-mute); }

  /* Header */
  .p-header { position:sticky; top:0; z-index:20; background:rgba(250,248,245,.86); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid var(--hairline); padding-top:env(safe-area-inset-top, 0px); }
  .p-header__in { max-width:1200px; margin:0 auto; padding:14px 32px; display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
  .p-header__logo { height:26px; width:auto; display:block; }
  .p-header__rule { width:1px; height:22px; background:var(--hairline); }
  .p-header__for { font-size:14px; color:var(--ink-soft); flex:1 1 200px; min-width:0; }
  .p-header__for strong { color:var(--ink); font-weight:500; }
  .p-header__actions { display:flex; align-items:center; gap:16px; }
  .p-header__link { font-size:14px; font-weight:500; color:var(--twilight-sky); text-decoration:none; }
  .p-progress { height:2px; } .p-progress span { display:block; height:2px; width:0; background:var(--twilight-sky); transition:width .2s linear; }

  .btn { display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 22px; border:0; border-radius:999px; background:var(--ink); color:#fff; font:500 14px var(--font-sans); cursor:pointer; text-decoration:none; transition:background .18s; }
  .btn:hover { background:var(--pink-haze); color:#fff; }
  .btn--sm { height:36px; padding:0 16px; font-size:13px; }
  .btn:disabled { background:var(--hairline); color:var(--ink-mute); cursor:not-allowed; }

  /* Cover */
  .cover { max-width:1200px; margin:0 auto; padding:72px 32px 32px; display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap:48px; align-items:end; }
  .cover__text { display:flex; flex-direction:column; gap:24px; }
  .cover h1 { font-family:var(--font-display); font-weight:400; font-size:clamp(44px, 6vw, 72px); line-height:1.04; letter-spacing:-0.02em; color:var(--ink); margin:0; }
  .cover h1 span { color:var(--pink-haze); }
  .cover__meta { display:grid; grid-template-columns:auto 1fr; gap:8px 24px; font-size:15px; border-top:1px solid var(--hairline); padding-top:20px; max-width:480px; }
  .cover__meta dt { color:var(--ink-mute); } .cover__meta dd { margin:0; color:var(--ink); }
  .cover__meta dd small { display:block; font-size:15px; color:var(--ink-soft); }
  .cover__meta dd { min-width:0; overflow-wrap:anywhere; } /* long client emails wrap on phones */
  .cover__photo { border-radius:20px; overflow:hidden; aspect-ratio:4/3; background:var(--sky-mist); }
  .cover__photo img { width:100%; height:100%; object-fit:cover; display:block; }
  /* Hero: a mock-up of the CloudCFO WebApp financial dashboard (built by the script below, with the client's company name). Not printed. */
  .cover__photo.is-app { aspect-ratio:auto; overflow:visible; background:none; border-radius:0; }
  .pwa { display:grid; grid-template-columns:58px minmax(0,1fr); background:#F7F5F1; border:1px solid #E2DDD4; border-radius:16px; overflow:hidden; box-shadow:0 2px 4px rgba(7,43,94,.04), 0 34px 70px -36px rgba(7,43,94,.5); font-size:12px; color:var(--ink); }
  .pwa-side { background:linear-gradient(180deg,#0F2D63 0%,#0A2150 100%); display:flex; flex-direction:column; align-items:center; padding:12px 0 10px; color:rgba(255,255,255,.82); }
  .pwa-logo-mk { width:30px; height:24px; background:url(https://cdn.prod.website-files.com/6a9106350d6a83d2f4afe852/6af4030658f7c2b3c9146dd7_proposal-lockup-white.png) left center / auto 24px no-repeat; margin-bottom:12px; }
  .pwa-nav { display:flex; flex-direction:column; align-items:center; gap:2px; width:100%; }
  .pwa-nav span { display:flex; flex-direction:column; align-items:center; gap:3px; padding:7px 0; width:100%; font-size:8px; font-weight:600; letter-spacing:.01em; }
  .pwa-nav svg { display:block; opacity:.9; }
  .pwa-side-end { margin-top:auto; width:100%; display:flex; flex-direction:column; align-items:center; gap:8px; }
  .pwa-side-end hr { width:60%; border:0; border-top:1px solid rgba(255,255,255,.18); margin:6px 0 2px; }
  .pwa-side-end span { display:flex; flex-direction:column; align-items:center; gap:3px; font-size:8px; font-weight:600; }
  .pwa-av { line-height:1; width:26px; height:26px; border-radius:50%; background:#2A4A80; border:1.5px solid rgba(255,255,255,.35); display:grid; place-items:center; font-size:9px; font-weight:700; color:#fff; }
  .pwa-main { min-width:0; display:flex; flex-direction:column; }
  .pwa-top { background:#fff; border-bottom:1px solid #E8E4DC; }
  .pwa-head { display:flex; align-items:center; gap:9px; padding:12px 16px 0; }
  .pwa-co-ic { width:28px; height:28px; border-radius:8px; background:#EAF1FB; border:1px solid #D6E3F5; display:grid; place-items:center; color:#1E4FA3; flex:none; }
  .pwa-co { font-size:14.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:-.01em; }
  .pwa-live { flex:none; font-size:9.5px; font-weight:600; color:#1B605D; background:#E3F1EC; border-radius:999px; padding:2px 8px; }
  .pwa-fb { margin-left:auto; flex:none; display:inline-flex; align-items:center; gap:5px; font-size:10px; font-weight:600; color:#1E4FA3; border:1px solid #1E4FA3; border-radius:999px; padding:4px 10px; white-space:nowrap; }
  .pwa-tabs { display:flex; gap:16px; padding:11px 16px 0; font-size:11.5px; color:#4A5A72; white-space:nowrap; overflow:hidden; }
  .pwa-tabs span { display:inline-flex; align-items:center; gap:5px; padding:0 0 9px; } .pwa-tabs .on { color:#1E4FA3; font-weight:600; box-shadow:inset 0 -2px 0 #1E4FA3; }
  .pwa-body { padding:16px 18px 18px; display:flex; flex-direction:column; gap:12px; }
  .pwa-row { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
  .pwa-h { font-family:Georgia,'Times New Roman',serif; font-weight:700; font-size:18px; letter-spacing:-.01em; color:#0A1F44; }
  .pwa-chip { font-size:9.5px; color:#4A5A72; background:#fff; border:1px solid #E2DDD4; border-radius:999px; padding:3px 9px; white-space:nowrap; }
  .pwa-kpis { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; }
  .pwa-kpi { background:#E8F0FA; border-radius:9px; padding:10px 11px 9px; min-width:0; }
  .pwa-kpi small { display:block; font-size:8px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:#6B7A90; white-space:nowrap; }
  .pwa-kpi b { display:block; font-size:20px; font-weight:600; line-height:1.2; margin-top:5px; color:#0A1F44; letter-spacing:-.01em; }
  .pwa-kpi span { display:block; font-size:9px; color:#6B7A90; white-space:nowrap; margin-top:2px; }
  .pwa-chart { border:1px solid #E2DDD4; background:#fff; border-radius:11px; padding:11px 13px 9px; }
  .pwa-chart small { display:block; font-size:8px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:#6B7A90; }
  .pwa-chart b { display:block; font-size:12.5px; font-weight:600; margin:3px 0 4px; color:#0A1F44; }
  .pwa-chart svg { display:block; width:100%; height:auto; }
  .pwa-legend { display:flex; justify-content:center; gap:12px; font-size:9px; color:#4A5A72; margin-top:2px; }
  .pwa-legend i { display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:4px; vertical-align:-1px; }
  .pwa-legend em { font-style:normal; letter-spacing:-1px; margin-right:4px; }
  .pwa-side-end .pwa-av { display:grid; place-items:center; gap:0; font-size:9px; }
  .pwa-note { text-align:right; font-size:11px; color:var(--ink-mute); margin:8px 0 0; }
  @media (max-width: 560px) { .pwa { grid-template-columns:44px minmax(0,1fr); } .pwa-h { font-size:15px; } .pwa-side-end .pwa-av { font-size:8px; } .pwa-nav span, .pwa-side-end span { font-size:0; gap:0; } .pwa-side-end hr { display:none; } .pwa-fb { display:none; } .pwa-kpis { grid-template-columns:1fr 1fr; } .pwa-kpi:nth-child(3) { display:none; } .pwa-legend { flex-wrap:wrap; gap:4px 10px; } }

  /* Layout */
  .layout { max-width:1200px; margin:0 auto; padding:48px 32px 120px; display:flex; gap:64px; align-items:flex-start; flex-wrap:wrap; }
  .rail { flex:0 0 200px; position:sticky; top:96px; display:flex; flex-direction:column; gap:2px; }
  .rail a { display:flex; gap:12px; padding:7px 0; font-size:14px; line-height:1.35; text-decoration:none; color:var(--ink-mute); transition:color .18s; }
  .rail a.is-active { color:var(--ink); font-weight:600; }
  .rail a span:first-child { font-variant-numeric:tabular-nums; width:20px; flex:none; color:var(--ink-mute); font-weight:400; }
  @media (max-width: 900px) { .rail { display:none; } }
  main { flex:1 1 560px; min-width:0; max-width:820px; display:flex; flex-direction:column; gap:96px; }
  .sec { display:flex; flex-direction:column; gap:24px; }
  .sec__head { display:flex; flex-direction:column; gap:8px; }
  .sec h2 { margin:0; font-size:36px; line-height:1.15; font-weight:600; letter-spacing:-0.02em; color:var(--ink); }
  .sec p { margin:0; }
  .sec[hidden] { display:none; }

  .letter { font-size:17px; line-height:1.7; gap:16px; }
  .letter p:first-child { color:var(--ink); font-weight:500; }

  .objectives { list-style:none; margin:0; padding:0; background:var(--surface); border:1px solid var(--hairline); border-radius:12px; counter-reset:obj; }
  .objectives li { display:flex; gap:20px; align-items:baseline; padding:20px 24px; border-top:1px solid var(--hairline); color:var(--ink); counter-increment:obj; }
  .objectives li:first-child { border-top:0; }
  .objectives li::before { content:counter(obj, decimal-leading-zero); font-size:13px; font-weight:600; color:var(--ink-mute); font-variant-numeric:tabular-nums; flex:none; }
  .objectives li.is-empty { display:none; }

  .stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap:1px; background:var(--hairline); border:1px solid var(--hairline); border-radius:12px; overflow:hidden; }
  .stats div { background:var(--surface); padding:20px 24px; font-size:13px; color:var(--ink-soft); }
  .stats b { display:block; font-size:32px; font-weight:600; color:var(--ink); letter-spacing:-0.02em; }
  .photo-wide { border-radius:20px; overflow:hidden; aspect-ratio:2048/825; background:var(--sky-mist); }
  .photo-wide img { width:100%; height:100%; object-fit:cover; display:block; }
  .trusted img { width:100%; height:auto; display:block; mix-blend-mode:multiply; }

  .panel { background:var(--twilight-sky); border-radius:20px; padding:48px; color:#fff; display:flex; flex-direction:column; gap:32px; }
  .panel h3 { margin:0; font-size:28px; line-height:1.25; font-weight:600; color:#fff; }
  .panel__grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap:32px; }
  .panel__grid > div { display:flex; flex-direction:column; gap:12px; font-size:14px; line-height:1.6; }
  .panel__grid b { font-weight:600; font-size:17px; }
  @media (max-width: 560px) { .panel { padding:32px 24px; } }

  .rows { border-top:1px solid var(--hairline); }
  .row { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap:16px 40px; padding:28px 0; border-bottom:1px solid var(--hairline); font-size:15px; }
  .row__title { display:flex; flex-direction:column; gap:12px; }
  .row__title h4 { margin:0; font-size:18px; font-weight:600; color:var(--ink); display:flex; gap:12px; align-items:flex-start; }
  .row__title svg { flex:none; margin-top:3px; }
  .row ul { margin:0; padding-left:18px; display:flex; flex-direction:column; gap:8px; }
  .row__body { display:flex; flex-direction:column; gap:12px; }
  .big-stat { padding-left:32px; font-size:13px; color:var(--ink-soft); }
  .big-stat b { display:block; font-size:32px; font-weight:600; color:var(--ink); letter-spacing:-0.02em; font-variant-numeric:tabular-nums; }

  .steps { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap:16px; list-style:none; margin:0; padding:0; counter-reset:step; }
  .steps li { background:var(--surface); border:1px solid var(--hairline); border-radius:12px; padding:24px; display:flex; flex-direction:column; gap:16px; font-size:15px; color:var(--ink); counter-increment:step; }
  .steps li::before { content:counter(step); font-family:var(--font-display); font-size:40px; line-height:1; color:var(--pink-haze); }

  .signoff { display:flex; flex-direction:column; gap:2px; color:var(--ink-soft); }
  .signoff b { font-family:var(--font-display); font-weight:400; font-size:28px; color:var(--ink); margin-top:8px; }
  .signoff small { font-size:14px; }
  .accept { background:var(--surface); border:1px solid var(--hairline); border-radius:20px; padding:40px; display:flex; flex-direction:column; gap:24px; margin-top:16px; }
  .accept__head { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
  .accept h3 { margin:0; font-size:24px; font-weight:600; color:var(--ink); }
  .badge { font-size:12px; font-weight:600; padding:4px 10px; border-radius:999px; background:var(--success-bg); color:var(--success); }
  .fields { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap:16px; }
  .fields label { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:500; color:var(--ink); }
  .fields input { height:44px; padding:0 14px; border:1px solid var(--hairline); border-radius:8px; background:var(--sky-mist); font:15px var(--font-sans); color:var(--ink); }
  .fields input:focus { outline:2px solid var(--twilight-sky); outline-offset:0; background:#fff; }
  .accept__actions { display:flex; align-items:center; gap:20px; flex-wrap:wrap; font-size:14px; font-weight:500; }
  .accepted-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap:16px; border-top:1px solid var(--hairline); padding-top:24px; }
  .accepted-grid small { display:block; font-size:12px; color:var(--ink-mute); }
  .accepted-grid div { color:var(--ink); }
  .accepted-grid .sig { font-family:var(--font-display); font-size:22px; }
  .accepted-grid .sig img { display:block; height:56px; width:auto; max-width:100%; }
  .accept__note { font-size:13px; color:var(--ink-mute); border-top:1px solid var(--hairline); padding-top:16px; }
  /* SignNow: the signing page opens in a pop-up over the proposal */
  .sn-modal { position:fixed; inset:0; z-index:2147483000; background:rgba(10,31,68,.55); display:flex; align-items:center; justify-content:center; padding:16px; }
  .sn-box { background:#fff; border-radius:20px; width:min(1000px, 100%); height:min(860px, calc(100vh - 32px)); display:flex; flex-direction:column; overflow:hidden; box-shadow:0 30px 80px -30px rgba(7,43,94,.6); }
  .sn-top { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 18px 14px 24px; border-bottom:1px solid var(--hairline); }
  .sn-top b { font-size:16px; font-weight:600; color:var(--ink); }
  .sn-x { width:36px; height:36px; border-radius:999px; border:1px solid var(--hairline); background:#fff; font-size:22px; line-height:1; color:var(--ink); cursor:pointer; }
  .sn-body { flex:1; display:flex; align-items:center; justify-content:center; background:var(--sky-mist); }
  .sn-body iframe { width:100%; height:100%; border:0; background:#fff; }
  .sn-hint { margin:14px 0 0; font-size:13px; color:var(--ink-mute); }
  @media print { .sn-hint { display:none; } }
  .sn-wait { font-size:15px; color:var(--ink-soft); padding:24px; text-align:center; max-width:46ch; }
  @media (max-width:640px) { .sn-modal { padding:0; } .sn-box { border-radius:0; height:100vh; } }

  .p-footer { background:var(--dusk-sky); color:#fff; }
  .p-footer__in { max-width:1200px; margin:0 auto; padding:40px 32px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; font-size:13px; }
  .p-footer img { height:24px; width:auto; display:block; }
  @media (max-width: 640px) { .p-header__in { flex-wrap:nowrap; justify-content:space-between; gap:12px; } .p-header__rule, .p-header__for, .p-header__link { display:none; } }
  @media (max-width: 560px) { .p-header__in, .cover, .layout, .p-footer__in { padding-left:20px; padding-right:20px; } .accept { padding:24px; } .sec h2 { font-size:30px; } }

  /* ===== Content slots: HTML converted from Notion (rules in README.md) ===== */
  .slot { display:flex; flex-direction:column; gap:32px; font-size:15px; }
  .slot p { margin:0; }
  .slot ul, .slot ol { margin:0; padding-left:18px; display:flex; flex-direction:column; gap:8px; }
  .slot li > ul, .slot li > ol { margin-top:8px; gap:4px; }
  .slot strong { color:var(--ink); font-weight:600; }
  .slot .sub { display:flex; flex-direction:column; gap:16px; }
  .slot .sub > h3 { margin:0; font-size:20px; font-weight:500; color:var(--ink); }
  .slot .sub-body, .slot .card-body { display:flex; flex-direction:column; gap:12px; }
  .slot .card { background:var(--surface); border:1px solid var(--hairline); border-radius:12px; padding:24px; display:flex; flex-direction:column; gap:12px; }
  .slot .card > h4 { margin:0; font-weight:600; color:var(--ink); font-size:17px; }
  .slot .table-wrap { overflow-x:auto; border:1px solid var(--hairline); border-radius:12px; background:var(--surface); }
  .slot table { width:100%; border-collapse:collapse; font-size:14px; }
  .slot td, .slot th { padding:14px 20px; text-align:left; vertical-align:top; border-top:1px solid var(--hairline); }
  .slot tr:first-child td, .slot thead th { border-top:0; }
  .slot thead th { background:var(--sky-mist); font-size:13px; font-weight:600; color:var(--ink); }

  /* Scope: lists become checklists inside cards */
  .slot--scope .sub-body > ul, .slot--scope .card-body > ul { list-style:none; padding-left:0; }
  .slot--scope .sub-body > ul > li, .slot--scope .card-body > ul > li { padding-left:28px; background:var(--check) no-repeat 0 5px; }
  .slot--scope .sub-body > ul { background:var(--surface); border:1px solid var(--hairline); border-radius:12px; padding:24px; }
  .slot--scope .card .table-wrap { border-radius:8px; }
  .slot--scope .card td:first-child { width:38%; color:var(--ink); font-weight:600; }

  /* Fees: fee tables + label/body rows */
  .slot--fees { gap:0; }
  .slot--fees .sub { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap:12px 40px; padding:24px 0; border-bottom:1px solid var(--hairline); }
  .slot--fees .sub > h3 { font-size:17px; font-weight:600; }
  .slot--fees .sub:has(table) { display:flex; flex-direction:column; gap:16px; padding-top:0; }
  .slot--fees .sub:has(table) > h3 { font-size:20px; font-weight:500; }
  .slot--fees .sub:has(table) .sub-body { gap:16px; }
  .slot--fees .card { background:none; border:0; padding:0; gap:6px; }
  .slot--fees .card > h4 { font-size:15px; font-weight:500; }
  .slot--fees td:last-child, .slot--fees th:last-child { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; color:var(--ink); }
  .slot--fees table thead th { background:var(--sky-mist); }
  .slot--fees td em { display:block; font-size:13px; color:var(--ink-soft); }
  .fees-note { font-size:13px; color:var(--ink-soft); padding-top:16px; }
  .slot--plain { font-size:16px; gap:16px; }
  .stats b { white-space:nowrap; }
  .terms-toggle small { white-space:nowrap; }

  /* Phones */
  @media (max-width: 560px) {
    .stats { grid-template-columns:1fr 1fr; }
    .stats div:last-child:nth-child(odd) { grid-column:1 / -1; }
    .stats b { font-size:26px; }
    .trusted { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .trusted img { width:640px; max-width:none; }
    /* Two-column tables inside cards (e.g. tax filings): label above its details */
    .slot--scope .card table, .slot--scope .card tbody, .slot--scope .card tr, .slot--scope .card td { display:block; width:auto !important; }
    .slot--scope .card td:first-child { padding-bottom:4px; }
    .slot--scope .card td + td { border-top:0; padding-top:0; }
    .slot td, .slot th { padding:12px 14px; }
    .slot--fees th:last-child { white-space:normal; }
    .accept__actions a, .terms-all { display:inline-block; padding-top:8px; padding-bottom:8px; }
  }

  /* FAQ: Notion toggles */
  .slot--faq { gap:0; background:var(--surface); border:1px solid var(--hairline); border-radius:12px; }
  .slot--faq details { border-top:1px solid var(--hairline); }
  .slot--faq details:first-child { border-top:0; }
  .slot--faq summary { list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px 24px; font-size:16px; font-weight:500; color:var(--ink); }
  .slot--faq summary::-webkit-details-marker { display:none; }
  .slot--faq summary strong { font-weight:500; }
  .slot--faq summary::after { content:""; flex:none; width:20px; height:20px; background:var(--chev) no-repeat center; transition:transform .25s; }
  .slot--faq details[open] summary::after { transform:rotate(180deg); }
  .slot--faq details > :not(summary) { padding:0 24px 22px; color:var(--ink-soft); max-width:68ch; }

  /* Special conditions */
  .slot--special { background:var(--sky-mist); border-radius:12px; padding:24px; gap:12px; }

  /* Terms of Business: each numbered section collapses (script adds the toggles) */
  .slot--terms { gap:0; border-top:1px solid var(--hairline); }
  .slot--terms .card { background:none; border:0; border-radius:0; padding:0; gap:0; border-bottom:1px solid var(--hairline); }
  .slot--terms .card > h4 { margin:0; }
  .terms-toggle { all:unset; box-sizing:border-box; cursor:pointer; width:100%; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 0; font-size:16px; font-weight:600; color:var(--ink); }
  .terms-toggle:focus-visible { outline:2px solid var(--twilight-sky); }
  .terms-toggle small { display:flex; align-items:center; gap:12px; font-size:13px; color:var(--ink-mute); font-weight:400; }
  .terms-toggle small::after { content:""; width:18px; height:18px; background:var(--chev) no-repeat center / 18px; transition:transform .25s; }
  .card.is-open .terms-toggle small::after { transform:rotate(180deg); }
  .slot--terms .card-body { display:none; padding:0 0 24px; gap:14px; font-size:14px; }
  .slot--terms .card.is-open .card-body { display:flex; }
  .slot--terms h5 { margin:8px 0 -8px; font-size:14px; font-weight:600; color:var(--ink); }
  .slot--terms h5 .num { color:var(--ink-mute); font-weight:400; font-variant-numeric:tabular-nums; margin-right:10px; }
  .slot--terms h5:not(:has(.num)) { font-size:13px; text-transform:none; color:var(--ink-soft); }
  .slot--terms p { color:var(--ink-soft); }
  .terms-all { all:unset; cursor:pointer; font-size:14px; font-weight:500; color:var(--twilight-sky); }
  .terms-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; }

  /* Download PDF / print */
  .btn--ghost { background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1px var(--hairline); }
  .btn--ghost:hover { background:var(--sky-mist); color:var(--ink); }
  .print-sign { display:none; }

  /* ===== 2026-11 refresh (1a) ===== */
  .cover { padding:48px 32px 48px; gap:56px; align-items:center; }
  .cover h1 { font-size:clamp(44px, 6vw, 68px); text-wrap:balance; }
  .rail a { border-left:2px solid transparent; margin-left:-14px; padding-left:12px; }
  .rail a.is-active { border-left-color:var(--pink-haze); }
  main { gap:104px; }
  @media (max-width: 560px) { main { gap:80px; } }
  /* The website's own .sec class adds 90px above and below; proposals space sections with the gap above instead. */
  main > .sec { padding-top:0; padding-bottom:0; }
  main > .sec:first-child { padding-top:40px; }
  .letter { font-size:18px; }
  .objectives { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap:16px; background:none; border:0; border-radius:0; }
  .objectives li, .objectives li:first-child { flex-direction:column; align-items:flex-start; gap:20px; min-height:150px; background:var(--surface); border:1px solid var(--hairline); border-radius:12px; padding:24px; font-size:17px; font-weight:500; line-height:1.4; }
  .stats { gap:0; background:none; border:0; border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline); border-radius:0; }
  .stats div { background:none; padding:24px; border-left:1px solid var(--hairline); }
  .stats div:first-child { border-left:0; padding-left:0; }
  .stats b { font-size:40px; line-height:1.2; }
  .panel__grid > div { font-size:14px; }
  .dash { background:var(--surface); border:1px solid var(--hairline); border-radius:20px; overflow:hidden; margin-top:-88px; }
  .dash__card { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:32px; align-items:center; padding:28px 28px 28px 36px; }
  .dash__text { display:flex; flex-direction:column; gap:8px; }
  .dash h3 { margin:0; font-size:22px; font-weight:600; color:var(--ink); letter-spacing:-0.01em; }
  .dash p { margin:0; font-size:15px; color:var(--ink-soft); }
  .dash__actions { display:flex; align-items:center; gap:20px; margin-top:12px; font-size:14px; font-weight:500; flex-wrap:wrap; }
  .dash__actions a, .dash__bar a { text-decoration:none; }
  .btn svg { margin-left:8px; }
  .dash__thumb { box-sizing:border-box; cursor:pointer; display:block; position:relative; aspect-ratio:16/10; border:1px solid var(--hairline); border-radius:12px; overflow:hidden; background:var(--sky-mist); transition:border-color .18s; }
  .dash__thumb:hover { border-color:var(--day-sky, #82B1E8); }
  .dash__thumb:focus-visible { outline:2px solid var(--twilight-sky); outline-offset:2px; }
  .dash__thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:left top; display:block; }
  .dash__live { display:none; }
  .dash__bar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 20px 14px 28px; border-bottom:1px solid var(--hairline); flex-wrap:wrap; }
  .dash__bar h3 { font-size:17px; }
  .dash__bar span { font-size:13px; color:var(--ink-mute); margin-left:12px; }
  .dash__bar > div:last-child { display:flex; align-items:center; gap:20px; font-size:14px; font-weight:500; }
  .dash__live iframe { display:block; width:100%; height:min(680px, 80vh); border:0; background:#fff; }
  .dash__print { display:none; }
  .row { grid-template-columns:240px minmax(0,1fr); }
  .big-stat { padding-left:0; }
  .big-stat b { font-size:40px; line-height:1.15; }
  .callout { display:flex; gap:16px; align-items:flex-start; padding:14px 18px; border-radius:12px; color:var(--ink); text-decoration:none; margin-top:4px; }
  .callout svg { flex:none; margin-top:2px; }
  .callout span { display:flex; flex-direction:column; gap:2px; }
  .callout small { font-size:13px; color:var(--ink-soft); }
  .callout--link { border:1px solid var(--hairline); background:var(--surface); align-items:center; transition:border-color .18s; }
  .callout--link:hover { border-color:#82B1E8; color:var(--ink); }
  .callout--link span { flex:1; }
  .callout--link em { font-style:normal; font-size:14px; font-weight:500; color:var(--twilight-sky); white-space:nowrap; }
  .callout--mist { background:var(--sky-mist); }
  .callout--mist b { font-weight:600; }
  .steps li::before { font-size:44px; }
  .slot--faq { background:none; border:0; border-radius:0; }
  .slot--faq > p { padding-bottom:20px; }
  .slot--faq details:last-child { border-bottom:1px solid var(--hairline); }
  .slot--faq summary { padding:20px 0; }
  .slot--faq details > :not(summary) { padding:0 0 22px; }
  @media (max-width: 700px) {
    .dash__card { grid-template-columns:1fr; padding:24px; }
    .row { grid-template-columns:1fr; }
    .stats div { border-left:0; padding-left:0; }
    .dash { margin-top:-64px; }
  }
  @media screen and (prefers-reduced-motion: no-preference) {
    .reveal { opacity:0; transform:translateY(24px); transition:opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1); }
    .reveal.is-in { opacity:1; transform:none; }
  }
  @media print {
    @page { size:A4; margin:16mm 14mm; }
    html { scroll-behavior:auto; }
    body { background:#fff; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    .p-header__actions, .p-progress, .rail, .terms-all, [data-accept-form], .accept__actions, [data-accept-edit] { display:none !important; }
    .p-header { position:static; background:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
    .p-header__in { padding-left:0; padding-right:0; }
    .cover { max-width:none; padding:56px 0 0; grid-template-columns:1fr; gap:40px; break-after:page; }
    .cover h1 { font-size:52px; }
    .cover__photo { display:none !important; } /* formal printed cover: title and details only */
    .layout { display:block; max-width:none; padding:0; }
    main { max-width:none; gap:48px; }
    #agreement, #terms { break-before:page; }
    h2, h3, h4, h5, summary, .terms-toggle { break-after:avoid; }
    tr, .objectives li, .steps li, .stats, .big-stat, .signoff, .accept, .print-sign, .accepted-grid { break-inside:avoid; }
    .slot--faq summary::after, .terms-toggle small { display:none; }
    .slot--terms .card-body { display:flex !important; }
    .terms-toggle { padding:14px 0 8px; }
    a { color:inherit; text-decoration:none; }
    .print-sign { display:grid; grid-template-columns:1fr 1fr; gap:40px 32px; padding-top:8px; }
    .print-sign span { display:block; height:40px; border-bottom:1px solid var(--ink); }
    .print-sign small { display:block; margin-top:6px; font-size:12px; color:var(--ink-mute); }
    .is-accepted .print-sign { display:none; }
  }

  @media print {
    .dash { margin-top:0; break-inside:avoid; }
    .dash__live, .dash__actions { display:none !important; }
    .dash__card { grid-template-columns:1fr 260px; padding:24px 28px; }
    .dash__print { display:flex; align-items:center; gap:16px; padding:16px 28px; border-top:1px solid var(--hairline); font-size:12px; color:var(--ink-soft); }
    .dash__print img { width:64px; height:64px; flex:none; }
    .dash__print b { display:block; color:var(--ink); font-weight:500; }
    .callout--link em { display:none; }
    .row { grid-template-columns:200px minmax(0,1fr); }
  }

  /* ===== PDF polish (2026-11-09): clean page breaks, closed borders, page numbers ===== */
  @media print {
    @page { size:A4; margin:16mm 15mm 18mm;
      @bottom-left { content:"CloudCFO"; font:500 8pt Poppins, sans-serif; color:#8B97A8; }
      @bottom-right { content:"Page " counter(page) " of " counter(pages); font:8pt Poppins, sans-serif; color:#8B97A8; } }
    @page :first { @bottom-left { content:none; } @bottom-right { content:none; } }
    body { font-size:10.5pt; }
    main { gap:40px; }
    .sec { gap:18px; }
    .sec h2 { font-size:24pt; }
    /* Boxes that can run over a page keep their border and padding on both pieces */
    .slot .card, .slot--scope .sub-body > ul, .slot .table-wrap, .slot--special, .accept, .objectives li, .steps li {
      -webkit-box-decoration-break:clone; box-decoration-break:clone; }
    .slot .table-wrap { overflow:visible; }
    thead { display:table-header-group; }
    /* Keep these in one piece */
    .panel, .dash, .row, .stats, .photo-wide, .trusted, .objectives, .steps, .callout, .slot--faq details, .signoff, .accept, .fees-note { break-inside:avoid; }
    p, li { orphans:3; widows:3; }
    /* Chrome only honours "keep heading with next" in normal block flow, not in flex columns */
    .slot--scope .sub, .slot--scope .sub-body, .slot--scope .card, .slot--scope .card-body,
    .slot--terms .card, .slot--terms .card-body, .letter, .sec { display:block !important; }
    .slot--scope .sub > * + *, .slot--scope .sub-body > * + *, .slot--scope .card > * + *, .slot--scope .card-body > * + * { margin-top:12px; }
    .slot--scope > * + * { margin-top:28px; }
    .slot--terms .card-body > * + * { margin-top:10px; }
    .slot--terms .card-body { padding-bottom:16px; }
    main .sec > * + * { margin-top:18px; }
    main .letter > * + * { margin-top:12px; }
    main .sec > .sec__head + * { margin-top:14px; }
    .slot--scope .card > h4 + *, .slot--terms .card > h4 + * { break-before:avoid; }
    .slot--fees, .slot--fees .sub:has(table), .slot--fees .sub:has(table) .sub-body, .slot--faq { display:block !important; }
    .slot--fees .sub:has(table) > * + *, .slot--fees .sub:has(table) .sub-body > * + * { margin-top:14px; }
    main { display:block !important; }
    main > * + * { margin-top:40px; }
    .sec__head { display:block !important; break-inside:avoid; }
    .sec__head > * + * { margin-top:6px; }
    .steps { break-after:avoid; }
    .steps + p { break-before:avoid; }
    #next { break-inside:avoid; }
    #faq { break-before:page; }
    /* Never leave a heading alone at the bottom of a page */
    .sec__head, .sec h2, .slot--scope .sub > h3, .slot--scope .card > h4, .slot--terms .card > h4, .terms-head, .slot--terms h5 { break-after:avoid; }
    .sec__head + p, .sec__head + .slot > :first-child { break-before:avoid; }
    /* What sets us apart: a compact strip in the PDF (three points side by side, smaller text) */
    .panel { padding:16px 20px; gap:10px; border-radius:12px; }
    .panel h3 { font-size:15px; }
    .panel__grid { grid-template-columns:repeat(3, 1fr); gap:8px 18px; }
    .panel__grid > div { font-size:8.5pt; line-height:1.45; gap:3px; }
    .panel__grid b { font-size:10pt; }
    .panel__grid svg { width:16px; height:16px; }
    .steps { grid-template-columns:repeat(4, 1fr); }
    .steps li { padding:16px; }
    .row { padding:18px 0; }
    /* Agreement: letter, sign-off and the signature box on one page when they fit */
    #agreement .accept { margin-top:8px; padding:24px 28px; gap:16px; }
    .print-sign { gap:28px 32px; }
    .p-footer { break-inside:avoid; }
  }
