/* Public lease signing page. Navigation and actions use the public shell. */
.esign-page { color: var(--text); background: var(--surface); }
.esign-page *, .esign-page *::before { box-sizing: border-box; }
.esign-shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.esign-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.esign-hero { background: var(--surface); }
.esign-hero .esign-shell { padding-block: clamp(40px, 5vw, 72px); }
.esign-page :is(h1,h2,h3,p,figure,dl,dd) { margin: 0; }
body.public-design #main-content .esign-page h1, body.public-design #main-content .esign-page h1 span { font: 600 clamp(2.25rem, 3.8vw, 3.25rem)/1.1 Poppins, sans-serif !important; letter-spacing: -.035em !important; }
.esign-hero h1 span { color: var(--brand-purple-ink); }
#main-content .esign-page h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); line-height: 1.2; }
#main-content .esign-page h3 { font-size: 1.2rem; line-height: 1.35; }
body.public-design #main-content .esign-page p { font-size: 16px !important; line-height: 1.6; }
.esign-page p + p { margin-top: 16px; }
.esign-page :is(h1,h2,h3) + p { margin-top: 14px; max-width: 58ch; }
#main-content .esign-page .esign-label { font-size: .75rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-purple-ink); margin-bottom: 10px; }
.esign-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-block: 22px 12px; }
.esign-page a { display: inline-flex; align-items: center; min-height: 44px; }
.esign-page a:focus-visible { outline: 2px solid var(--brand-purple-ink); outline-offset: 3px; }
body.public-design #main-content .esign-page :is(.pd-action,.pd-secondary) {
  border-radius: 6px; min-height: 36px; padding: 6px 16px;
  font: 700 12px/20px "Open Sans", sans-serif !important;
  text-transform: uppercase; letter-spacing: .035em;
}
@media (pointer: coarse) {
  body.public-design #main-content .esign-page :is(.pd-action,.pd-secondary) {
    min-height: 44px; font-size: 14px !important;
  }
}
body.public-design #main-content .esign-page .pd-action {
  background: var(--btn-primary-bg) !important; color: var(--btn-primary-fg) !important;
}
body.public-design #main-content .esign-page .pd-action:is(:hover,:focus-visible) {
  background: var(--text) !important; color: var(--surface) !important;
}

.esign-window, .esign-product { min-width: 0; }
.esign-window { border: 0; border-radius: 0; overflow: hidden; background: var(--surface); }
.esign-window .esign-caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.esign-window video, .esign-product img { display: block; width: 100%; height: auto; }
.esign-price, .esign-end { text-align: center; padding-block: clamp(44px,6vw,80px); }
.esign-price h2 { max-width: 36ch; margin-inline: auto; text-wrap: balance; }
.esign-price p, .esign-end p { margin-inline: auto; }
.esign-price a, .esign-end a { margin-top: 14px; }
.esign-band {
  position: relative;
  --fold-height: clamp(22px, 4vw, 60px);
  background: var(--brand-purple-fill-2);
  color: white;
  padding-block: calc(var(--fold-height) + 48px) clamp(44px, 6vw, 80px);
}
.esign-band-fold {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: var(--fold-height);
  fill: var(--surface);
  pointer-events: none;
}
#main-content .esign-band h2 { color: white; }
#main-content .esign-band .esign-label { color: var(--ink-purple-lime); }
.esign-band-copy { max-width: 60ch; margin-top: 16px !important; }
.esign-band .esign-band-action { margin-top: 20px; background: transparent; color: white; border-color: white; }
.esign-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 30px; }
.esign-tools a { background: var(--surface); color: var(--text); flex-direction: column; align-items: start; justify-content: start; padding: 18px; border-radius: 4px; text-decoration: none; }
.esign-tools a:nth-child(2) { background: var(--pastel-lime); }
.esign-tools a:nth-child(3) { background: var(--pastel-purple); }
.esign-tools img { display: block; width: 52px; height: 52px; object-fit: contain; margin-bottom: 8px; }
.esign-tools strong { font-size: 1.125rem; color: var(--link-ink); }
.esign-tools a:hover strong, .esign-tools a:focus-visible strong { text-decoration: underline; }
.esign-tools span { margin-top: 5px; color: var(--text); }
.esign-details { scroll-margin-top: 84px; }
.esign-details article { padding-block: clamp(48px,7vw,100px); }
.esign-reverse > figure { grid-column: 1; grid-row: 1; }
.esign-product { padding: 12px; background: var(--menu-lavender); border-radius: 8px; }
.esign-product img { border-radius: 4px; }
.esign-product figcaption { margin-top: 6px; font-size: .875rem; color: var(--text-muted); }
.esign-confidence { padding-block: clamp(44px,6vw,80px); background: var(--brand-purple-fill-2); color: white; text-align: center; }
#main-content .esign-confidence h2 { color: white; }
.esign-confidence-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 36px; }
.esign-confidence-tools a { display: flex; flex-direction: column; gap: 10px; align-items: center; text-decoration: none; }
.esign-confidence-tools img { width: 52px; height: 52px; object-fit: contain; }
.esign-confidence-tools strong { color: white; font-size: 18px; }
.esign-confidence-tools span { color: var(--surface); font-size: 15px; }
.esign-confidence-tools a:is(:hover,:focus-visible) strong { text-decoration: underline; }
.esign-end { background: var(--menu-lavender); color: var(--text); padding-inline: clamp(20px,5vw,64px); margin-top: 52px; }
#main-content .esign-end h2 { color: var(--text); }
.esign-end p { max-width: 58ch; }
.esign-end .esign-label { color: var(--link-ink); }
@media (max-width: 740px) {
 body.public-design #main-content .esign-page :is(.pd-action,.pd-secondary) { min-height: 44px !important; font-size: 14px !important; }
 .esign-shell { width: calc(100% - 36px); }
 .esign-split, .esign-tools, .esign-confidence-tools { grid-template-columns: minmax(0,1fr); gap: 16px; }
 .esign-reverse > figure { grid-column: auto; grid-row: auto; }
 .esign-window { width: 100%; }
}

.esign-footage { padding: 0; overflow: hidden; border: 0; border-radius: 0; background: var(--surface); }
.esign-footage.esign-prepare { border: 3px solid var(--brand-purple-fill-1); border-radius: 4px; }
.esign-footage video { display: block; width: 100%; height: auto; }
.esign-plan-fact { margin-top: 14px; }
.esign-plan-fact b { color: var(--brand-purple-ink); margin-right: 8px; }
#sign-lease, #store-lease { scroll-margin-top: 84px; }

/* Readable product illustrations keep names and states as text at every width. */
.esign-footage.esign-summary { padding: 20px; border: 3px solid var(--brand-purple-fill-1); border-radius: 4px; font: 400 14px/1.5 "Open Sans", Arial, sans-serif; }
.esign-summary-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.esign-summary-head img { display: block; width: 40px; height: 40px; object-fit: contain; flex: none; }
.esign-visual-title { color: var(--text); font-size: 20px; font-weight: 600; line-height: 1.35; }
.esign-visual-meta { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.esign-progress-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 20px; }
.esign-progress-label strong { font-weight: 600; }
.esign-progress-label > span { color: var(--text-muted); }
.esign-signature-progress { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: var(--interaction-bg); }
.esign-signature-progress > span { display: block; width: 50%; height: 100%; background: var(--brand-purple-ink); }
.esign-recipient { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; border-bottom: 1px solid var(--border); }
.esign-recipient > div { min-width: 0; }
.esign-recipient strong { display: block; font-size: 16px; font-weight: 600; }
.esign-recipient > div > span { display: block; font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.esign-visual-status { flex: none; padding: 3px 8px; border-radius: 4px; font-size: 12px; line-height: 1.5; font-weight: 600; white-space: nowrap; }
.esign-status-signed { color: white; background: var(--success-ink); }
.esign-status-next { color: var(--text); background: var(--ink-purple-lime); }
.esign-visual-note { padding-top: 16px; font-size: 14px; color: var(--text-muted); }
.esign-document-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 14px; border-bottom: 1px solid var(--border); }
.esign-document-row strong { min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; }
.esign-secondary-file { color: var(--text-muted); }
.esign-stored-paper { margin-top: 20px; padding: 16px; background: var(--menu-lavender); border-top: 2px solid var(--brand-purple-fill-1); }
.esign-paper-title { font: 600 23px/1.3 Georgia, serif; color: var(--text); }
.esign-paper-term { margin-top: 5px; color: var(--text-muted); font-size: 14px; }
.esign-stored-signature { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 10px; align-items: baseline; margin-top: 17px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.esign-stored-signature > span { color: var(--text-muted); font-size: 14px; }
.esign-stored-signature > strong { font: italic 20px/1.4 Georgia,serif; font-weight: 400; overflow-wrap: anywhere; }
.esign-certificate { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--success-ink); font-weight: 600; }
.esign-recipient-ink { margin-top: 6px; font: italic 20px/1.4 Georgia, serif; color: var(--text); }
.esign-writing { min-height: 28px; }
.esign-writing > span { display: inline-block; clip-path: inset(0 calc((1 - var(--signature-reveal, 1)) * 100%) 0 0); }
.esign-sign-motion .esign-signature-progress > span { width: 100%; transform: scaleX(var(--sign-progress, 1)); transform-origin: left; transition: transform 800ms ease; }
.esign-sign-motion .esign-visual-note { min-height: 58px; }
.esign-saved-file { position: relative; transition: opacity 600ms ease, transform 600ms ease, background-color 400ms ease; }
.esign-store-note { min-height: 58px; }
.esign-store-motion .esign-stored-paper { margin-top: 12px; transition: opacity 700ms ease, transform 700ms ease; }
.esign-store-motion .esign-certificate { transition: opacity 600ms ease, transform 600ms ease; }
.esign-file-pointer { position: absolute; left: 52%; top: 24px; pointer-events: none; fill: var(--text); stroke: var(--surface); stroke-width: 1.5px; opacity: 0; transform: translate(30px, 20px); transition: opacity 250ms ease, transform 900ms ease; }
.esign-file-click { position: absolute; left: 52%; top: 24px; width: 20px; height: 20px; margin: -10px; border: 2px solid var(--brand-purple-ink); border-radius: 50%; opacity: 0; pointer-events: none; }
.esign-store-motion[data-motion-state="saving"] .esign-saved-file { opacity: 0; transform: translateY(12px); }
.esign-store-motion:is([data-motion-state="opening"],[data-motion-state="clicked"]) .esign-saved-file { background: var(--interaction-bg); }
.esign-store-motion[data-motion-state="opening"] .esign-file-pointer,
.esign-store-motion[data-motion-state="clicked"] .esign-file-pointer { opacity: 1; transform: translate(0, 0); }
.esign-store-motion[data-motion-state="clicked"] .esign-file-click { animation: esign-file-click 650ms ease-out both; }
.esign-store-motion:is([data-motion-state="saving"],[data-motion-state="saved"],[data-motion-state="opening"],[data-motion-state="clicked"]) .esign-stored-paper { opacity: 0; transform: translateY(14px); }
.esign-store-motion[data-motion-state]:not([data-motion-state="complete"]) .esign-certificate { opacity: 0; transform: translateY(8px); }
@keyframes esign-file-click { from { opacity: .8; transform: scale(.4); } to { opacity: 0; transform: scale(2); } }
@media (prefers-reduced-motion: reduce) {
 .esign-summary *, .esign-summary *::before { transition: none !important; animation: none !important; }
}
@media (max-width: 400px) {
 .esign-footage.esign-summary { padding: 16px; }
 .esign-stored-paper { padding: 12px; }
 .esign-stored-signature { grid-template-columns: minmax(0,1fr); gap: 2px; }
}
