/* Scoped changes to the existing Caseflood visual system. */
[hidden] { display: none !important; }
.audit-cta { gap: 18px; }
.audit-cta > span { font-size: 19px; line-height: 1; }
.hero-action p { max-width: 350px; font-size: 19px; line-height: 1.5; }
.hero-action { margin-bottom: 32px; }
.eyebrow { font-size: 13px; line-height: 1.5; letter-spacing: .025em; }
.platform-reveal .solution-intro { padding-top: 86px; padding-bottom: 40px; }
.platform-reveal .solution-intro h2 { font-size: clamp(40px, 4.8vw, 68px); max-width: 950px; }
.platform-reveal .solution-intro .page-lead { max-width: 800px; font-size: 19px; }
.audit-invitation { background: #3d61d8; color: #fff; padding-block: 95px; }
.invitation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; }
.invitation-copy .eyebrow { color: #e3eaff; margin-bottom: 28px; }
.invitation-copy h2 { font-size: clamp(44px, 5vw, 72px); line-height: 1.02; }
.invitation-copy > p:last-child { font-size: 18px; line-height: 1.65; max-width: 405px; margin-top: 32px; color: #eef2ff; }
.audit-outline h3 { font-size: 27px; letter-spacing: -.035em; margin: 2px 0 27px; }
.audit-outline dl { margin: 0 0 30px; }
.audit-outline dl > div { padding: 17px 0; border-top: 1px solid #ffffff40; }
.audit-outline dt { font-size: 12px; color: #e0e7ff; margin-bottom: 7px; }
.audit-outline dd { font-size: 16px; line-height: 1.55; margin: 0; }
.audit-email { display: block; margin-top: 20px; font-size: 13px; text-underline-offset: 4px; }
.preview-badge { position: fixed; bottom: 12px; left: 14px; display: flex; align-items: center; gap: 8px; z-index: 20; background: #fff; color: #52637d; border: 1px solid #d5deeb; box-shadow: 0 3px 20px #0001; border-radius: 6px; padding: 7px 11px; font: 400 10px/1.5 Inter,Arial,sans-serif; }
.preview-badge > span { width: 5px; height: 5px; background: #315bcf; border-radius: 50%; }
.preview-badge b { font-weight: 400; color: #a7b4c5; }
.preview-badge a { text-decoration: none; }
.preview-badge a:hover { text-decoration: underline; }
@media(max-width:1000px) {
  .invitation-grid { gap: 55px; }
}
@media(max-width:700px) {
  .hero-action p { max-width: 460px; font-size: 18px; }
  .hero-foot { font-size: 12px; }
  .platform-reveal .solution-intro { padding-top: 60px; }
  .platform-reveal .solution-intro h2 { font-size: 41px; }
  .platform-reveal .solution-intro .page-lead { font-size: 17px; }
  .audit-invitation { padding-block: 60px; }
  .invitation-grid { grid-template-columns: 1fr; gap: 42px; }
  .invitation-copy h2 { font-size: 49px; }
  .invitation-copy > p:last-child { font-size: 17px; margin-top: 24px; }
  .audit-outline h3 { font-size: 26px; }
  .preview-badge { bottom: 8px; left: 8px; font-size: 9px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }

/* Audit booking: one question, then the native calendar. */
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body.is-dialog-open { overflow:hidden; }
.flow-dialog { width:min(920px,calc(100% - 48px)); max-width:none; max-height:calc(100dvh - 48px); margin:auto; padding:0; border:0; border-radius:12px; background:white; color:#142b4a; overflow:auto; box-shadow:0 32px 100px #0005; }
.flow-dialog::backdrop { background:#061226b3; backdrop-filter:blur(8px); }
.flow-dialog:focus,.flow-dialog h2:focus { outline:none; }
.flow-close { position:absolute; z-index:2; top:14px; right:14px; width:40px; height:40px; border:0; border-radius:50%; background:transparent; color:#6b788a; font:300 28px/1 Arial,sans-serif; cursor:pointer; }
.flow-close:hover { background:#edf1f6; color:#142b4a; }
.flow-priority { display:grid; grid-template-columns: .85fr 1.15fr; }
.flow-context { display:flex; flex-direction:column; justify-content:space-between; padding:40px; color:white; background:#102641; }
.flow-context>img { width:132px; height:auto; }
.flow-session { margin:64px 0 48px; }
.flow-eyebrow { font-size:11px; font-weight:600; letter-spacing:.12em; color:#bac9df; margin:0 0 20px; }
.flow-session h2 { font-size:54px; font-weight:500; line-height:1.04; letter-spacing:-.055em; margin:0 0 25px; }
.flow-session>p:last-child { color:#bdcadd; font-size:14px; line-height:1.7; }
.flow-host { display:grid; gap:7px; padding-top:23px; border-top:1px solid #ffffff26; font-size:13px; color:#bdcadd; }
.flow-host strong { color:white; font-size:15px; font-weight:500; margin-bottom:3px; }
.flow-question { padding:44px 48px 32px; }
.flow-step { color:#788598; font-size:11px; letter-spacing:.06em; margin:0 0 28px; }
.flow-step span { color:#53647d; margin-left:13px; letter-spacing:0; }
.flow-question h3 { font-size:38px; font-weight:500; line-height:1.12; letter-spacing:-.045em; margin:0 0 12px; }
.flow-description { font-size:14px; line-height:1.6; color:#657186; margin:0 0 23px; max-width:300px; }
.priority-options { border:0; padding:0; margin:0 0 26px; }
.priority-options label { display:flex; align-items:center; gap:14px; min-height:51px; padding:12px 10px; margin:0 -10px; border-bottom:1px solid #e6eaf0; cursor:pointer; font-size:14px; transition:background .15s; }
.priority-options label:last-child { border:0; }
.priority-options label:hover { background:#f5f7fa; }
.priority-options label:has(input:checked) { background:#eef2fc; color:#234ba9; }
.priority-options input { appearance:none; width:18px; height:18px; margin:0; border:1px solid #b6c0ce; border-radius:50%; flex-shrink:0; }
.priority-options input:checked { border:5px solid #345dc5; background:white; }
.flow-primary { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:50px; padding:14px 18px; border:0; border-radius:5px; background:#315bcf; color:white; font-size:14px; font-weight:500; cursor:pointer; }
.flow-primary:hover { background:#244bae; }
.flow-primary:disabled { background:#e9edf3; color:#727f92; cursor:default; }
.flow-primary>span { font-size:20px; line-height:1; }
.flow-footnote { font-size:12px; color:#7a8595; margin:13px 0 0; text-align:center; }
.flow-dialog.is-calendar { width:min(1180px,calc(100% - 48px)); }
.flow-calendar { padding:24px 32px 20px; }
.flow-calendar-head { display:flex; align-items:center; gap:24px; padding-right:48px; }
.flow-calendar-head .flow-step { margin:0; }
.flow-back { background:none; border:0; color:#53647d; padding:10px 0; font-size:13px; cursor:pointer; }
.flow-back:hover { color:#315bcf; }
.flow-calendar-title { display:flex; justify-content:space-between; align-items:end; gap:20px; margin:20px 0 24px; }
.flow-calendar-title h2 { font-size:30px; font-weight:500; letter-spacing:-.04em; margin:0; }
.flow-calendar-title p { font-size:13px; color:#657186; margin-bottom:4px; }
.flow-calendar-title p span { color:#213c61; }
#audit-calendar { width:100%; min-height:510px; }
.flow-calendar-footer { display:flex; justify-content:space-between; gap:20px; border-top:1px solid #e6eaf0; padding-top:16px; margin-top:12px; font-size:12px; line-height:1.5; color:#748095; }
.flow-calendar-footer a { color:#435b7f; text-underline-offset:3px; white-space:nowrap; }
@media(max-width:700px) {
 .flow-dialog,.flow-dialog.is-calendar { width:calc(100% - 20px); max-height:calc(100dvh - 20px); border-radius:9px; }
 .flow-priority { grid-template-columns:1fr; }
 .flow-context { padding:24px; }
 .flow-context>img { width:115px; }
 .flow-session { margin:25px 0 20px; }
 .flow-eyebrow,.flow-session>p:last-child { display:none; }
 .flow-session h2 { font-size:30px; margin:0; }
 .flow-session h2 br { display:none; }
 .flow-session h2 br:after { content:' '; }
 .flow-host { display:flex; flex-wrap:wrap; gap:6px 12px; padding-top:16px; font-size:12px; }
 .flow-host strong { width:100%; margin:0 0 2px; font-size:14px; }
 .flow-close { color:#c9d4e4; top:13px; right:12px; }
 .flow-question { padding:25px 24px; }
 .flow-step { margin-bottom:16px; }
 .flow-question h3 { font-size:29px; }
 .flow-question h3 br { display:none; }
 .flow-description { margin-bottom:16px; }
 .priority-options { margin-bottom:18px; }
 .priority-options label { min-height:48px; }
 .flow-footnote { font-size:11px; }
 .is-calendar .flow-close { color:#53647d; }
 .flow-calendar { padding:18px 16px; }
 .flow-calendar-title { display:block; margin-top:14px; }
 .flow-calendar-title h2 { font-size:28px; margin-bottom:10px; }
 .flow-calendar-title p { font-size:12px; }
 .flow-calendar-footer { align-items:start; font-size:11px; }
 #audit-calendar { min-height:580px; }
}

.fit-fields { display:grid; gap:10px; margin:28px 0 32px; }
.fit-fields label { font-size:14px; line-height:1.5; color:#213c61; }
.fit-fields select { width:100%; min-width:0; min-height:50px; padding:12px; border:1px solid #bdc8d7; border-radius:5px; background:#fff; color:#142b4a; font:inherit; font-size:14px; margin-bottom:14px; }
.fit-fields select:invalid { color:#6c798c; }
@media(max-width:700px) { .fit-fields { margin:24px 0; } .fit-fields select { font-size:16px; } }

.flow-host .flow-duration { font-size:13px; font-weight:400; color:#bdcadd; white-space:nowrap; margin-left:5px; }

/* Quiet, branded single-choice menus. */
.fit-select-trigger { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; min-height:52px; padding:14px 16px; margin-bottom:14px; border:1px solid #cbd4e0; border-radius:7px; background:#fff; color:#142b4a; font:400 14px/1.5 Inter,Arial,sans-serif; text-align:left; cursor:pointer; }
.fit-select-trigger.is-placeholder { color:#748196; }
.fit-select-trigger:hover { border-color:#899eb9; background:#fafbfd; }
.flow-dialog .fit-select-trigger:focus { outline:none; }
.flow-dialog .fit-select-trigger:focus-visible,.fit-select-trigger[aria-expanded="true"] { border-color:#315bcf; box-shadow:0 0 0 3px #315bcf18; }
.fit-select-chevron { width:7px; height:7px; border-right:1.5px solid #72839a; border-bottom:1.5px solid #72839a; transform:translateY(-2px) rotate(45deg); flex-shrink:0; margin-right:3px; }
.fit-select-trigger[aria-expanded="true"] .fit-select-chevron { transform:translateY(2px) rotate(225deg); }
.fit-select-menu { position:fixed; inset:auto; margin:0; padding:5px; box-sizing:border-box; border:1px solid #dce3ed; border-radius:9px; background:#fff; color:#142b4a; box-shadow:0 12px 35px #112b4a24,0 2px 5px #112b4a0a; overflow-y:auto; overscroll-behavior:contain; font:400 14px/1.5 Inter,Arial,sans-serif; }
.fit-select-option { position:relative; display:flex; align-items:center; min-height:44px; padding:10px 36px 10px 12px; border-radius:5px; cursor:pointer; }
.fit-select-option:hover,.fit-select-option.is-highlighted { background:#f0f4fa; }
.fit-select-option[aria-selected="true"] { color:#244da9; font-weight:500; }
.fit-select-option[aria-selected="true"]::after { content:'✓'; position:absolute; right:13px; color:#315bcf; }
@media(max-width:700px) { .fit-select-trigger,.fit-select-menu { font-size:15px; } }

.fit-select-menu { max-height:none; overflow:visible; }

.practice-areas { border:0; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.practice-areas legend { padding:0; margin-bottom:12px; font-size:14px; color:#213c61; }
.practice-areas legend span { display:block; font-size:12px; color:#748196; margin-top:4px; }
.fit-fields .practice-areas label { display:flex; gap:8px; align-items:center; padding:9px; min-height:44px; border:1px solid #dce3ed; border-radius:6px; font-size:12px; cursor:pointer; }
.practice-areas label:has(:checked) { background:#eef3ff; border-color:#8ca5df; color:#244da9; }
.practice-areas input { width:15px; height:15px; flex-shrink:0; accent-color:#315bcf; }
#other-practice { width:100%; padding:13px; border:1px solid #cbd4e0; border-radius:6px; font:inherit; font-size:14px; }
.flow-question:has(.practice-areas) { padding-top:32px; }
.flow-question:has(.practice-areas) .fit-fields { gap:8px; margin:20px 0 24px; }
.flow-question:has(.practice-areas) .flow-step { margin-bottom:18px; }
.flow-question:has(.practice-areas) .fit-select-trigger { margin-bottom:8px; }
.flow-dialog .practice-areas input:focus-visible { outline:2px solid #315bcf; outline-offset:3px; }
.flow-question:has(.practice-areas) h3 { font-size:30px; }
.flow-question:has(.practice-areas) h3 br { display:none; }
.flow-question:has(.practice-areas) .flow-description { max-width:none; margin-bottom:12px; }
.flow-question:has(.practice-areas) .fit-fields { margin:16px 0 18px; gap:6px; }
.flow-question:has(.practice-areas) .fit-select-trigger { min-height:46px; padding-block:11px; }
.flow-question:has(.practice-areas) .flow-step { margin-bottom:14px; }

.flow-context:has(.audit-proof) { justify-content:flex-start; gap:30px; }
.flow-context:has(.audit-proof) .flow-session { margin:10px 0 0; }
.flow-context:has(.audit-proof) .flow-session h2 { font-size:44px; }
.flow-context:has(.audit-proof) .flow-host { margin-top:auto; }
.audit-proof { padding:21px 20px 16px; border:1px solid #ffffff26; border-radius:8px; background:#ffffff06; }
.audit-proof-firm { display:flex; gap:11px; align-items:center; min-height:44px; }
.audit-proof-firm img { width:44px; height:44px; object-fit:cover; border-radius:5px; }
.audit-proof-firm strong { display:block; font-size:13px; font-weight:500; line-height:1.4; }
.audit-proof-firm span { display:block; color:#b6c6da; font-size:11px; margin-top:3px; }
.audit-proof-stat { font-size:48px; line-height:1; letter-spacing:-.045em; margin:23px 0 7px; font-weight:500; }
.audit-proof-caption { font-size:14px; color:#e0e8f3; }
.audit-proof-detail { color:#adbed4; font-size:12px; line-height:1.5; margin-top:13px; }
.audit-proof-controls { display:flex; align-items:center; justify-content:space-between; margin-top:15px; }
.audit-proof-position { font-size:10px; color:#b6c6da; letter-spacing:.08em; }
.audit-proof-controls>div { display:flex; gap:4px; }
.audit-proof-controls button { width:32px; height:32px; border:0; border-radius:4px; color:#dce6f4; background:transparent; cursor:pointer; font-size:16px; }
.audit-proof-controls button:hover { background:#ffffff14; }
.audit-proof-note { font-size:10px; line-height:1.5; color:#adbed4; margin-top:8px; }
@media(max-width:700px) {
 .flow-context:has(.audit-proof) { gap:20px; }
 .flow-context:has(.audit-proof) .flow-session { margin:0; }
 .flow-context:has(.audit-proof) .flow-session h2 { font-size:30px; }
 .audit-proof { padding:16px; }
 .audit-proof-stat { font-size:38px; margin-top:17px; }
}

.audit-proof-progress { display:flex; gap:7px; margin-top:17px; }
.audit-proof-progress button { position:relative; flex:1; height:28px; padding:0; border:0; background:transparent; cursor:pointer; }
.audit-proof-progress button::before { content:''; position:absolute; left:0; right:0; top:12px; height:3px; border-radius:2px; background:#ffffff24; }
.audit-proof-progress button>span { position:absolute; left:0; top:12px; height:3px; width:var(--progress,0%); border-radius:2px; background:#dbe7fa; }
.audit-proof-progress button:hover::before { background:#ffffff40; }
.audit-proof-progress button:focus-visible { outline:2px solid #a9c4ff; outline-offset:2px; border-radius:3px; }
.audit-proof-slides { min-height:192px; }
@media(max-width:700px) { .audit-proof-slides { min-height:172px; } }

/* Progress sits flush with the card’s bottom edge; transform updates each frame. */
.audit-proof { position:relative; overflow:hidden; padding-bottom:32px; }
.audit-proof-progress { position:absolute; bottom:0; left:0; right:0; display:flex; gap:4px; margin:0; }
.audit-proof-progress button { height:28px; }
.audit-proof-progress button::before { top:auto; bottom:0; height:3px; border-radius:0; }
.audit-proof-progress button>span { top:auto; bottom:0; height:3px; width:100%; border-radius:0; transform:scaleX(0); transform-origin:left center; will-change:transform; }
.audit-proof-progress button:focus-visible { outline-offset:-4px; }
