/* The plans page. It sits on the landing page's styles (landing.css) and adds only what is new here. */

/* Hero: the three price tags fanned out where the landing page has the phone */
.pl-visual { padding: 40px 0 96px; }
.pl-tags { display: flex; align-items: flex-end; }
.pl-tag { display: flex; flex-direction: column; justify-content: flex-end; width: 160px; height: 190px; margin: 0 -14px; padding: 22px 20px; border-radius: 22px; background: #fff; color: var(--ai-ink); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); }
.pl-tag:first-child { transform: rotate(-8deg) translateY(10px); }
.pl-tag:last-child { align-items: flex-end; text-align: right; transform: rotate(8deg) translateY(10px); }
/* One person, a team, a whole company: the icons grow with the plan */
.pl-tag-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: auto; border-radius: 14px; background: var(--ai-cream); color: #8a6a00; font-size: 22px; }
.pl-tag.is-featured .pl-tag-icon { background: var(--ai-ink); color: var(--ai-yellow); }
.pl-tag.is-featured { position: relative; z-index: 1; height: 230px; background: var(--ai-yellow); }
.pl .pl-tag p { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ai-muted); }
.pl .pl-tag.is-featured p { color: #5c4a00; }
.pl-tag b { font-family: Montserrat, sans-serif; font-size: 28px; font-weight: 800; line-height: 1; }
.pl .pl-float-budget { left: -24px; bottom: -48px; display: grid; gap: 10px; max-width: 280px; padding: 16px 20px 16px 16px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.pl-float-budget li { display: flex; align-items: center; gap: 12px; }
.pl-float-budget i { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ai-a); color: #fff; }
.pl .ai-float-toast { top: 0; right: -24px; }

/* Plan cards */
.pl-head { max-width: 860px; }
.pl-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pl-plan { position: relative; display: flex; flex-direction: column; padding: 32px 30px; border: 1px solid var(--ai-line); border-radius: var(--ai-radius); background: #fff; }
.pl-plan.is-featured { border-color: var(--ai-ink); background: var(--ai-ink); color: var(--ai-on-dark); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5); }
.pl .pl-plan-tag { position: absolute; top: -13px; left: 30px; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--ai-yellow); color: #111; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pl-plan-head { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--ai-line); }
.pl-plan.is-featured .pl-plan-head { border-color: var(--ai-dark-line); }
.pl-plan h3 { margin-bottom: 6px; font-size: 22px; font-weight: 800; }
.pl-plan.is-featured h3 { color: #fff; }
.pl .pl-price { margin: 0; font-family: Montserrat, sans-serif; font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--ai-yellow-deep); }
.pl-plan.is-featured .pl-price { color: var(--ai-yellow); }
.pl-price span { display: block; margin-top: 4px; font-family: Lato, sans-serif; font-size: 14px; font-weight: 700; color: var(--ai-muted); }
.pl .pl-includes { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pl-includes i { color: var(--ai-yellow-deep); }
.pl-plan.is-featured .pl-includes { color: #fff; }
.pl-plan.is-featured .pl-includes i { color: var(--ai-yellow); }
.pl .pl-features { flex: 1; margin: 0 0 28px; padding: 0; list-style: none; }
.pl-features > li { position: relative; margin-bottom: 12px; padding-left: 28px; font-size: 15px; line-height: 1.45; }
.pl-features > li::before { content: "\f00c"; position: absolute; left: 0; top: 1px; font-family: "Font Awesome 5 Free"; font-size: 13px; font-weight: 900; color: var(--ai-yellow-deep); }
.pl-plan.is-featured .pl-features > li::before { color: var(--ai-yellow); }
.pl .pl-features ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.pl-features ul li { margin-bottom: 2px; }
.pl-plan .ai-btn { justify-content: center; }
.pl .ai-btn.is-outline { border-color: var(--ai-ink); background: transparent; }
.pl .ai-btn.is-outline:hover { background: var(--ai-ink); color: #fff; }

/* Comparison table: the Professional column carries the same tint as its card */
.pl-table-wrap { max-width: 1040px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--ai-line); border-radius: var(--ai-radius); }
.pl-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pl-table th, .pl-table td { padding: 14px 18px; border-bottom: 1px solid var(--ai-line); }
.pl-table tbody tr:last-child th, .pl-table tbody tr:last-child td { border-bottom: 0; }
.pl-table thead th { padding-top: 20px; font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.pl-table tbody th { font-weight: 700; text-align: left; }
.pl-table td { width: 19%; text-align: center; font-variant-numeric: tabular-nums; }
.pl-table .is-featured { background: var(--ai-cream); }
.pl-table tbody tr:nth-child(even) th, .pl-table tbody tr:nth-child(even) td:not(.is-featured) { background: #fdfcf8; }
.pl-table .is-yes { color: var(--ai-a); font-size: 17px; }
.pl-table .is-no { color: #c9c6bb; font-size: 17px; }

/* Add-ons */
.pl-addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; }
.pl-addon { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: start; gap: 18px; padding: 24px; border: 1px solid var(--ai-line); border-radius: var(--ai-radius); background: #fff; }
.pl-addon-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ai-cream); color: #8a6a00; font-size: 20px; }
.pl .pl-addon-name { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ai-yellow-deep); }
.pl-addon h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.pl .pl-addon-text { margin: 0; font-size: 15px; color: var(--ai-ink-soft); }
.pl .pl-addon-price { margin: 0; font-family: Montserrat, sans-serif; font-size: 24px; font-weight: 800; text-align: right; white-space: nowrap; }
.pl-addon-price span { display: block; max-width: 96px; margin-left: auto; font-family: Lato, sans-serif; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: normal; color: var(--ai-muted); }

/* Closing call to action */
.pl .pl-final-quote { margin: 32px 0 0; font-family: Montserrat, sans-serif; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.35; color: #fff; text-wrap: balance; }
.pl-final-quote .fw-bold { color: var(--ai-yellow); }
.pl .pl-final-title { margin-top: 48px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: #fff; }

@media (max-width: 991.98px) {
    .pl-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; row-gap: 28px; }
    .pl-addons { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
    .pl .pl-float-budget { left: calc(50% - 250px); }
    .pl .ai-float-toast { right: calc(50% - 250px); }
}
@media (max-width: 575.98px) {
    .pl-visual { padding: 24px 0 0; }
    .pl-tag { width: 108px; height: 150px; margin: 0 -2px; padding: 16px 12px; border-radius: 18px; }
    .pl .pl-tag p { font-size: 10px; letter-spacing: .02em; }
    .pl-tag.is-featured { height: 180px; }
    .pl-tag b { font-size: 21px; }
    .pl-tag-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 17px; }
    .pl .pl-float-budget { position: relative; left: auto; bottom: auto; margin-top: 36px; }
    .pl-plan { padding: 28px 22px; }
    /* Too narrow for four columns, so each feature's name gets its own line above the three values */
    .pl-table, .pl-table thead, .pl-table tbody { display: block; }
    .pl-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--ai-line); }
    .pl-table tbody tr:last-child { border-bottom: 0; }
    .pl-table th, .pl-table td { width: auto; padding: 8px 6px; border-bottom: 0; font-size: 13px; }
    .pl-table thead td { display: none; }
    .pl-table thead th { padding: 14px 4px 10px; font-size: 10px; letter-spacing: .02em; }
    .pl-table tbody th { grid-column: 1 / -1; padding: 12px 14px 2px; }
    .pl-table td { padding-bottom: 12px; }
    .pl-addon { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px; }
    .pl-addon-icon { width: 44px; height: 44px; font-size: 17px; }
    .pl .pl-addon-price { grid-column: 2; text-align: left; }
    .pl-addon-price span { display: inline; max-width: none; margin-left: 6px; }
}
