/* Pricing page. Reuses landing tokens from styles.css plus a vivid emerald accent. */
.io-home-simple { --io: url("assets/icons/home-simple.svg"); }
/* Vivid emerald accent for icons, checks and highlights (not for small text). */
.pricing-page { --vivid: #14b07a; --vivid-deep: #0d8f62; --vivid-soft: #d6f5e7; }
.main-nav a[aria-current="page"] { color: var(--green); }

/* Hero */
.pricing-hero { position: relative; overflow: hidden; padding: 150px 0 44px; text-align: center; background: radial-gradient(900px 340px at 50% 0%, rgba(18, 160, 110, .2), transparent 70%), linear-gradient(180deg, var(--green-soft) 0%, var(--mint) 55%, var(--white) 100%); }
.pricing-hero h1 { margin-bottom: 18px; font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
.pricing-hero h1 em { color: var(--green-bright); font-style: normal; }
.pricing-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pricing-proof li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; color: var(--green); background: rgba(255, 255, 255, .85); border: 1px solid rgba(18, 160, 110, .3); border-radius: 999px; font-size: .8rem; font-weight: 650; box-shadow: 0 4px 14px rgba(21, 63, 51, .06); }
.pricing-proof .io { width: 15px; height: 15px; color: var(--vivid); }

/* Plans head */
.pricing-plans { padding: 30px 0 40px; }
.pricing-plans-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.pricing-eyebrow { margin: 0 0 6px; color: var(--green-bright); font-size: .68rem; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; }
.pricing-plans-head h2 { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -.025em; }
.pricing-plans-head p:last-child { max-width: 560px; margin: 0; color: var(--muted); font-size: .88rem; }
.pricing-plans-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.finder-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; color: var(--vivid-deep); background: var(--vivid-soft); border: 1px solid rgba(18, 160, 110, .35); border-radius: 10px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.finder-trigger:hover { background: #c9eedd; border-color: var(--vivid); }
.finder-trigger .io { width: 15px; height: 15px; color: var(--vivid); }
.pricing-billing-toggle { display: inline-flex; gap: 2px; padding: 3px; background: var(--mint); border: 1px solid rgba(40, 120, 93, .2); border-radius: 10px; }
.pricing-billing-toggle button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px; color: var(--green); background: transparent; border: 0; border-radius: 8px; font: inherit; font-size: .82rem; font-weight: 650; cursor: pointer; }
.pricing-billing-toggle button span { padding: 1px 7px; color: var(--vivid-deep); background: var(--vivid-soft); border-radius: 999px; font-size: .68rem; font-weight: 700; }
.pricing-billing-toggle button[aria-pressed="true"] { color: #fff; background: var(--vivid-deep); box-shadow: 0 2px 8px rgba(11, 127, 87, .3); }
.finder-trigger:focus-visible, .pricing-billing-toggle button:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }

/* Cards: 7-row subgrid keeps every text aligned across plans */
.pricing-launch-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 10px 16px; color: var(--green); background: var(--vivid-soft); border: 1px solid rgba(20, 176, 122, .3); border-radius: 12px; font-size: .84rem; text-align: center; }
.pricing-launch-note strong { color: var(--vivid-deep); }
.pricing-launch-note .io { width: 16px; height: 16px; color: var(--vivid); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); gap: 0 16px; align-items: start; }
.plan { position: relative; display: grid; grid-row: span 7; grid-template-rows: subgrid; gap: 0; padding: 26px 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(17, 24, 39, .05); transition: box-shadow .25s ease, transform .25s ease; }
.plan:hover { box-shadow: 0 16px 40px rgba(21, 63, 51, .1); }
.plan.is-recommended { box-shadow: 0 0 0 3px var(--vivid), 0 18px 44px rgba(21, 63, 51, .18); transform: translateY(-4px); }
.plan h3 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -.02em; }
.plan-desc { margin: 0 0 18px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.plan-price p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; }
.plan-price p[hidden], .plan-meta p[hidden] { display: none; }
.plan-price strong { color: var(--ink); font-size: 2rem; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; }
.plan-price span { color: var(--muted); font-size: .82rem; }
.plan-price s { flex-basis: 100%; color: #9aa1aa; font-size: .82rem; font-weight: 600; line-height: 1.2; }
.plan-price p[data-period="annual"] strong { font-size: 1.75rem; }
.plan-meta { min-height: 2.6em; margin: 6px 0 16px; }
.plan-meta p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.plan-meta .plan-saving:not([hidden]) { display: inline-flex; }
.plan-saving { align-items: center; gap: 6px; padding: 4px 9px; color: var(--vivid-deep) !important; background: var(--vivid-soft); border-radius: 7px; font-weight: 700; }
.plan-saving .io { width: 14px; height: 14px; color: var(--vivid); }
.plan-highlights { display: grid; align-content: start; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.plan-highlights li { display: flex; align-items: center; gap: 9px; padding: 8px 11px; color: var(--ink); background: var(--stone); border: 1px solid var(--line); border-radius: 9px; font-size: .8rem; font-weight: 650; }
.plan-highlights .io { width: 15px; height: 15px; color: var(--vivid); }
.plan-cta { align-self: start; width: 100%; justify-content: center; }
.plan-body { display: flex; flex-direction: column; padding-top: 22px; }
.plan-includes { margin: 0 0 12px; color: var(--ink); font-size: .76rem; font-weight: 750; }
.plan-features { display: grid; gap: 9px; margin: 0 0 18px; padding: 0; list-style: none; color: #3b4450; font-size: .8rem; line-height: 1.4; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; }
.plan-check { display: grid; width: 17px; height: 17px; flex: 0 0 17px; place-items: center; color: #fff; background: var(--vivid); border-radius: 50%; }
.plan-check .io { width: 11px; height: 11px; }
.plan-compare-link { margin-top: auto; color: var(--vivid-deep); font-size: .76rem; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(13, 143, 98, .35); text-underline-offset: 3px; }
.plan-compare-link:hover { color: var(--green); }

/* Recommended plan: same white card, emerald border and a tab on top */
.plan--featured { border: 2px solid var(--vivid-deep); border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: 0 18px 46px rgba(13, 143, 98, .16); }
.plan-tab { position: absolute; bottom: 100%; right: -2px; left: -2px; margin: 0; padding: 9px 22px; color: #fff; background: var(--vivid-deep); border-radius: 18px 18px 0 0; font-size: .82rem; font-weight: 700; }
.pricing-grid { padding-top: 38px; }

.pricing-footnote { margin: 16px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }

/* Plan finder dialog */
.plan-finder { width: min(calc(100% - 32px), 560px); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; color: var(--ink); background: var(--white); border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(8, 29, 23, .3); }
.plan-finder[open] { animation: dialog-in .22s ease both; }
.plan-finder::backdrop { background: rgba(8, 29, 23, .55); backdrop-filter: blur(4px); }
.plan-finder-shell { padding: 24px 26px 22px; }
.plan-finder-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.plan-finder-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; color: #fff; background: linear-gradient(140deg, var(--green), var(--vivid)); border-radius: 12px; }
.plan-finder-mark .io { width: 20px; height: 20px; }
.plan-finder-head h2 { margin: 0 0 3px; font-size: 1.15rem; letter-spacing: -.02em; }
.plan-finder-head p { margin: 0; color: var(--muted); font-size: .82rem; }
.plan-finder-close { display: grid; width: 32px; height: 32px; flex: 0 0 32px; margin-left: auto; padding: 0; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.plan-finder-close:hover { color: var(--green); background: var(--mint); }
.plan-finder-close .io { width: 16px; height: 16px; }
.finder-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.finder-progress span { height: 5px; background: var(--line); border-radius: 999px; transition: background .25s ease; }
.finder-progress span.is-done { background: linear-gradient(90deg, var(--vivid-deep), var(--vivid)); }
.finder-progress[hidden], .finder-count[hidden] { display: none; }
.finder-count { margin: 8px 0 16px; color: var(--muted); font-size: .74rem; font-weight: 650; }
.finder-step { margin: 0; padding: 0; border: 0; }
.finder-step[hidden] { display: none; }
.finder-step legend { padding: 0; font-size: 1rem; font-weight: 750; letter-spacing: -.01em; }
.finder-sub { margin: 4px 0 14px; color: var(--muted); font-size: .8rem; }
.finder-options { display: grid; gap: 8px; }
.finder-option { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.finder-option:hover { border-color: rgba(40, 120, 93, .45); background: #fbfdfb; }
.finder-option input { position: absolute; opacity: 0; pointer-events: none; }
.finder-option-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: var(--vivid-deep); background: var(--vivid-soft); border-radius: 10px; }
.finder-option-icon .io { width: 17px; height: 17px; }
.finder-option-text { display: grid; gap: 2px; font-size: .86rem; }
.finder-option-text small { color: var(--muted); font-size: .74rem; }
.finder-option:has(input:checked) { background: var(--mint); border-color: var(--vivid); box-shadow: 0 0 0 1px var(--vivid); }
.finder-option:has(input:checked) .finder-option-icon { color: #fff; background: var(--vivid); }
.finder-option:has(input:focus-visible) { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.plan-finder-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan-finder-actions[hidden] { display: none; }
.plan-finder-actions .button[disabled] { opacity: .45; cursor: not-allowed; }
.finder-result[hidden] { display: none; }
.finder-result { padding: 6px 0 2px; }
.finder-result-kicker { margin: 0 0 4px; color: var(--green-bright); font-size: .7rem; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.finder-result h3 { margin: 0 0 4px; color: var(--green-dark); font-size: 1.8rem; letter-spacing: -.03em; }
.finder-result-price { margin: 0 0 14px; color: var(--ink); font-size: .9rem; font-weight: 650; }
.finder-result-reasons { display: grid; gap: 7px; margin: 0 0 20px; padding: 14px 16px; list-style: none; background: var(--mint); border-radius: 12px; font-size: .82rem; }
.finder-result-reasons li { display: flex; align-items: flex-start; gap: 8px; }
.finder-result-reasons li::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; margin-top: 6px; background: var(--vivid); border-radius: 50%; }
.finder-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.finder-result-actions [hidden] { display: none; }

/* Comparison */
.pricing-compare { padding: 64px 0 24px; }
.pricing-compare h2 { margin: 0 0 6px; font-size: clamp(1.7rem, 2.4vw, 2.2rem); text-align: center; }
.pricing-compare-sub { margin: 0 0 28px; color: var(--muted); font-size: .9rem; text-align: center; }
.cmp-wrap { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(17, 24, 39, .04); }
.cmp { width: 100%; border-collapse: collapse; font-size: .82rem; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp tbody:last-child tr:last-child th, .cmp tbody:last-child tr:last-child td { border-bottom: 0; }
.cmp thead th { position: sticky; top: calc(72px + var(--launch-banner-h)); z-index: 2; color: var(--ink); background: var(--white); font-size: .88rem; font-weight: 750; vertical-align: bottom; }
.cmp thead th:first-child { border-radius: 16px 0 0 0; }
.cmp thead th:last-child { border-radius: 0 16px 0 0; }
.cmp thead th > span { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.cmp thead .cmp-featured { color: #fff; background: var(--vivid-deep); }
.cmp thead .cmp-featured em { display: block; margin-bottom: 3px; color: #c9f2df; font-size: .64rem; font-style: normal; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.cmp thead .cmp-featured > span { color: rgba(255, 255, 255, .8); }
.cmp td:nth-child(3) { background: rgba(214, 245, 231, .55); }
.cmp tbody th { width: 36%; color: #3b4450; font-weight: 500; text-align: left; }
.cmp-group th { padding-block: 10px; color: var(--ink) !important; background: var(--stone); font-size: .72rem; font-weight: 780 !important; letter-spacing: .08em; text-transform: uppercase; }
.cmp td { color: var(--ink); font-weight: 650; }
.cmp-yes .io { width: 16px; height: 16px; color: var(--vivid); }
.cmp-no { color: #b4bac2; font-weight: 400; }

/* Closing */
.pricing-close { padding: 70px 0 100px; text-align: center; background: linear-gradient(180deg, var(--white) 0%, var(--mint) 100%); }
.pricing-close h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
.pricing-close p { max-width: 560px; margin: 0 auto 22px; color: var(--muted); font-size: .92rem; }
.pricing-close-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (max-width: 1180px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(14, auto); gap: 0 16px; }
  .plan:nth-child(n + 3) { margin-top: 56px; }
}
@media (max-width: 760px) {
  .pricing-plans-head { flex-direction: column; align-items: flex-start; }
  .pricing-plans-tools { justify-content: flex-start; }
  .pricing-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 16px; }
  .plan { grid-row: auto; grid-template-rows: none; }
  .plan:nth-child(n + 3) { margin-top: 0; }
  .pricing-grid { padding-top: 0; }
  .plan--featured { margin-top: 40px; }
  .cmp thead th { top: calc(70px + var(--launch-banner-h)); }
}
@media (max-width: 560px) {
  .pricing-hero { padding-top: 118px; }
  .pricing-proof { flex-direction: column; align-items: center; }
  .plan-finder-shell { padding: 20px 18px 18px; }
  .cmp { table-layout: fixed; font-size: .68rem; }
  .cmp th, .cmp td { padding: 10px 3px; overflow-wrap: anywhere; }
  .cmp tbody th { width: 32%; padding-left: 10px; }
  .cmp thead th { padding-inline: 1px; font-size: .62rem; letter-spacing: -.01em; overflow-wrap: normal; }
  .cmp thead th > span { font-size: .58rem; }
}
