/* The pricing and purchase pages (docs/site-redesign.md, mockup approved by the owner 2026-10-21): /ctl/subscriptions (plans),
   /credits.html (top-up packages), compare-plans.html, how-to-purchase.html and conserving-credits.html. Scoped to .ke-price so
   the theme stylesheet the pages still load (Bootstrap 4 + keywordeverywhere.css: the Paddle checkout, the flash alerts, the
   YouTube lightbox and the logo carousel come from it) does not reach the new layout. Same tokens and type as ke-home.css,
   ke-start.css, ke-opr.css and ke-account.css. Class names that Bootstrap owns (.btn, .card, .row, .nav) are not used here. */
.ke-price { --red: #b5332c; --red-dark: #8c2420; --red-soft: #fbedeb; --ink: #1c1a19; --text: #3d3936; --muted: #6f6a66; --line: #e6e1dc; --line-soft: #f0ece8; --ground: #f7f5f2; --r: 10px; --r-lg: 14px;
    --fh: "Bricolage Grotesque", "IBM Plex Sans", "Segoe UI", sans-serif; --fb: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --fm: "IBM Plex Mono", Menlo, Consolas, monospace;
    font-family: var(--fb); color: var(--text); background: #fff; font-size: 16px; line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; overflow: visible; }
.ke-price *, .ke-price *::before, .ke-price *::after { box-sizing: border-box; }
.ke-price h1, .ke-price h2, .ke-price h3, .ke-price h4 { font-family: var(--fh); color: var(--ink); margin: 0; letter-spacing: -0.012em; text-wrap: balance; line-height: 1.15; font-weight: 700; }
.ke-price p { margin: 0; }
.ke-price a { color: #1f4f8f; text-decoration: none; }
.ke-price a:hover { color: #133565; }
.ke-price strong, .ke-price b { font-weight: 600; color: inherit; }
.ke-price code { font-family: var(--fm); font-size: .92em; background: var(--ground); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 6px; color: var(--ink); }
.ke-price .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
/* sections and bands */
.ke-price .sec { padding: 64px 0; }
.ke-price .sec.alt { background: var(--ground); }
.ke-price .sec h2 { font-size: 32px; margin-bottom: 12px; }
.ke-price .sub { font-size: 17px; color: var(--muted); }
.ke-price .head { margin-bottom: 36px; }
.ke-price .head.c { text-align: center; }
.ke-price .title { padding: 48px 0 36px; border-bottom: 1px solid var(--line-soft); }
.ke-price .title.c { text-align: center; }
.ke-price .title h1 { font-size: 40px; margin-bottom: 12px; }
.ke-price .title.plain h1 { text-wrap: wrap; }
.ke-price .title .sub { font-size: 17.5px; }
.ke-price .kbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--r); font-weight: 600; font-size: 15.5px; text-decoration: none; background: var(--red); color: #fff; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; line-height: 1; }
.ke-price .kbtn:hover { background: var(--red-dark); color: #fff; }
.ke-price .kbtn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.ke-price .kbtn.ghost:hover { background: var(--ground); color: var(--ink); border-color: var(--ink); }
.ke-price .kbtn.sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.ke-price .kbtn[disabled] { background: var(--line); color: var(--muted); cursor: default; }
.ke-price .btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ke-price .btns.c { justify-content: center; }
.ke-price .note { font-size: 14px; color: var(--muted); }
.ke-price .note a, .ke-price .prose a, .ke-price .kcard p a, .ke-price .faq .a a, .ke-price .diff p a, .ke-price .step p a, .ke-price .links a { text-decoration: underline; text-underline-offset: 3px; }
.ke-price .alert { margin: 24px 0 0; font-size: 15px; }
/* facts strip + the signed-in status line */
.ke-price .facts { display: flex; gap: 12px 40px; flex-wrap: wrap; justify-content: center; padding: 18px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; color: var(--text); }
.ke-price .facts span { display: flex; align-items: center; gap: 8px; }
.ke-price .facts i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: block; }
.ke-price .status { display: flex; gap: 10px 28px; flex-wrap: wrap; justify-content: center; padding: 14px 0 0; font-size: 14.5px; color: var(--muted); }
.ke-price .status b { color: var(--ink); }
/* plan cards */
.ke-price .plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ke-price .plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin: 0 auto; }
.ke-price .plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; display: flex; flex-direction: column; gap: 0; min-width: 0; }
.ke-price .plan .ph { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ke-price .plan .ph img { width: 44px; height: 44px; border-radius: 50%; }
.ke-price .plan h3 { font-size: 22px; }
.ke-price .plan .price { display: flex; align-items: baseline; gap: 4px; font-family: var(--fh); color: var(--ink); }
.ke-price .plan .price b { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.ke-price .plan .price .cents { font-size: 18px; font-weight: 600; }
.ke-price .plan .price .cur { font-size: 22px; font-weight: 600; align-self: flex-start; margin-top: 6px; }
.ke-price .plan .price .per { font-size: 15px; color: var(--muted); font-family: var(--fb); }
.ke-price .plan .price.old { color: var(--muted); text-decoration: line-through; }
.ke-price .plan .price.old b { font-size: 26px; }
.ke-price .plan .price.old .cur { font-size: 16px; margin-top: 2px; }
.ke-price .plan .billed { font-size: 14px; color: var(--muted); margin: 6px 0 14px; }
.ke-price .plan .billed.old { text-decoration: line-through; margin-bottom: 8px; }
.ke-price .plan .until { font-size: 13px; color: var(--red); font-weight: 600; margin: -8px 0 14px; }
.ke-price .plan .credits { font-size: 16.5px; font-weight: 600; color: var(--ink); margin-bottom: 18px; }
.ke-price .plan .kbtn { margin-bottom: 20px; }
.ke-price .plan .nobtn { height: 48px; margin-bottom: 20px; }
.ke-price .plan ul { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; color: var(--text); }
.ke-price .plan li { display: flex; gap: 9px; align-items: flex-start; }
.ke-price .plan li svg { flex: 0 0 auto; margin-top: 4px; color: var(--ink); }
.ke-price .links { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 28px; font-size: 14.5px; color: var(--muted); }
.ke-price .links p { margin-bottom: 6px; }
.ke-price .links .r { text-align: right; }
/* credit packages */
.ke-price .packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ke-price .pack { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ke-price .pack .price { font-family: var(--fh); font-size: 40px; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.ke-price .pack .price small { font-size: 20px; font-weight: 600; vertical-align: top; margin-right: 2px; }
.ke-price .pack .cr { font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.ke-price .pack .rate { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
/* tables */
.ke-price .tbl { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ke-price .tbl table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.ke-price .tbl th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 16px; background: var(--ground); border-bottom: 1px solid var(--line); border-top: 0; }
.ke-price .tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); border-top: 0; vertical-align: middle; }
.ke-price .tbl tr:last-child td { border-bottom: 0; }
.ke-price .tbl .c { text-align: center; }
.ke-price .tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ke-price .tbl th.ph { text-align: center; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); font-family: var(--fh); padding: 16px; }
.ke-price .tbl th.ph img { width: 34px; height: 34px; border-radius: 50%; display: block; margin: 0 auto 6px; }
.ke-price .tbl td.k { color: var(--ink); font-weight: 500; }
.ke-price .tbl td.k a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.ke-price .tbl td.k a:hover { text-decoration-color: var(--ink); }
.ke-price .tbl .yes { color: var(--ink); }
.ke-price .tbl .no { color: var(--line); }
.ke-price .tbl .pr b { display: block; color: var(--ink); font-size: 16px; }
.ke-price .tbl .pr span { font-size: 13px; color: var(--muted); }
/* cards (which plan, subscription required) */
.ke-price .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ke-price .cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ke-price .kcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ke-price .kcard .ch { display: flex; align-items: center; gap: 12px; }
.ke-price .kcard .ch img { width: 40px; height: 40px; border-radius: 50%; }
.ke-price .kcard h3 { font-size: 18px; line-height: 1.25; }
.ke-price .kcard p { font-size: 15px; color: var(--text); }
.ke-price .kcard .pm { font-size: 13.5px; color: var(--muted); }
.ke-price .kcard.wide { max-width: 640px; }
.ke-price .diffs { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 0 auto; }
.ke-price .diff { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 26px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 18px; scroll-margin-top: 90px; }
.ke-price .diff .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; }
.ke-price .diff h3 { font-size: 20px; margin-bottom: 6px; }
.ke-price .diff h3 small { font-weight: 500; color: var(--muted); font-size: 14px; font-family: var(--fb); margin-left: 8px; }
.ke-price .diff p { font-size: 15px; margin-bottom: 8px; }
.ke-price .diff p:last-child { margin-bottom: 0; }
.ke-price .checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.ke-price .checks li { display: flex; gap: 10px; font-size: 15.5px; }
.ke-price .checks svg { flex: 0 0 auto; margin-top: 4px; color: var(--red); }
.ke-price .lead { font-size: 16px; margin-top: 28px; max-width: 900px; }
.ke-price .lead + .lead { margin-top: 10px; }
/* steps (how to purchase) */
.ke-price .step { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 80px; }
.ke-price .step:last-child { border-bottom: 0; }
.ke-price .step.flip > :first-child { order: 2; }
.ke-price .step .n { font-family: var(--fh); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--red); margin-bottom: 10px; }
.ke-price .step h3 { font-size: 26px; margin-bottom: 12px; }
.ke-price .step h3 img { width: 26px; height: 26px; border-radius: 50%; vertical-align: -4px; margin: 0 2px; }
.ke-price .step p { font-size: 16px; margin-bottom: 12px; }
.ke-price .step .btns { margin-top: 6px; }
.ke-price .step .note { margin-top: 14px; }
.ke-price .frame { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(28,26,25,.05), 0 24px 48px rgba(28,26,25,.10); overflow: hidden; }
.ke-price .frame img { display: block; width: 100%; height: auto; }
.ke-price .frame.fit { max-width: 494px; justify-self: center; }
.ke-price .prose .frame { margin: 8px 0 20px; max-width: 640px; }
/* docs layout (conserving credits) */
.ke-price .docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.ke-price .toc { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; position: sticky; top: 24px; }
.ke-price .toc a { color: var(--muted); padding: 7px 12px; border-radius: 8px; display: block; }
.ke-price .toc a:hover { color: var(--ink); background: var(--ground); }
.ke-price .toc .h { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-weight: 600; padding: 0 12px 8px; }
.ke-price .prose h2 { font-size: 26px; margin: 40px 0 12px; scroll-margin-top: 24px; }
.ke-price .prose h2:first-child { margin-top: 0; }
.ke-price .prose p, .ke-price .prose li { font-size: 15.5px; line-height: 1.7; }
.ke-price .prose p { margin-bottom: 12px; }
.ke-price .prose ul { margin: 0 0 14px; padding-left: 22px; }
.ke-price .prose li { margin-bottom: 8px; }
/* FAQ, open, two columns */
.ke-price .faq { margin: 0; }
.ke-price .faq .item { border-bottom: 1px solid var(--line); min-width: 0; }
.ke-price .faq .q { margin: 0; padding: 16px 0 8px; font-family: var(--fh); font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--ink); }
.ke-price .faq .a { padding: 0 0 18px; font-size: 15px; }
.ke-price .faq .a p { margin-bottom: 10px; }
.ke-price .faq .a p:last-child { margin-bottom: 0; }
.ke-price .faq .a ul { margin: 6px 0 0; padding-left: 20px; }
.ke-price .faq .a li { margin-bottom: 6px; }
.ke-price .final { background: var(--ink); color: #fff; padding: 64px 0; }
.ke-price .final .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.ke-price .final h2 { color: #fff; font-size: 32px; }
.ke-price .final p { color: #cfc9c3; font-size: 16px; }
.ke-price .final p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ke-price .final .kbtn { background: #fff; color: var(--ink); }
.ke-price .final .kbtn:hover { background: var(--ground); color: var(--ink); }
.ke-price .final .kbtn.outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.ke-price .final .kbtn.outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
/* customer logos (the home page's carousel) */
.ke-price .logos { padding: 36px 0 40px; border-top: 1px solid var(--line-soft); }
.ke-price .logos p { text-align: center; font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.ke-price .logos .swiper-container { min-height: 48px; }
.ke-price .logos .swiper-slide { display: flex; justify-content: center; align-items: center; }
.ke-price .logos img { height: 30px; width: auto; max-width: 120px; }
@media (max-width: 1000px) {
    .ke-price .plans, .ke-price .plans.three, .ke-price .cards.four, .ke-price .cards, .ke-price .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ke-price .step, .ke-price .docs { grid-template-columns: 1fr; }
    .ke-price .step.flip > :first-child { order: 0; }
    .ke-price .toc { flex-direction: row; flex-wrap: wrap; position: static; }
    .ke-price .toc .h { width: 100%; }
    .ke-price .checks { grid-template-columns: 1fr; }
    .ke-price .title h1 { font-size: 32px; }
    .ke-price .tbl { overflow-x: auto; }
    .ke-price .tbl table { min-width: 640px; }
}
@media (max-width: 600px) {
    .ke-price .wrap { padding: 0 16px; }
    .ke-price .sec { padding: 48px 0; }
    .ke-price .sec h2 { font-size: 27px; }
    .ke-price .title { padding: 32px 0 24px; }
    .ke-price .title h1 { font-size: 28px; }
    .ke-price .plans, .ke-price .plans.three, .ke-price .cards, .ke-price .cards.four, .ke-price .packs { grid-template-columns: 1fr; }
    .ke-price .kbtn { width: 100%; }
    .ke-price .links { flex-direction: column; }
    .ke-price .links .r { text-align: left; }
    .ke-price .facts { justify-content: flex-start; gap: 8px 20px; }
    .ke-price .logos img { height: 24px; }
    /* phone plan card: name left, price right on the same row (owner, round 4) */
    .ke-price .plan { padding: 22px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head price" "credits billed" "btn btn" "list list"; column-gap: 14px; row-gap: 0; align-items: center; }
    .ke-price .plan.custom { grid-template-areas: "head price" "old old" "credits billed" "until until" "btn btn" "list list"; }
    .ke-price .plan > .ph { grid-area: head; margin-bottom: 0; }
    .ke-price .plan .price { grid-area: price; justify-content: flex-end; }
    .ke-price .plan .price b { font-size: 38px; }
    .ke-price .plan .price.old { grid-area: old; justify-content: flex-end; margin-top: 6px; }
    .ke-price .plan .credits { grid-area: credits; margin: 14px 0 0; }
    .ke-price .plan .billed { grid-area: billed; text-align: right; margin: 14px 0 0; }
    .ke-price .plan .billed.old { display: none; }
    .ke-price .plan .until { grid-area: until; text-align: right; margin: 4px 0 0; }
    .ke-price .plan .kbtn, .ke-price .plan .nobtn { grid-area: btn; margin: 16px 0 18px; }
    .ke-price .plan ul { grid-area: list; }
}
