:root{
  --forest:#294438;
  --forest-2:#35594a;
  --sage:#879681;
  --sage-soft:#dfe6db;
  --ivory:#f7f3ea;
  --paper:#fffdf8;
  --taupe:#81786b;
  --line:#ded9cf;
  --text:#26342d;
  --muted:#69736d;
  --warning:#b47c48;
  --shadow:0 24px 70px rgba(37,55,46,.12);
  --radius:28px;
}
*{box-sizing:border-box}
html{background:var(--ivory);color:var(--text);font-family:"DM Sans",system-ui,sans-serif}
body{margin:0;min-height:100vh;background:
  radial-gradient(circle at 10% 10%,rgba(135,150,129,.12),transparent 25%),
  linear-gradient(180deg,#faf8f2 0%,#f4f0e7 100%)}
button,input,textarea,select{font:inherit}
button,a{touch-action:manipulation}
.page-shell{min-height:100vh;display:flex;flex-direction:column}
.site-header{min-height:94px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,60px);border-bottom:1px solid rgba(129,120,107,.18);background:rgba(250,248,242,.88);backdrop-filter:blur(12px);position:sticky;top:0;z-index:20}
.brand{display:flex;align-items:center;gap:14px;color:var(--forest);min-width:0}.brand-logo-link{display:block;flex-shrink:0;line-height:0}.brand-logo-link:focus-visible,.site-footer a:focus-visible{outline:3px solid var(--forest);outline-offset:4px;border-radius:4px}
.brand-wordmark{display:block;width:148px;height:auto;object-fit:contain}.brand-service{font-size:12px;line-height:1.4;font-weight:700;letter-spacing:.025em;color:var(--forest);border-left:1px solid var(--line);padding-left:14px;white-space:nowrap;cursor:default}
.help-link{border:0;background:transparent;color:var(--forest);font-weight:700;cursor:pointer;padding:10px 0;border-bottom:1px solid var(--sage)}
.app-layout{flex:1;display:grid;grid-template-columns:minmax(320px,.88fr) minmax(520px,1.12fr);max-width:1380px;width:100%;margin:0 auto;padding:34px clamp(18px,4vw,56px) 42px;gap:28px}
.comfort-panel,.form-panel{border-radius:var(--radius);min-height:650px;box-shadow:var(--shadow);overflow:hidden}
.comfort-panel{position:relative;background:linear-gradient(150deg,#2a473a,#43604f);color:white;background-image:linear-gradient(150deg,rgba(28,49,39,.86),rgba(49,77,62,.78)),url('/assets/recovery-landscape-bg.webp');background-size:cover;background-position:center center;display:flex;align-items:flex-end}
.comfort-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(31,51,42,.08),rgba(31,51,42,.82))}
.comfort-content{position:relative;z-index:1;padding:clamp(34px,5vw,58px);max-width:610px}
.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:800;margin:0 0 14px;color:var(--sage-soft)}
.comfort-content h1,.step-card h2,.talk-dialog h2{font-family:"Libre Baskerville",serif;font-weight:400;line-height:1.15;margin:0}
.comfort-content h1{font-size:clamp(34px,4.4vw,58px);max-width:560px}.comfort-content>p:not(.eyebrow){font-size:16px;line-height:1.7;color:rgba(255,255,255,.87);max-width:550px}
.trust-note{display:flex;gap:12px;align-items:center;margin-top:24px;padding-top:22px;border-top:1px solid rgba(255,255,255,.22)}.trust-note span{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.14);display:grid;place-items:center}.trust-note p{margin:0;font-size:14px}
.form-panel{background:var(--paper);padding:clamp(26px,4vw,54px);display:flex;flex-direction:column}
.form-topline{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:34px}.step-label{margin:0 0 9px;color:var(--forest);font-size:12px;text-transform:uppercase;letter-spacing:.14em;font-weight:800}.progress-track{width:min(280px,46vw);height:5px;background:#ece8df;border-radius:99px;overflow:hidden}.progress-track span{height:100%;display:block;width:0;background:linear-gradient(90deg,var(--sage),var(--forest));border-radius:99px;transition:width .25s ease}.save-state{font-size:12px;color:var(--muted);white-space:nowrap}
#screeningForm{display:flex;flex:1;flex-direction:column}.step-card{flex:1;display:flex;flex-direction:column;justify-content:center;animation:none}.step-card .micro{color:var(--forest-2);font-weight:700;font-size:13px;margin-bottom:10px}.step-card h2{font-size:clamp(29px,3vw,43px);max-width:720px}.step-card .lead{color:var(--muted);font-size:16px;line-height:1.65;max-width:680px;margin:15px 0 28px}.why{display:inline-flex;gap:9px;align-items:flex-start;background:#f0f3ed;border:1px solid #dfe6db;border-radius:16px;padding:13px 15px;margin:0 0 24px;max-width:690px;color:#53645a;font-size:13px;line-height:1.5}.why strong{color:var(--forest)}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:760px}.field{display:flex;flex-direction:column;gap:8px}.field.full{grid-column:1/-1}.field label,.field-label{font-size:13px;font-weight:700;color:var(--forest)}.field small{font-size:12px;color:var(--muted)}
input[type=text],input[type=email],input[type=tel],input[type=date],textarea,select{width:100%;border:1px solid #d8d4cb;border-radius:14px;background:white;color:var(--text);padding:15px 16px;outline:none;transition:.16s;min-height:52px}textarea{min-height:120px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:var(--sage);box-shadow:0 0 0 4px rgba(135,150,129,.14)}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:760px}.choice-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.choice{position:relative}.choice input{position:absolute;opacity:0;pointer-events:none}.choice label{min-height:58px;border:1px solid #d9d5cc;background:white;border-radius:15px;padding:12px 14px;display:flex;align-items:center;gap:11px;font-weight:700;font-size:14px;cursor:pointer;transition:.16s}.choice label:before{content:"";width:19px;height:19px;border:1.8px solid #a7aea8;border-radius:50%;flex:0 0 19px}.choice input:checked+label{border-color:var(--forest-2);background:#eef2ed;color:var(--forest)}.choice input:checked+label:before{border:6px solid var(--forest-2)}
.talk-choice{margin-top:16px}.text-link{border:0;background:transparent;color:var(--forest);font-weight:800;padding:8px 0;border-bottom:1px solid var(--sage);cursor:pointer}
.conditional{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.hidden{display:none!important}.error{color:#a35445;font-size:12px;margin-top:9px}.form-nav{display:flex;align-items:center;justify-content:space-between;padding-top:28px;margin-top:22px;border-top:1px solid var(--line)}.btn{border-radius:999px;border:1px solid transparent;min-height:50px;padding:0 23px;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;font-weight:800;cursor:pointer}.btn-primary{background:var(--forest);color:white}.btn-primary:hover{background:#1e362c}.btn-secondary{background:transparent;border-color:#d0cbc1;color:var(--forest)}.btn-secondary:hover{background:#f4f2ec}.btn:disabled{opacity:.5;cursor:not-allowed}
.summary{display:grid;gap:12px;max-width:760px}.summary-group{border:1px solid var(--line);border-radius:17px;background:white;padding:16px 18px}.summary-group h3{margin:0 0 10px;font-size:14px;color:var(--forest)}.summary-row{display:grid;grid-template-columns:180px 1fr;gap:16px;padding:7px 0;border-top:1px solid #efede8;font-size:13px}.summary-row:first-of-type{border-top:0}.summary-row span:first-child{color:var(--muted)}
.signature-wrap{max-width:760px}.signature-box{border:1.5px dashed #b8b4aa;border-radius:18px;background:white;padding:12px}.signature-box canvas{display:block;width:100%;height:190px;border-radius:12px;background:#fff}.signature-tools{display:flex;justify-content:space-between;align-items:center;margin-top:9px}.signature-hint{font-size:12px;color:var(--muted)}
.success-card{text-align:center;align-items:center}.success-icon{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:#e7eee5;color:var(--forest);font-size:32px;margin-bottom:18px}.success-card h2{max-width:640px}.reference{margin-top:18px;background:#f1f3ef;border-radius:14px;padding:12px 16px;font-weight:800;color:var(--forest)}
.site-footer{display:flex;justify-content:space-between;gap:20px;padding:22px clamp(22px,5vw,72px);font-size:11px;color:#68766e;align-items:center}.footer-identity{display:flex;flex-direction:column;gap:5px}.footer-identity strong{color:var(--forest);font-weight:700}.footer-links{display:flex;gap:18px;flex-wrap:wrap}.footer-links a{color:var(--forest);font-weight:700;text-underline-offset:3px}.footer-links a:hover{color:var(--forest-2)}.hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important}
.talk-dialog{border:0;border-radius:24px;max-width:510px;padding:36px;box-shadow:0 30px 90px rgba(23,39,31,.28);color:var(--text)}.talk-dialog::backdrop{background:rgba(28,43,35,.48);backdrop-filter:blur(3px)}.dialog-close{position:absolute;right:20px;top:14px;border:0;background:none;font-size:30px;color:var(--muted);cursor:pointer}.talk-dialog .eyebrow{color:var(--forest-2)}.talk-dialog h2{font-size:31px}.talk-dialog p{line-height:1.65;color:var(--muted)}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.talk-request-form{display:grid;gap:13px;margin-top:20px}.talk-request-form .field{gap:6px}.talk-request-form .btn{width:100%;margin-top:2px}.talk-request-status{min-height:18px;font-size:12px;line-height:1.4;color:#a35445}.talk-success{background:#eef3ec;border:1px solid #dbe5d8;border-radius:16px;padding:16px;color:var(--forest)}.talk-success strong{font-family:"Libre Baskerville",serif;font-size:20px}.talk-success p{margin:7px 0 0;color:#53645a}

@media(max-width:980px){.app-layout{grid-template-columns:1fr;max-width:820px}.comfort-panel{min-height:330px}.form-panel{min-height:620px}.comfort-content h1{font-size:40px}.site-footer{flex-direction:column}}
@media(max-width:640px){.site-header{min-height:78px;padding:0 16px}.brand{gap:8px}.brand-wordmark{width:112px}.brand-service{display:inline-block;font-size:10px;padding-left:8px}.help-link{font-size:12px}.app-layout{padding:14px 12px 28px;gap:14px}.comfort-panel{min-height:270px;border-radius:20px}.comfort-content{padding:28px}.comfort-content h1{font-size:31px}.comfort-content>p:not(.eyebrow){font-size:14px}.form-panel{padding:26px 20px;border-radius:20px;min-height:620px}.fields,.choice-grid,.choice-grid.three{grid-template-columns:1fr}.step-card{justify-content:flex-start;padding-top:20px}.step-card h2{font-size:29px}.form-topline{margin-bottom:18px}.save-state{font-size:10px}.form-nav{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,253,248,.9),#fffdf8 30%);padding-bottom:4px}.btn{min-height:48px;padding:0 18px}.summary-row{grid-template-columns:1fr;gap:3px}.site-footer{padding:18px;font-size:10px}}


/* Mobile-first application refinements */
.mobile-welcome{display:none}
.signature-box canvas{touch-action:none;-webkit-user-select:none;user-select:none}
@supports(padding:max(0px)){
  .site-header{padding-left:max(clamp(22px,5vw,72px),env(safe-area-inset-left));padding-right:max(clamp(22px,5vw,72px),env(safe-area-inset-right))}
}

@media(max-width:640px){
  html{background:var(--paper);scroll-padding-top:76px}
  body{background:var(--paper);min-height:100dvh;-webkit-text-size-adjust:100%}
  .page-shell{min-height:100dvh}
  .site-header{
    height:76px;
    padding:env(safe-area-inset-top) 12px 0;
    min-height:calc(76px + env(safe-area-inset-top));
    background:rgba(255,253,248,.96);
    border-bottom:1px solid #e8e3d9;
    backdrop-filter:blur(16px);
  }
  .brand{gap:8px;min-width:0;max-width:calc(100% - 108px)}
  .brand-wordmark{width:108px;max-width:100%;height:auto}
  .brand-service{display:inline-block;font-size:10px;letter-spacing:0;white-space:normal;max-width:97px;padding-left:9px;line-height:1.2}
  .help-link{font-size:11px;min-height:38px;padding:0;border:0;white-space:nowrap}

  .app-layout{display:block;max-width:none;padding:0;margin:0}
  .comfort-panel{display:none}
  .form-panel{
    min-height:calc(100dvh - 76px - env(safe-area-inset-top));
    border-radius:0;
    box-shadow:none;
    padding:8px 16px calc(82px + env(safe-area-inset-bottom));
    overflow:visible;
    background:var(--paper);
  }
  .form-topline{
    position:sticky;
    top:calc(76px + env(safe-area-inset-top));
    z-index:12;
    margin:-8px -16px 10px;
    padding:6px 16px 6px;
    background:rgba(255,253,248,.96);
    border-bottom:1px solid rgba(222,217,207,.75);
    backdrop-filter:blur(12px);
    gap:12px;
  }
  .step-label{font-size:10px;letter-spacing:.13em;margin-bottom:5px}
  .progress-track{width:min(54vw,230px);height:4px}
  .save-state{font-size:10px}
  #screeningForm{min-height:0}
  .step-card{display:block;min-height:0;padding:0 0 8px;animation:none}
  body[data-step="identity"] .step-card{padding-top:12px}
  .step-card .micro{display:none}
  .step-card h2{font-size:21px;line-height:1.14;letter-spacing:-.015em;margin-top:0;margin-bottom:0}
  .step-card .lead{font-size:13px;line-height:1.42;margin:6px 0 10px}
  .mobile-welcome{
    display:flex;
    flex-direction:column;
    gap:5px;
    background:#eef3ec;
    border:1px solid #dbe5d8;
    border-radius:16px;
    padding:11px 13px;
    margin:10px 0 14px;
    color:#53645a;
    font-size:13px;
    line-height:1.48;
  }
  .mobile-welcome strong{color:var(--forest);font-family:"Libre Baskerville",serif;font-size:13px;font-weight:700;display:block;margin-bottom:2px}
  .mobile-welcome span{font-weight:400;color:#53645a;display:block}
  .why{width:100%;margin-bottom:18px;border-radius:14px;padding:12px 13px;font-size:12px}

  .fields,.choice-grid,.choice-grid.three{grid-template-columns:1fr;gap:12px;width:100%;max-width:none}
  .identity-fields{gap:13px}
  .field{gap:5px}
  .field label,.field-label{font-size:13px}
  .field small{font-size:11px;line-height:1.45;padding:0 2px}
  input[type=text],input[type=email],input[type=tel],input[type=date],textarea,select{
    min-height:52px;
    border-radius:14px;
    padding:15px;
    font-size:16px; /* prevents iOS focus zoom */
    border-color:#d8d4cb;
  }
  textarea{min-height:112px;line-height:1.45}
  input:focus,textarea:focus,select:focus{box-shadow:0 0 0 3px rgba(135,150,129,.15)}

  .choice-grid{gap:10px}
  .choice label{
    min-height:58px;
    border-radius:14px;
    padding:13px 14px;
    font-size:14px;
    line-height:1.3;
    -webkit-tap-highlight-color:transparent;
  }
  .choice label:before{width:20px;height:20px;flex-basis:20px}
  .conditional{margin-top:16px;padding-top:16px}
  .talk-choice{margin-top:13px}
  .text-link{min-height:44px;padding:10px 0;font-size:13px}

  .form-nav{
    position:fixed;
    left:0;right:0;bottom:0;
    z-index:30;
    margin:0;
    padding:8px 16px calc(8px + env(safe-area-inset-bottom));
    background:rgba(255,253,248,.97);
    border-top:1px solid #ddd8cf;
    box-shadow:0 -10px 28px rgba(37,55,46,.08);
    gap:10px;
  }
  .form-nav .btn{min-height:54px;border-radius:16px;font-size:15px}
  .form-nav .btn-secondary{width:30%;min-width:84px;padding:0 12px}
  .form-nav .btn-primary{flex:1;padding:0 18px}
  body[data-step="identity"] .form-nav .btn-secondary{display:none}
  body[data-step="identity"] .form-nav .btn-primary{width:100%}

  .summary{gap:10px}
  .summary-group{padding:14px;border-radius:14px}
  .summary-group h3{font-size:13px}
  .summary-row{grid-template-columns:1fr;gap:2px;font-size:12px;padding:7px 0}
  .summary-row strong{overflow-wrap:anywhere}
  .signature-wrap{width:100%}
  .signature-box{padding:8px;border-radius:16px}
  .signature-box canvas{height:180px}
  .signature-tools{align-items:flex-start;gap:10px}
  .signature-hint{font-size:11px;line-height:1.4}
  .success-card{padding-top:18px}
  .success-icon{width:64px;height:64px}
  .reference{font-size:13px;overflow-wrap:anywhere}
  .site-footer{display:flex;flex-direction:column;gap:10px;align-items:flex-start;padding:16px 16px calc(90px + env(safe-area-inset-bottom));border-top:1px solid var(--line);font-size:11px}

  .talk-dialog{
    width:calc(100% - 24px);
    max-width:none;
    margin:auto 12px max(12px,env(safe-area-inset-bottom));
    padding:28px 20px 22px;
    border-radius:22px 22px 16px 16px;
  }
  .talk-dialog h2{font-size:26px}
  .dialog-actions{display:grid;grid-template-columns:1fr;gap:9px}
  .dialog-actions .btn{width:100%;min-height:52px;border-radius:16px}
}

@media(max-width:380px){
  .brand{max-width:calc(100% - 100px)}
  .brand-wordmark{width:154px}
  .help-link{font-size:10px}
  .step-card h2{font-size:20px}
  .form-panel{padding-left:14px;padding-right:14px;padding-top:8px}
  .form-topline{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}
  .form-nav{padding-left:14px;padding-right:14px}
}

@media(hover:none) and (pointer:coarse){
  .btn:hover,.btn-secondary:hover{background:initial}
  .btn-primary:hover{background:var(--forest)}
}


.talk-name-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:520px){.talk-name-fields{grid-template-columns:1fr}}

/* Prefer-to-talk success state: keep only the section title and confirmation card. */
.talk-dialog.talk-complete > h2,
.talk-dialog.talk-complete > p:not(.eyebrow){display:none}
.talk-dialog.talk-complete .eyebrow{display:none}
.talk-dialog.talk-complete .talk-success{margin-top:0}

@media(max-width:640px){.comfort-panel{background-image:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.choice input:focus-visible+label{outline:3px solid var(--forest);outline-offset:3px}

/* Direction follows navigation; only transforms and opacity animate. */
#stepMount{position:relative}
#stepMount.is-transitioning{overflow:hidden;overflow:clip}
#stepMount.is-transitioning .step-card{animation:none}
.outgoing-step{position:absolute;inset:0 0 auto;pointer-events:none;width:100%}
.step-card h2:focus{outline:none}


#stepMount{overflow-anchor:none}
#stepMount.is-transitioning .step-card{will-change:transform,opacity}

/* Keep a changing answer card from scrolling the reader back down via browser scroll anchoring. */
#stepMount,.form-panel{overflow-anchor:none}
@media(max-width:365px){.brand-wordmark{width:98px}.brand-service{font-size:9px;max-width:84px}.help-link{font-size:10px}}

.brand-logo-link picture{display:block;line-height:0}
