/* Checkout funnel only. Tokens, header, footer, buttons and plan cards come from site.css. */
*, *::before, *::after { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Progress */
.ck-progress { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 16px; }
.ck-crumbs { display: flex; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.ck-crumbs li + li::before { content: "/"; margin-inline: 8px; color: #9aa8b8; }
.ck-crumbs a { color: var(--muted); }
.ck-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.ck-steps { display: flex; gap: 22px; font-size: .9rem; color: var(--muted); }
.ck-steps li { display: flex; align-items: center; }
.ck-steps a { display: flex; align-items: center; color: inherit; text-decoration: none; }
.ck-steps a:hover { text-decoration: underline; }
.ck-steps__n {
    display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px;
    border-radius: 50%; background: var(--line); color: var(--muted); font-size: .8rem; font-weight: 800;
}
.ck-steps .is-current { color: var(--ink); font-weight: 700; }
.ck-steps .is-current .ck-steps__n { background: var(--brand); color: #fff; }
.ck-steps .is-done { color: var(--ok); font-weight: 600; }
.ck-steps .is-done .ck-steps__n { background: var(--ok); color: #fff; }

/* Hero */
.ck-hero { padding-block: 52px; }
.ck-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); font-weight: 800; letter-spacing: -.01em; }
.ck-hero__lead { max-width: 640px; margin-top: 12px; font-size: 1.1rem; color: #e4eefa; }
.ck-hero--slim { padding-block: 36px; }
.ck-hero--slim h1 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.2rem); }
.ck-hero--slim .ck-hero__lead { margin-top: 8px; font-size: 1.02rem; }
.ck-hero__icon-row { display: flex; align-items: center; gap: 20px; }
.ck-hero__icon { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 16px; background: rgba(255, 255, 255, .14); font-size: 1.6rem; }
.ck-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; font-weight: 600; font-size: .95rem; }
.ck-trust li { display: flex; align-items: center; gap: 8px; }
.ck-trust .ck-i { color: #ffc069; }

/* Categories */
.ck-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ck-cat {
    display: flex; align-items: center; gap: 16px; height: 100%; padding: 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); color: inherit; text-decoration: none;
    transition: transform .16s, box-shadow .16s, border-color .16s;
}
.ck-cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #bcd3ec; }
.ck-cat__icon { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 13px; background: var(--brand-soft); color: var(--brand); font-size: 1.32rem; }
.ck-cat__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ck-cat__name { font-size: 1.08rem; font-weight: 800; }
.ck-cat__count { font-size: .8rem; color: var(--muted); }
.ck-cat__arrow { color: var(--brand); transition: transform .16s; }
.ck-cat:hover .ck-cat__arrow { transform: translateX(3px); }

/* How it works */
.ck-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: how; }
.ck-how li { position: relative; display: grid; gap: 4px; padding-left: 54px; counter-increment: how; }
.ck-how li::before {
    content: counter(how); position: absolute; left: 0; top: 0;
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800;
}
.ck-how span { color: var(--muted); font-size: .95rem; }

/* FAQ */
.ck-faq { border-bottom: 1px solid var(--line); }
.ck-faq summary { padding-block: 16px; font-weight: 700; cursor: pointer; }
.ck-faq p { padding-bottom: 18px; color: var(--muted); }

/* Plans */
.ck-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); gap: 20px; }
.ck-volume {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
    margin-top: 26px; padding: 20px 24px; border: 1px dashed #b5c6da; border-radius: var(--radius);
}
.ck-volume h3 { font-size: 1.05rem; font-weight: 800; }
.ck-volume p { color: var(--muted); font-size: .95rem; }

.ck-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ck-chips a {
    display: block; padding: 8px 15px; background: var(--card); border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none;
}
.ck-chips a:hover { border-color: var(--brand); color: var(--brand); }

/* Checkout */
.ck-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; padding-block: 12px 56px; }
.ck-formcard { grid-column: 1; grid-row: 1; padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ck-formcard .ck-h2 { margin-bottom: 4px; }
.ck-formcard__lead { margin-bottom: 22px; color: var(--muted); font-size: .95rem; }
.ck-summary { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 16px; }
.ck-summary__card { padding: 26px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow); }
.ck-summary__eyebrow { color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ck-summary h1 { margin-top: 4px; font-size: 1.4rem; font-weight: 800; }
.ck-summary__desc { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.ck-summary__toggle { display: none; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-size: .92rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ck-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; }
.ck-summary .ck-link { display: inline-block; margin-top: 12px; font-size: .92rem; }
.ck-siblings { grid-column: 1; grid-row: 2; padding-top: 10px; }
.ck-siblings .ck-h2 { font-size: 1.05rem; margin-bottom: 12px; }

/* Form */
.ck-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.ck-field label { display: block; margin-bottom: 5px; font-size: .9rem; font-weight: 700; }
.ck-field small { font-weight: 400; color: var(--muted); }
.ck-field input {
    width: 100%; height: 48px; padding: 0 13px; border: 1.5px solid #c6d1de; border-radius: 9px;
    background: #fff; color: var(--ink); font: inherit;
}
.ck-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 94, 168, .18); }
.ck-err { display: none; margin-top: 5px; color: var(--err); font-size: .85rem; font-weight: 600; }
.has-error .ck-err { display: block; }
.has-error input { border-color: var(--err); }
.ck-promo { margin-top: 16px; }
.ck-promo summary { color: var(--brand); font-size: .92rem; font-weight: 600; cursor: pointer; }
.ck-promo .ck-field { max-width: 300px; margin-top: 10px; }
.ck-renewal { margin-top: 20px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.ck-consent { margin-block: 10px 20px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: .93rem; }
.ck-consent label { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.ck-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.ck-consent.has-error { background: var(--err-soft); border-color: var(--err); }
.ck-paynote { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; color: var(--muted); font-size: .85rem; }
.ck-alert { margin-bottom: 18px; padding: 12px 15px; background: var(--err-soft); border-radius: 9px; color: var(--err); font-weight: 600; font-size: .93rem; }
.ck-alert--ok { background: #e6f5ec; color: var(--ok); }

.ck-notfound { padding-block: 70px; text-align: center; }
.ck-notfound h1 { font-size: 1.9rem; font-weight: 800; }
.ck-notfound p { margin-block: 12px 24px; color: var(--muted); }

@media (max-width: 920px) {
    .ck-checkout { grid-template-columns: minmax(0, 1fr); }
    .ck-summary { position: static; grid-column: 1; grid-row: auto; }
    .ck-formcard, .ck-siblings { grid-column: 1; grid-row: auto; }
    .ck-how { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    /* Phones: the plan is a short recap, so the form starts near the top. Details stay one tap away. */
    .ck-summary__toggle { display: inline-block; }
    .ck-summary__card.is-collapsed .ck-features { display: none; }
    .ck-summary__card .ck-features { margin-block: 12px 14px; }
    .ck-total { margin-top: 12px; }
}
@media (max-width: 640px) {
    .ck-progress { padding-block: 12px; }
    .ck-crumbs { display: none; }
    .ck-steps { width: 100%; justify-content: space-between; gap: 6px; font-size: .78rem; }
    .ck-steps__n { width: 22px; height: 22px; margin-right: 5px; }
    .ck-hero { padding-block: 34px; }
    .ck-hero__icon { width: 50px; height: 50px; font-size: 1.25rem; }
    .ck-cats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ck-plans { grid-template-columns: minmax(0, 1fr); }
    .ck-formcard { padding: 20px; }
    .ck-form__grid { grid-template-columns: minmax(0, 1fr); }
    .ck-field input { font-size: 16px; }
    .ck-volume .ck-btn { width: 100%; }
}

/* Categories with one plan: the explanation sits beside the card instead of leaving the row empty */
.ck-plans--solo { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 34px; align-items: center; }
.ck-solo-about h3 { margin-bottom: 8px; font-size: 1.15rem; font-weight: 800; }
.ck-solo-about p { color: var(--muted); }
@media (max-width: 760px) {
    .ck-plans--solo { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
