/* Homepage story: one deal, played as the app shows it. AfterLeads does the
   talking, the visitor makes the one tap. Example data only. */
.hps{--t-quick:140ms;--t-base:220ms;--t-calm:360ms;--hps-ease:cubic-bezier(.2,.7,.2,1);display:grid;justify-items:center;gap:36px;margin-top:var(--hp-gap,72px);padding:clamp(56px,8vw,104px) 0;text-align:center;scroll-margin-top:0}
#signedOutScreen .hp .hps.hp-dark{--hp-band:#0a1226}
body.dark-mode #signedOutScreen .hp .hps.hp-dark{--hp-band:#070d1c}
.hps .hp-kicker{justify-content:center}
.hps h2{font-size:clamp(36px,7.6vw,64px);line-height:1.02;letter-spacing:-.045em;color:#fff}
.hps h2 span{color:#8fa0c4}
.hps-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;width:100%;max-width:440px;margin:28px auto 0;padding:4px;border-radius:999px;background:#ffffff12}
.hps-steps button{width:100%;min-height:44px;padding:4px 6px;border:0;border-radius:999px;background:none;color:#c1cbe0;font:600 13px/1.15 Inter,system-ui,sans-serif;white-space:normal;cursor:pointer;transition:background var(--t-base) var(--hps-ease),color var(--t-base) var(--hps-ease)}
.hps-steps button:hover{color:#fff}
.hps-steps button[aria-current="true"]{background:#fff;color:#0a1226}
.hps-stage{display:grid;justify-items:center;gap:28px;width:100%;min-width:0}
.hps{position:relative}
.hps::before{content:"";position:absolute;left:50%;top:58%;width:min(100%,720px);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(42,168,196,.26),rgba(42,168,196,.08) 60%,rgba(42,168,196,0));pointer-events:none}
.hps-copy{position:relative;min-width:0;max-width:100%}
/* The phone shows the real app: deal chat, quote sheet, Home with Needs you. */
.hps-phone{position:relative;width:min(100%,360px);border:10px solid #05080f;border-radius:46px;background:var(--hp-page);box-shadow:0 0 0 1px #ffffff2e,0 60px 110px -50px #000;overflow:hidden;text-align:left;font-family:Inter,system-ui,sans-serif}
#signedOutScreen .hp .hps-phone{--hp-ink:#0f1a33;--hp-muted:#56647c;--hp-line:#e0e5ee;--hp-won:#1c7650;--hps-teal:#0b7a8a;--hps-teal-soft:#e3f0f4;--hps-grey:#eef2f6;--hps-amber:#9a5b00;--hps-amber-soft:#fdf1dc}
body.dark-mode #signedOutScreen .hp .hps-phone{--hp-ink:#eef1fa;--hp-muted:#aebad0;--hp-line:#2a3651;--hp-won:#62d39d;--hps-teal:#5CC8DF;--hps-teal-soft:#17384a;--hps-grey:#1b2540;--hps-amber:#f3c26b;--hps-amber-soft:#3a2c12}
.hps-status{display:flex;align-items:center;justify-content:space-between;height:30px;padding:0 22px 0 26px;background:var(--hp-surface);color:var(--hp-ink);font-size:13px}
.hps-status b{font-weight:650;font-variant-numeric:tabular-nums}
.hps-status span{display:flex;align-items:flex-end;gap:2px;height:11px}
.hps-status i{width:3px;border-radius:1px;background:currentColor}
.hps-status i:nth-child(1){height:5px}.hps-status i:nth-child(2){height:8px}.hps-status i:nth-child(3){height:11px}
.hps-status em{width:20px;height:10px;margin-left:5px;border:1.5px solid currentColor;border-radius:3px;background:linear-gradient(90deg,currentColor 70%,transparent 70%) content-box;padding:1px}
.hps-screens{position:relative;height:600px;overflow:hidden}
.hps-screen{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--hp-page);transition:transform var(--t-calm) var(--hps-ease)}
.hps-home{transform:translateX(100%)}
[data-screen="home"]>.hps-deal{transform:translateX(-28%)}
[data-screen="home"]>.hps-home{transform:none}
.hps-top{display:flex;align-items:center;gap:10px;padding:10px 14px 12px 8px;background:var(--hp-surface);border-bottom:1px solid var(--hp-line)}
.hps-top i{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:#2E7D8C;color:#fff;font:600 14px/1 Inter,system-ui,sans-serif}
.hps-top div{display:grid;flex:1;min-width:0}
.hps-top b{color:var(--hp-ink);font-size:16px;font-weight:650}
.hps-top span{color:var(--hp-muted);font-size:13px}
.hps-top svg{flex:none;color:var(--hps-teal)}
.hps-top svg:first-child{color:var(--hp-ink)}
.hps-chat{display:flex;flex:1;flex-direction:column;gap:10px;min-height:0;padding:16px 14px;overflow:hidden}
.hps-chat>*{flex:none;margin:0}
.hps-note{align-self:center;padding:4px 12px;border-radius:999px;background:var(--hp-soft);color:var(--hp-muted);font-size:12px;font-weight:600}
.hps-b{max-width:86%;padding:10px 14px;border-radius:18px;font-size:15px;line-height:1.45;color:var(--hp-ink)}
.hps-b p{margin:0}
.hps-b small{display:block;margin-bottom:2px;color:var(--hp-muted);font-size:12px;font-weight:500}
.hps-in{align-self:flex-start;background:var(--hp-surface);border-bottom-left-radius:6px;box-shadow:0 1px 2px #0f1a3314}
.hps-out{align-self:flex-end;background:var(--hps-teal-soft);border-bottom-right-radius:6px}
.hps-chip{display:inline-flex;align-items:center;gap:6px;margin-top:8px!important;padding:6px 12px;border-radius:999px;background:var(--hp-surface);color:var(--hp-ink);font-size:13px;font-weight:600}
.hps-chip svg{flex:none;color:var(--hp-muted)}
.hps-chip i{font-style:normal;font-weight:500;color:var(--hp-muted)}
.hps-composer{display:flex;align-items:center;gap:10px;padding:10px 12px 14px;background:var(--hp-surface);border-top:1px solid var(--hp-line)}
.hps-composer span{flex:1;padding:11px 16px;border-radius:999px;background:var(--hps-grey);color:var(--hp-muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hps-composer b{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;background:var(--hps-teal);color:#fff}
.dark-mode .hps-composer b{color:#0b1a24}
.hps-won{align-self:center;display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:999px;background:var(--hp-won-soft);color:var(--hp-won);font-size:14px;font-weight:650}
.hps-won img{width:28px;height:28px;border-radius:50%}
.hps-typing{align-self:flex-end;display:inline-flex;gap:4px;padding:12px 14px;border-radius:18px;background:var(--hps-teal-soft)}
.hps-typing.in{align-self:flex-start;background:var(--hp-surface)}
.hps-typing i{width:6px;height:6px;border-radius:50%;background:var(--hp-muted);animation:hps-dot 1s infinite}
.hps-typing i:nth-child(2){animation-delay:.15s}.hps-typing i:nth-child(3){animation-delay:.3s}
@keyframes hps-dot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}
/* Quote sheet */
.hps-sheet{position:absolute;inset:0;display:flex;align-items:flex-end;background:#0a122600;pointer-events:none;transition:background var(--t-calm) var(--hps-ease)}
.hps-sheet-card{width:100%;padding:18px 16px 16px;border-radius:22px 22px 0 0;background:var(--hp-surface);transform:translateY(100%);transition:transform var(--t-calm) var(--hps-ease)}
.hps-sheet.open{background:#0a122673}
.hps-sheet.open .hps-sheet-card{transform:none}
.hps-sheet-card p{margin:0}
.hps-sheet-head{display:flex;justify-content:space-between;align-items:center;color:var(--hp-ink);font-size:17px}
.hps-sheet-head b{font-weight:650}
.hps-sheet-head svg{color:var(--hp-muted)}
.hps-label{margin-top:16px!important;color:var(--hp-ink);font-size:14px;font-weight:600}
.hps-field{display:flex;gap:8px;min-height:64px;margin-top:8px!important;padding:12px;border-radius:12px;background:var(--hps-grey);color:var(--hp-ink);font-size:14px;line-height:1.45}
.hps-field span{flex:1}
.hps-field span:empty::before{content:"Describe the job";color:var(--hp-muted)}
.hps-field b{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;color:var(--hp-muted);transition:background var(--t-base),color var(--t-base)}
.hps-field b.on{background:var(--hps-teal);color:#fff;animation:hps-listen 1.2s infinite}
@keyframes hps-listen{50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--hps-teal) 25%,transparent)}}
.hps-lines{display:grid;margin:12px 0 0;padding:0;list-style:none}
.hps-lines li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--hp-line);color:var(--hp-ink);font-size:14px}
.hps-lines li span{display:grid}
.hps-lines small{color:var(--hp-muted);font-size:12px}
.hps-lines b{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.hps-needs{padding:4px 10px;border-radius:999px;background:var(--hps-amber-soft);color:var(--hps-amber);font-size:12px;font-weight:650!important}
.hps-needs.typed{padding:4px 10px;border-radius:8px;background:var(--hp-surface);color:var(--hp-ink);box-shadow:0 0 0 1.5px var(--hps-teal);font-size:14px}
.hps-sheet-foot{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px;padding-top:12px;border-top:1px solid var(--hp-line)}
.hps-sheet-foot p{grid-column:1/-1;display:flex;justify-content:space-between;color:var(--hp-ink);font-size:15px}
.hps-sheet-foot p span{font-weight:650;font-variant-numeric:tabular-nums}
.hps-ghost,.hps-primary{display:grid;place-items:center;min-height:42px;border-radius:12px;font-size:14px;font-weight:600}
.hps-ghost{border:1px solid var(--hp-line);color:var(--hp-ink)}
.hps-primary{background:var(--hps-teal);color:#fff;transition:transform var(--t-quick),opacity var(--t-base)}
.dark-mode .hps-primary{color:#0b1a24}
.hps-primary.off{opacity:.45}
.hps-primary.press,.hps-send.press{transform:scale(.95)}
/* Home: Needs you */
.hps-home{padding:0 0 0}
.hps-home>p{margin:0}
.hps-appbar{display:flex;justify-content:space-between;align-items:center;padding:12px 18px 6px;color:var(--hp-ink)}
.hps-logo{display:inline-flex;align-items:center;font:600 18px/1 Inter,system-ui,sans-serif;letter-spacing:-.6px;color:var(--hp-ink)}
.hps-logo img{width:30px;height:30px;margin-right:-1px}
.hps-logo span:last-child{color:#334bd6}
.dark-mode .hps-logo span:last-child{color:#8fa3ff}
.hps-hello{display:flex;align-items:center;gap:10px;padding:12px 18px 0;color:var(--hp-muted);font-size:15px}
.hps-hello img{width:40px;height:40px;border-radius:50%;background:var(--hps-teal-soft)}
.hps-big{padding:8px 18px 0;color:var(--hp-ink);font-size:26px;font-weight:700;letter-spacing:-.03em}
.hps-handling{display:flex;align-items:center;gap:4px;padding:6px 18px 0;color:var(--hps-teal);font-size:14px}
.hps-sect{padding:18px 18px 4px;color:var(--hp-muted);font-size:13px;font-weight:600}
.hps-row{display:flex;gap:12px;margin:0 18px;padding:12px 0;border-bottom:1px solid var(--hp-line);transition:opacity var(--t-calm),transform var(--t-calm) var(--hps-ease)}
.hps-row.gone{opacity:0;transform:translateX(-24px)}
.hps-row>i{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:#2E7D8C;color:#fff;font:600 14px/1 Inter,system-ui,sans-serif;font-style:normal}
.hps-row>div{flex:1;min-width:0}
.hps-row p{margin:0}
.hps-row-head{display:flex;justify-content:space-between;align-items:baseline;color:var(--hp-ink)}
.hps-row-head b{font-size:16px;font-weight:650}
.hps-row-head span{color:var(--hp-muted);font-size:13px}
.hps-preview{margin-top:8px!important;padding:10px 12px;border-radius:14px;background:var(--hps-grey);color:var(--hp-ink);font-size:14px;line-height:1.45}
.hps-preview .hps-chip{display:flex;width:max-content}
.hps-row-act{display:flex;align-items:center;gap:18px;margin-top:10px!important}
.hps-row-act>span{color:var(--hp-muted);font-size:15px;font-weight:600}
.hps-send{position:relative;min-height:42px;padding:0 18px;border:0;border-radius:12px;background:var(--hps-teal);color:#fff;font:600 15px/1 Inter,system-ui,sans-serif;cursor:pointer;transition:background var(--t-base) var(--hps-ease),transform var(--t-quick) var(--hps-ease)}
.dark-mode .hps-send{color:#0b1a24}
.hps-send:active{transform:scale(.97)}
.hps-send.waiting::after{content:"";position:absolute;inset:-5px;border-radius:16px;border:2px solid var(--hps-teal);opacity:0;animation:hps-ring 1.6s var(--hps-ease) infinite}
@keyframes hps-ring{0%{opacity:.55;transform:scale(.96)}100%{opacity:0;transform:scale(1.12)}}
.hps-send.done{background:var(--hp-won);color:#fff}
.hps-fab{position:absolute;right:16px;bottom:82px;display:inline-flex;align-items:center;gap:6px;padding:12px 18px;border-radius:999px;background:var(--hps-teal);color:#fff;font-size:15px;font-weight:650;box-shadow:0 10px 24px -10px #0f1a3399}
.dark-mode .hps-fab{color:#0b1a24}
.hps-tabs{position:absolute;left:0;right:0;bottom:0;display:grid!important;grid-template-columns:repeat(4,1fr);padding:8px 8px 12px;background:var(--hp-surface);border-top:1px solid var(--hp-line)}
.hps-tabs span{display:grid;justify-items:center;gap:3px;padding:6px 0;border-radius:14px;color:var(--hp-muted);font-size:12px}
.hps-tabs span.on{background:var(--hps-teal-soft);color:var(--hps-teal)}
.hps-tabs i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--hps-teal-soft);color:var(--hps-teal);font-size:9px;font-weight:700;font-style:normal}
/* Playback */
.hps-live [data-hps-step]{display:none}
.hps-live [data-hps-step].is-in{display:block;animation:hps-in var(--t-calm) var(--hps-ease)}
.hps-live .hps-won.is-in{display:inline-flex}
.hps-live .hps-lines li{display:none}
.hps-live .hps-lines li.is-in{display:flex;animation:hps-in var(--t-calm) var(--hps-ease)}
@keyframes hps-in{from{opacity:0;transform:translateY(10px)}}
.hps:not(.hps-live) .hps-sheet,.hps:not(.hps-live) .hps-home{display:none}
.hps:not(.hps-live) .hps-screens{height:auto}
.hps:not(.hps-live) .hps-deal{position:static}
.hps-replay{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border:0;background:none;color:#c1cbe0;font:500 14px/1 Inter,system-ui,sans-serif;cursor:pointer}
.hps-replay[hidden]{display:inline-flex;visibility:hidden}
.hps-replay:hover{color:#fff}
.hps-stat{position:relative;display:grid;gap:4px;margin:0;color:#c1cbe0;font-size:15px}
.hps-stat>span:first-child{color:#8fa0c4;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.hps-stat b{display:block;color:#fff;font-size:clamp(56px,9vw,104px);font-weight:680;letter-spacing:-.05em;font-variant-numeric:tabular-nums;line-height:1}
.hps-stat b.bump{animation:hps-bump var(--t-calm) var(--hps-ease)}
.hps-stats{position:relative;display:grid;grid-template-columns:1fr 1fr;justify-items:center;width:100%}
@keyframes hps-bump{40%{transform:scale(1.12);color:#5CC8DF}}
.hps-steps button b{display:none}
.hps-steps button span{font-weight:600}
@media(min-width:900px){.hps{grid-template-columns:minmax(0,1fr) 380px;grid-template-rows:auto 1fr auto;justify-items:stretch;align-items:start;gap:0 96px;margin-top:72px;padding:88px 0;text-align:left}.hps::before{left:auto;right:-50px;top:50%;width:480px;transform:translateY(-50%)}.hps .hp-kicker{justify-content:flex-start}.hps-copy{grid-column:1;grid-row:1}.hps-stage{display:contents}.hps-phone{grid-column:2;grid-row:1/4;width:380px}.hps-stats{grid-column:1;grid-row:3;align-self:end;display:flex;gap:64px;width:auto;padding-top:28px;border-top:1px solid #ffffff1f;justify-items:start}.hps-replay{grid-column:2;grid-row:4;justify-self:center;margin-top:10px}.hps-screens{height:640px}.hps-steps{display:grid;grid-template-columns:1fr;gap:0;width:auto;margin:36px 0 0;padding:0;border-radius:0;background:none;max-width:460px}.hps-steps button{display:grid;gap:4px;width:100%;min-height:0;padding:14px 0 14px 20px;border-radius:0;border-left:2px solid #ffffff1f;background:none;color:#8fa0c4;text-align:left;white-space:normal;font-weight:400}.hps-steps button b{display:block;color:#c1cbe0;font-size:18px;font-weight:650}.hps-steps button span{display:none}.hps-steps button[aria-current="true"]{background:none;border-left-color:#5CC8DF;color:#c1cbe0}.hps-steps button[aria-current="true"] b{color:#fff}.hps-stat b{font-size:72px}}
@media (prefers-reduced-motion:reduce){.hps *{animation:none!important;transition:none!important}.hps-screens{height:auto}.hps-chat{overflow:visible}}

/* One spacing rhythm between every homepage section. */
#signedOutScreen .hp{--hp-gap:72px}
@media(min-width:621px){#signedOutScreen .hp{--hp-gap:104px}}
#signedOutScreen .hp .hp-hero{padding-bottom:0}
#signedOutScreen .hp .hp-offer{padding:var(--hp-gap) 0}
#signedOutScreen .hp .hp-faq{margin:0;padding:clamp(48px,7vw,88px) 0}
#signedOutScreen .hp .hp-close.hp-band{margin:0;padding:40px 0 32px}
body.signed-out-mode main.shell:has(#signedOutScreen:not([hidden]) .hp-close){padding-bottom:0}
/* Phone bottom bar: calendar, notifications, profile. */

/* Advantage loop: one teal thread, the attention step stays amber. */

/* Secondary links under the launch card: quieter than the questions beside them. */
#signedOutScreen .hp .hp-faq .hp-faq-links .hp-text-link{color:rgba(255,255,255,.72);font-size:14px;font-weight:500}
#signedOutScreen .hp .hp-faq .hp-faq-links .hp-text-link:hover{color:#fff}

/* The section heading matches the other homepage section headings. */


