/* Benefit-led public homepage. Shared legal/form styles stay in styles.css. */
.benefits-home { background: #fffefa; scrollbar-color: #698578 #f5f6f2; }
.benefits-home .button { border-radius: 8px; }
.benefits-home .button-primary { background: #00c853; color: #031631; }
.benefits-home .button-primary:hover { background: #42dd82; }
.benefit-hero { padding: 28px 0 0; }
.benefit-opening { margin-bottom: 24px; }
.benefit-opening h1 { font-size: clamp(2.4rem, 3.8vw, 3.5rem); font-weight: 650; line-height: 1.08; letter-spacing: -.04em; margin-bottom: 16px; }
.benefit-opening h1 span { color: #00654f; }
.benefit-lead { max-width: 660px; margin: 0; font-size: 1.125rem; line-height: 1.65; }
.opening-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 18px; }
.opening-action .button { width: auto; }
.opening-action p { font-size: .83rem; line-height: 1.6; margin: 0; }
.connected-product { background: #031631; color: #fff; padding: 28px 28px 18px; border-radius: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1.65fr); column-gap: 26px; align-items: center; }
.connected-product h2 { font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; margin: 0 0 24px; display: flex; align-items: center; gap: 10px; text-wrap: initial; }
.flow-step { display: inline-flex; justify-content: center; align-items: center; width: 26px; height: 26px; border: 1px solid #4d746c; border-radius: 50%; flex: 0 0 auto; font-size: .8rem; font-weight: 600; color: #7ce5b1; }
.route-phones { display: flex; align-items: center; justify-content: center; gap: 13px; }
.route-phone { min-width: 0; width: 130px; display: block; }
.route-phone img { width: 100%; height: auto; border-radius: 16px; }
.route-phone > span { display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; font-size: .8rem; margin-top: 13px; color: #8eefb4; text-decoration: underline; text-underline-offset: 4px; }
.route-phone .icon { width: 14px; height: 14px; }
.route-phone:hover > span { color: white; }
.route-or { font-size: .8rem; color: #bed0de; }
.application-routes > p, .finance-destination > p { font-size: .8rem; line-height: 1.6; color: #c4d1df; margin: 16px 0 0; }
.application-routes > p { text-align: center; }
.application-handoff { position: relative; text-align: center; color: #82e8b5; padding-top: 30px; }
.handoff-line { position: absolute; left: -22px; right: -22px; top: 8px; height: 1px; background: #69bf9c; }
.handoff-line::after { content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid #69bf9c; border-right: 1px solid #69bf9c; transform: rotate(45deg); }
.document-icon { width: 36px; height: 42px; margin-bottom: 10px; }
.application-handoff p { margin: 0; color: #fff; font-size: .85rem; line-height: 1.5; }
.application-handoff strong { font-weight: 600; }
.application-handoff p > span { display: block; margin-top: 8px; font-size: .75rem; color: #bfd4d4; }
.connected-dashboard { display: block; border-radius: 8px; overflow: hidden; background: #fff; }
.connected-dashboard img { width: 100%; height: auto; }
.connected-dashboard > span { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; background: #14312f; color: #a7f2c5; font-size: .8rem; }
.connected-dashboard:hover > span { background: #224a40; color: white; }
.connected-dashboard .icon { width: 16px; height: 16px; }
.connected-product .connected-caption { grid-column: 1 / -1; margin: 24px 0 0; font-size: .69rem; color: #a9bdce; text-align: right; }
.connected-product :focus-visible { outline-color: #90f0b5; }
.workflow-result { display: flex; align-items: center; gap: 14px; padding: 22px 0; border-bottom: 1px solid #cedad3; }
.workflow-result .flow-step { color: #00654f; border-color: #91b9a3; }
.workflow-result p { margin: 0; font-size: .9rem; flex: 1; }
.workflow-result strong { color: #102e2a; }
.workflow-result a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem; color: #00654f; text-decoration: underline; text-underline-offset: 4px; }
.benefits-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: end; margin-bottom: 42px; }
.benefits-intro h2 { margin: 0; }
.benefits-intro p { margin: 0; max-width: 470px; line-height: 1.75; }
.benefit-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 90px; }
.benefit-rows article { border-top: 1px solid #cbd7d0; padding: 26px 0 30px; }
.benefit-rows h3 { font-size: 1.35rem; margin-bottom: 14px; }
.benefit-rows p { max-width: 490px; margin-bottom: 12px; line-height: 1.7; }
.benefit-rows .text-link { font-size: .9rem; }
.employee-section { background: #eaf1eb; }
.employee-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.employee-intro > p { max-width: 420px; line-height: 1.7; }
.ava-signature { margin-top: 32px; display: flex; align-items: center; gap: 18px; }
.ava-signature img { width: 90px; height: 90px; border-radius: 12px; }
.ava-signature strong { display: block; font-size: 1.1rem; font-weight: 650; }
.ava-signature span span { display: block; font-size: .85rem; color: #475e55; margin-top: 4px; }
.channel-explanations article + article { border-top: 1px solid #b7cfc0; margin-top: 28px; padding-top: 28px; }
.channel-explanations h3 { font-size: 1.4rem; margin-bottom: 12px; }
.channel-explanations p { line-height: 1.7; }
.channel-explanations .channel-note, .channel-requirement { font-size: .85rem; color: #42584c; }
.channel-requirement { margin-top: 24px; margin-bottom: 0; }
.process-section .section-intro { max-width: 690px; }
.process-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 40px 0 0; padding: 0; gap: 36px; }
.process-steps li { border-top: 1px solid #8eb2a0; padding-top: 22px; }
.process-number { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; background: #dceee2; color: #00654f; font-weight: 700; border-radius: 50%; margin-bottom: 18px; }
.process-steps h3 { margin-bottom: 12px; }
.process-steps p { font-size: .96rem; line-height: 1.7; margin: 0; }
.finance-mobile { display: flex; align-items: center; gap: 40px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #cbd7d0; }
.finance-mobile p { margin: 0; max-width: 810px; font-size: .95rem; }
.finance-mobile strong { color: #102e2a; }
.finance-mobile a { margin-left: auto; white-space: nowrap; }
.setup-section { background: #f3f0e6; }
.setup-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.setup-layout p { line-height: 1.75; max-width: 500px; }
.setup-layout p:last-child { margin-bottom: 0; }
.setup-next { padding-left: 32px; border-left: 1px solid #bdbda8; }
.setup-next h3 { font-size: 1.3rem; }
.benefits-home .demo-section { background: #eaf1eb; }
.benefits-home .demo-form { box-shadow: none; }
@media (max-width: 1120px) {
  .connected-product { grid-template-columns: minmax(0, 1fr) 122px minmax(0, 1.3fr); gap: 20px; padding-inline: 22px; }
  .route-phones { gap: 8px; }
  .route-phone > span { font-size: .72rem; }
  .connected-product h2 { font-size: .9rem; }
  .benefits-intro, .benefit-rows, .employee-layout, .setup-layout { column-gap: 48px; }
}
@media (max-width: 800px) {
  .benefit-hero { padding-top: 24px; }
  .benefit-opening h1 { font-size: clamp(2.4rem, 6.2vw, 3.6rem); }
  .connected-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 40px; align-items: start; }
  .application-routes { grid-column: 1; grid-row: 1 / 3; }
  .application-handoff { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 12px; text-align: left; padding: 0 0 20px; }
  .application-handoff .document-icon { flex-shrink: 0; margin: 0; width: 30px; }
  .application-handoff p > span { margin-top: 4px; }
  .application-handoff br { display: none; }
  .handoff-line { left: -30px; right: auto; width: 20px; top: 24px; }
  .finance-destination { grid-column: 2; grid-row: 2; }
  .connected-product h2 { align-items: flex-start; }
  .connected-caption { margin-top: 20px; }
  .workflow-result { flex-wrap: wrap; }
  .workflow-result p { flex-basis: calc(100% - 40px); }
  .workflow-result a { margin-left: 40px; }
  .benefits-intro, .employee-layout, .setup-layout { grid-template-columns: 1fr; gap: 30px; }
  .benefits-intro p, .employee-intro > p { max-width: 650px; }
  .employee-intro { position: relative; padding-right: 135px; }
  .ava-signature { position: absolute; right: 0; top: 0; display: block; margin: 0; width: 110px; }
  .ava-signature > span { display: block; margin-top: 10px; }
  .ava-signature img { width: 76px; height: 76px; }
  .ava-signature span span { font-size: .75rem; }
  .process-steps { gap: 24px; }
  .finance-mobile { align-items: flex-start; }
  .setup-next { padding: 24px 0 0; border-left: 0; border-top: 1px solid #bdbda8; }
}
@media (max-width: 600px) {
  .benefit-opening h1 { font-size: clamp(2.25rem, 8.7vw, 3.2rem); }
  .benefit-lead { font-size: 1rem; line-height: 1.7; }
  .opening-action { flex-direction: column; align-items: flex-start; gap: 12px; }
  .opening-action p br { display: none; }
  .opening-action p { font-size: .8rem; }
  .connected-product { display: flex; flex-direction: column; align-items: stretch; padding: 24px 18px 18px; gap: 0; }
  .connected-product h2 { font-size: 1rem; margin-bottom: 22px; align-items: center; }
  .route-phones { gap: 14px; }
  .route-phone { width: 118px; }
  .route-phone > span { font-size: .77rem; }
  .application-routes > p { margin-bottom: 0; }
  .application-handoff { padding: 30px 0 30px 46px; margin: 24px 0; border-top: 1px solid #304b55; border-bottom: 1px solid #304b55; }
  .application-handoff .handoff-line { width: 1px; height: 52px; left: 15px; top: 50%; margin-top: -26px; }
  .handoff-line::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); }
  .application-handoff p { font-size: .85rem; }
  .application-handoff p > span { font-size: .75rem; }
  .connected-product .connected-caption { text-align: left; line-height: 1.6; }
  .workflow-result { gap: 10px; }
  .workflow-result p { font-size: .85rem; }
  .workflow-result a { margin-left: 36px; }
  .benefit-rows { grid-template-columns: 1fr; }
  .benefit-rows article:last-child { padding-bottom: 0; }
  .benefits-intro { margin-bottom: 28px; gap: 16px; }
  .benefits-intro h2 br, .employee-intro h2 br, .setup-layout h2 br, .process-section h2 br { display: none; }
  .employee-intro { padding: 0; }
  .ava-signature { position: static; display: flex; width: auto; margin-top: 24px; }
  .ava-signature > span { margin: 0; }
  .ava-signature span span { font-size: .85rem; }
  .process-steps { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
  .process-steps li { display: flex; align-items: flex-start; gap: 16px; }
  .process-number { flex-shrink: 0; width: 28px; height: 28px; font-size: .85rem; }
  .finance-mobile { flex-direction: column; gap: 16px; margin-top: 30px; }
  .finance-mobile a { margin-left: 0; }
}

/* Desktop opening: the product story shares the first screen with the copy. */
@media (min-width: 1101px) {
  .hero-composition { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.55fr); column-gap: 32px; align-items: center; }
  .benefit-opening { margin-bottom: 0; padding-block: 12px; }
  .benefit-opening h1 { font-size: clamp(2.4rem, 3.2vw, 2.9rem); line-height: 1.1; text-wrap: balance; }
  .benefit-opening h1 span { display: block; }
  .benefit-lead { font-size: 1rem; line-height: 1.6; }
  .opening-action { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 22px; }
  .opening-action p { font-size: .78rem; }
  .opening-action p br { display: none; }
  .connected-product { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1.35fr); column-gap: 16px; padding: 22px 20px 16px; }
  .connected-product h2 { font-size: .83rem; align-items: flex-start; gap: 7px; margin-bottom: 16px; }
  .connected-product .flow-step { width: 22px; height: 22px; font-size: .72rem; }
  .route-phones { gap: 8px; }
  .route-phone { width: 96px; }
  .route-phone img { border-radius: 12px; }
  .route-phone > span { font-size: .7rem; gap: 3px; margin-top: 10px; }
  .route-phone .icon { width: 11px; height: 11px; }
  .application-routes > p, .finance-destination > p { font-size: .75rem; margin-top: 12px; }
  .application-handoff { padding-top: 24px; }
  .handoff-line { left: -12px; right: -12px; }
  .document-icon { width: 28px; height: 33px; }
  .application-handoff p { font-size: .75rem; }
  .application-handoff p > span { font-size: .68rem; }
  .application-handoff br { display: none; }
  .connected-dashboard > span { font-size: .74rem; padding: 9px 10px; }
  .connected-product .connected-caption { margin-top: 18px; font-size: .64rem; text-align: left; }
  .workflow-result { grid-column: 1 / -1; margin-top: 16px; padding: 16px 0; }
}
