/* AutoApplyMax for Business — thin layer on the site design system (landing.css tokens + components:
   .section-container / .section-header / .section-badge / .feature-card / .feature-icon / .btn, and on the
   pricing page pricing-cards.css .pcard). 2026-11-08 v2 (Théo: same look as the homepage and /pricing). */

.biz-hero { padding: 132px 24px 72px; text-align: center; background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%); }
.biz-hero .section-badge { margin-bottom: 18px; }
.biz-hero h1 { font-size: 52px; line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; color: var(--text-primary); max-width: 900px; margin: 0 auto 18px; text-wrap: balance; }
.biz-hero h1 .accent { background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.biz-hero p.lead { font-size: 19px; line-height: 1.6; color: var(--text-secondary); max-width: 700px; margin: 0 auto 30px; }
.biz-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.biz-actions .btn { min-width: 190px; }
.biz-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 940px; margin: 48px auto 0; }
.biz-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 16px; text-align: center; }
.biz-stat b { display: block; font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.biz-stat span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--text-secondary); }

.biz-section { padding: 88px 0; }
.biz-section.alt { background: var(--bg-secondary); }
.biz-section .section-header { margin-bottom: 44px; }

.biz-offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-offer { display: flex; flex-direction: column; }
.biz-offer h3 { font-size: 21px; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; }
.biz-offer > p { font-size: 15.5px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 14px; }
.biz-offer ul { list-style: none; margin: 0 0 20px; padding: 0; }
.biz-offer li { position: relative; padding: 6px 0 6px 26px; font-size: 14.5px; color: var(--text-primary); line-height: 1.5; }
.biz-offer li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 11px; height: 6px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.biz-offer .biz-price-line { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-light); font-size: 14px; color: var(--text-secondary); }
.biz-offer .biz-price-line b { color: var(--text-primary); font-size: 18px; }
.biz-offer .btn { margin-top: 14px; }

.biz-users { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.biz-users .feature-card { padding: 24px; }
.biz-users h3 { font-size: 17px; margin: 0 0 6px; color: var(--text-primary); }
.biz-users p { font-size: 14.5px; margin: 0; color: var(--text-secondary); line-height: 1.55; }

.biz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.biz-steps .feature-card { padding: 24px; }
.biz-steps b { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary-gradient); color: #fff; font-weight: 800; margin-bottom: 12px; }
.biz-steps h3 { font-size: 16.5px; margin: 0 0 6px; color: var(--text-primary); }
.biz-steps p { font-size: 14.5px; margin: 0; color: var(--text-secondary); line-height: 1.55; }

.biz-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.biz-trust .feature-card { padding: 24px; }
.biz-trust h3 { font-size: 16.5px; margin: 0 0 6px; color: var(--text-primary); }
.biz-trust p { font-size: 14.5px; color: var(--text-secondary); margin: 0; line-height: 1.55; }
.biz-trust a { color: var(--primary); font-weight: 600; }

.biz-note { text-align: center; font-size: 14px; color: var(--text-secondary); margin: 22px auto 0; max-width: 820px; }
.biz-note a { color: var(--primary); font-weight: 600; }
.biz-schools { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 28px; }
.biz-schools h3 { margin: 0 0 4px; font-size: 19px; color: var(--text-primary); }
.biz-schools p { margin: 0; color: var(--text-secondary); font-size: 15px; }
.biz-cta { background: var(--primary-gradient); color: #fff; border-radius: var(--radius-xl); padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.biz-cta h2 { color: #fff; font-size: 28px; margin: 0 0 6px; }
.biz-cta p { margin: 0; color: rgba(255,255,255,.92); font-size: 16px; }

/* pricing page */
.biz-cur { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-full); margin-top: 6px; }
.biz-cur button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--text-secondary); cursor: pointer; }
.biz-cur button.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.biz-group { margin-top: 64px; }
.biz-group:first-of-type { margin-top: 8px; }
.biz-group-head { text-align: center; margin-bottom: 22px; }
.biz-group-head h2 { margin: 0 0 6px; font-size: 30px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; }
.biz-group-head p { margin: 0 auto; color: var(--text-secondary); font-size: 16px; max-width: 640px; }
.biz-group .pcards { margin-top: 0; }
.biz-included { max-width: 980px; margin: 16px auto 0; padding: 14px 18px; background: #f0f7ff; border: 1px solid #cfe3fa; border-radius: var(--radius-md); font-size: 14.5px; color: var(--text-primary); text-align: center; }
.biz-how { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.biz-how .feature-card { padding: 24px; }
.biz-how h3 { font-size: 16.5px; margin: 0 0 6px; color: var(--text-primary); }
.biz-how p { font-size: 14.5px; margin: 0; color: var(--text-secondary); line-height: 1.55; }
.biz-faq { max-width: 820px; margin: 0 auto; }
.biz-faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 10px; }
.biz-faq summary { cursor: pointer; font-weight: 700; color: var(--text-primary); font-size: 16px; }
.biz-faq details p { margin: 10px 0 0; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.biz-faq a { color: var(--primary); font-weight: 600; }

@media (max-width: 1024px) {
  .biz-offers, .biz-trust, .biz-how { grid-template-columns: 1fr; }
  .biz-users, .biz-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .biz-hero { padding: 104px 16px 52px; }
  .biz-hero h1 { font-size: 34px; }
  .biz-hero p.lead { font-size: 17px; }
  .biz-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .biz-stat b { font-size: 24px; }
  .biz-users, .biz-steps { grid-template-columns: 1fr; }
  .biz-section { padding: 60px 0; }
  .biz-group-head h2 { font-size: 25px; }
  .biz-cta { padding: 28px 22px; }
  .biz-cta h2 { font-size: 23px; }
  .biz-actions .btn { width: 100%; }
}

/* v3: feature grid (6 cards) + plans */
.biz-offer .biz-price-line a { color: var(--primary); font-weight: 600; text-decoration: none; }
.biz-offer--main { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.biz-tag { align-self: flex-start; display: inline-block; padding: 4px 10px; margin-bottom: 10px; border-radius: var(--radius-full); background: #e0f2fe; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.biz-big { font-size: 30px; font-weight: 800; color: var(--text-primary); }
.biz-offer ul + .btn { margin-top: auto; }
.pcard-worth { display: block; margin-top: 4px; color: var(--primary); font-weight: 600; }
/* v4: "Who you will meet" cards with icons (Théo liked the earlier card + icon layout) */
.biz-users--icons { grid-template-columns: repeat(3, 1fr); }
.biz-users--icons .feature-card { padding: 28px; }
.biz-users--icons .feature-icon { margin-bottom: 16px; }
@media (max-width: 1024px) { .biz-users--icons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .biz-users--icons { grid-template-columns: 1fr; } }
/* v4: legal pages */
.biz-legal { max-width: 860px; }
.biz-legal h2 { font-size: 22px; font-weight: 800; color: var(--text-primary); margin: 34px 0 10px; }
.biz-legal h2:first-child { margin-top: 0; }
.biz-legal p, .biz-legal li { font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
.biz-legal ul { padding-left: 20px; }
.biz-legal a { color: var(--primary); font-weight: 600; }
.biz-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.biz-table th, .biz-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-light); vertical-align: top; color: var(--text-secondary); }
.biz-table th { background: var(--bg-secondary); color: var(--text-primary); font-size: 13px; }
@media (max-width: 760px) { .biz-table, .biz-table tbody, .biz-table tr, .biz-table td { display: block; width: 100%; } .biz-table thead { display: none; } .biz-table td:first-child { font-weight: 700; color: var(--text-primary); } }
.biz-how a { color: var(--primary); font-weight: 600; }

/* v5 (Théo): every card group aligned row by row — title, price, list, button on the same baseline.
   Pricing cards: 6 shared rows (label · name · who · price · list · CTA) through subgrid; list stays a block. */
.biz-group .pcards { grid-template-rows: repeat(6, auto); }
.biz-group .pcards .pcard { grid-row: span 6; }
@supports (grid-template-rows: subgrid) {
  .biz-group .pcards .pcard { display: grid; grid-template-rows: subgrid; row-gap: 0; }
  .biz-group .pcards .pcard-list { display: block; margin-bottom: 16px; }
}
.biz-group .pcards .pcard > .btn { align-self: end; }
@media (max-width: 900px) {
  .biz-group .pcards { grid-template-rows: none; }
  .biz-group .pcards .pcard { grid-row: auto; display: flex; flex-direction: column; }
  .biz-group .pcards .pcard > .btn { margin-top: auto; }
}
/* /business feature + plan cards: 5 shared rows (icon or tag · title · text · list · price line or CTA) */
.biz-offers { grid-auto-rows: auto; }
@supports (grid-template-rows: subgrid) {
  .biz-offers > .biz-offer { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .biz-offers > .biz-offer > .biz-tag, .biz-offers > .biz-offer > .feature-icon { justify-self: start; }
  .biz-offers > .biz-offer > .btn, .biz-offers > .biz-offer > .biz-price-line { align-self: end; }
}
@media (max-width: 1024px) {
  .biz-offers > .biz-offer { display: flex; flex-direction: column; grid-row: auto; }
}
.biz-offer .biz-price-line { line-height: 24px; } .biz-offer .biz-price-line b { line-height: 24px; display: inline-block; }
/* Plans row with the Enterprise card (2026-11-09): 4 aligned cards on wide screens, 2 on tablets, 1 on phones. */
.biz-offers.biz-offers--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1180px) { .biz-offers.biz-offers--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .biz-offers.biz-offers--4 { grid-template-columns: 1fr; } }
/* 2026-11-09: link from the www B2B pages to the pro site (pro.autoapplymax.com) */
.biz-prolink { margin: 16px auto 0; font-size: 14.5px; color: var(--text-secondary); }
.biz-prolink a { color: var(--primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
.biz-prolink a:hover { text-decoration: underline; }

/* E2E 2026-11-10: landing.js fades .feature-card / .pricing-card / .step-card in on scroll (opacity 0 → 1, 0.6 s).
   Business pages show their offer and price cards at rest: never transparent, never caught half-faded. */
.animate-target, .animate-target.animate-in { opacity: 1 !important; transform: none !important; transition: none !important; }
