/* Pricing page: billing switch, plan cards, add-ons, what counts, the plan
   comparison (a table on wide screens, one plan at a time on phones) and the FAQ. */

/* ---------- Top */
.p-hero { max-width: 1000px; margin: 0 auto; padding: 40px 24px 36px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.p-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.p-h1 { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(38px, 5.6vw, 60px); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.p-lead { margin: 0; max-width: 640px; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.p-cycle { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.p-cycle-note { font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); }
.seg-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 500; font-size: 15px; }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.seg-badge { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.seg-btn[aria-pressed="true"] .seg-badge { background: var(--white); }

/* ---------- Plan cards */
.p-plans { max-width: 1320px; margin: 0 auto; padding: 0 24px 28px; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(228px, 100%), 1fr)); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.plan:hover { box-shadow: 0 10px 28px rgba(27,28,34,.06); }
.plan-pop { border: 2px solid var(--accent); background: var(--accent-wash); }
.d-p0 { animation-delay: 0s; } .d-p1 { animation-delay: .05s; } .d-p2 { animation-delay: .1s; } .d-p3 { animation-delay: .15s; } .d-p4 { animation-delay: .2s; }
.plan-top { display: flex; flex-direction: column; gap: 6px; min-height: 76px; }
.plan-name-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.plan-name { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; }
.plan-tag { padding: 3px 11px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 600; }
.plan-for { font-size: 14px; color: var(--muted); }
.plan-price { display: flex; flex-direction: column; gap: 2px; min-height: 84px; }
.plan-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.plan-big { font-family: var(--font-head); font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.plan-unit { font-size: 14px; color: var(--muted); }
.plan-sub { font-size: 13px; color: var(--muted); }
.plan-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 1px solid var(--line-mid); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; transition: border-color .15s ease, transform .15s ease; }
.plan-btn:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }
.plan-btn-pop, .plan-btn-pop:hover { border-color: var(--accent); background: var(--accent); color: var(--white); }
.plan-limits { margin: 0; display: flex; flex-direction: column; }
.plan-limits > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.plan-limits dt { font-size: 14px; color: var(--muted); }
.plan-limits dd { margin: 0; text-align: right; font-family: var(--font-head); font-weight: 500; font-size: 18px; }
.plan-feats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.plan-feats svg { flex: 0 0 16px; margin-top: 3px; }
.p-note { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Add-ons */
.p-addons { max-width: 1120px; margin: 0 auto; padding: 8px 24px 64px; }
.addons { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--tint); }
.addons-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.addons-text > span { font-size: 14px; color: var(--muted); }
.addons-h { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 22px; }
.addons-grid { flex: 2 1 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.addon { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.addon-name { font-weight: 600; }
.addon-price { display: flex; align-items: baseline; gap: 6px; }
.addon-price > span:first-child { font-family: var(--font-head); font-weight: 500; font-size: 24px; }
.addon-price > span:last-child { font-size: 13px; color: var(--muted); }
.addon-desc { font-size: 13px; color: var(--muted); }
.addon-only { font-size: 13px; font-weight: 600; color: var(--ink); }

/* ---------- Sections */
.p-sec { border-top: 1px solid var(--line); }
.p-sec-tint { background: var(--tint); }
.p-sec-in { max-width: 1120px; margin: 0 auto; padding: 64px 24px; display: flex; flex-direction: column; gap: 32px; }
.p-sec-wide { max-width: 1220px; gap: 24px; }
.p-sec-28 { gap: 28px; }
.p-h2 { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.1; letter-spacing: -0.02em; }
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0; }
.count { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px 24px 0; border-top: 1px solid var(--ink); }
.count h3 { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.count p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Comparison */
.cmp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cmp-note { font-size: 13px; color: var(--muted); }
.mark-yes, .mark-no { flex: 0 0 14px; }
.cmp-sub { display: block; font-size: 12px; color: var(--muted); }
.cmp-off { color: var(--muted) !important; }

.c-mob { display: none; flex-direction: column; gap: 14px; }
.cmp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-mid); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 500; font-size: 15px; }
.cmp-pill[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--white); }
.cmp-card { border: 1px solid var(--line); border-radius: 22px; background: var(--white); overflow: hidden; }
.cmp-card-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 16px 18px; border-bottom: 1px solid var(--ink); }
.cmp-card-name { font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.cmp-card-price { font-size: 13px; color: var(--muted); }
.cmp-list { margin: 0; display: flex; flex-direction: column; }
.cmp-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-soft); }
.cmp-list dt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cmp-list dt > span:first-child { font-weight: 500; font-size: 15px; }
.cmp-list dd { flex: 0 1 auto; margin: 0; display: flex; align-items: center; justify-content: flex-end; gap: 7px; text-align: right; font-size: 14px; color: var(--ink); }

.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.cmp-table { min-width: 900px; display: flex; flex-direction: column; }
.cmp-row { display: grid; grid-template-columns: minmax(220px, 1.7fr) repeat(5, minmax(120px, 1fr)); align-items: stretch; border-top: 1px solid var(--line-soft); transition: background .15s ease; }
.cmp-row:hover { background: var(--hover); }
.cmp-row-head { border-top: 0; border-bottom: 1px solid var(--ink); }
.cmp-row-head:hover { background: transparent; }
.cmp-corner { display: flex; align-items: flex-end; padding: 18px 20px; font-size: 13px; color: var(--muted); }
.cmp-col { display: flex; flex-direction: column; gap: 2px; padding: 18px 14px; background: var(--white); }
.cmp-pop-head { background: #F7F7FE; }
.cmp-col-name { font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.cmp-col-price { font-size: 13px; color: var(--muted); }
.cmp-rowhead { display: flex; flex-direction: column; justify-content: center; padding: 12px 20px; }
.cmp-rowhead > span:first-child { font-weight: 500; }
.cmp-cell { display: flex; align-items: center; gap: 7px; padding: 12px 14px; font-size: 14px; color: var(--ink); }
.cmp-pop { background: var(--accent-wash); }

/* ---------- FAQ: open by default so every answer shows, and each can be closed */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 0 40px; }
.faq-item { padding: 20px 0; border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin: calc((17px * 1.55 - 44px) / 2) 0; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.faq-item h3 { margin: 0; font-size: 17px; font-weight: 600; }
.faq-item p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.faq-plus { flex: 0 0 18px; transition: transform .2s ease; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }

@media (max-width: 760px) {
  .c-desk { display: none; }
  .c-mob { display: flex; }
}
