/* Buy searches page */
.buy { max-width: 1200px; padding-block: 28px 56px; }
.buy h1 { font-family: var(--f-display); margin: 0 0 6px; }
.buy-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 18px; position: relative; text-align: center; font-size: 14px; color: var(--muted); }
.buy-steps::before { content: ""; position: absolute; top: 16px; left: 16.6%; right: 16.6%; border-top: 1px solid var(--line-strong); }
.buy-steps li { list-style: none; position: relative; display: grid; justify-items: center; gap: 8px; }
.buy-steps b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--line-strong); color: #fff; font-size: 14px; }
.buy-steps li.on { color: var(--ink); font-weight: 600; }
.buy-steps li.on b { background: var(--accent); color: var(--accent-ink); }
.buy-steps li.ok b { background: var(--good); }
.buy-steps ol { display: contents; }
.buy-info { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; display: grid; gap: 4px; font-size: 15px; }
.buy-info p { margin: 0; }
.buy-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; margin-top: 18px; align-items: start; }
@media (max-width: 820px) { .buy-grid { grid-template-columns: 1fr; } .buy-steps { font-size: 12px; } }
.plans { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.plan { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.plan:hover { border-color: var(--accent); }
.plan:has(input:checked) { border: 2px solid var(--accent); padding: 15px 17px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.plan input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.plan-name { font-size: 18px; font-weight: 600; }
.plan-note { display: block; color: var(--muted); font-size: 13.5px; }
.plan-each { display: block; color: var(--ink-2); font-size: 13px; }
.plan-price { font-size: 22px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.plan .tag { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--good-soft); color: var(--good); margin-left: 8px; vertical-align: 2px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); position: sticky; top: 16px; }
.summary h2 { margin: 0 0 10px; font-family: var(--f-display); font-size: 22px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 15.5px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; font-weight: 700; font-size: 18px; }
.pay-btn { width: 100%; margin-top: 14px; }
.pay-modes { text-align: center; color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.pay-msg { min-height: 1.3em; margin: 10px 0 0; font-size: 14.5px; }
.pay-msg.bad { color: var(--bad); }
.who-line { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.buy-done { background: var(--good-soft); border: 1px solid var(--good); border-radius: 10px; padding: 22px; display: grid; gap: 10px; margin-top: 18px; }
.buy-done h2 { margin: 0; font-family: var(--f-display); }
.buy-done p { margin: 0; }
.buy-faq { margin-top: 30px; display: grid; gap: 8px; max-width: 760px; }
.buy-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.buy-faq summary { cursor: pointer; padding: 11px 0; font-weight: 500; }
.buy-faq p { margin: 0 0 12px; color: var(--ink-2); }
.buy-off { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin-top: 18px; }
.buy-proj { margin-top: 36px; }
.buy-proj h2 { margin: 0 0 4px; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-top: 14px; }
.proj { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.proj h3 { margin: 0; font-size: 16.5px; font-weight: 600; }
.proj .proj-price { margin: 0; font-size: 22px; font-weight: 600; color: var(--ink); }
.proj p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.proj a { margin-top: auto; padding-top: 6px; font-weight: 600; text-decoration: none; }
.proj a:hover { text-decoration: underline; }

/* ==================== checkout layout: plan cards and payment method on the left, order card on the right ==================== */
.buy-grid.co { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; margin-top: 28px; }
.co-h { margin: 0 0 14px; font-family: var(--f-ui) !important; font-size: 18px !important; font-weight: 700 !important; color: var(--navy); letter-spacing: 0; }
.co-left .co-h ~ .co-h { margin-top: 34px; }
.co-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan.co-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px 20px; border: 1px solid #E3E8F2; border-radius: 12px; background: #fff; box-shadow: none; min-height: 150px; }
.plan.co-plan:hover { border-color: #A8C5F2; }
.plan.co-plan:has(input:checked) { border: 1px solid #C9D9F5; padding: 18px 20px 20px; background: #EAF1FD; }
.co-top { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 28px; margin-bottom: 6px; }
.co-plan input { width: 22px; height: 22px; accent-color: var(--accent); }
.co-plan .tag { margin-left: 0; }
.co-savep { margin-left: auto; padding: 3px 10px; border-radius: 6px; background: #DCE7FD; color: var(--accent); font-size: 13px; font-weight: 700; }
.co-plan .plan-name { font-size: 17px; font-weight: 600; color: var(--navy); }
.co-plan .plan-price { font-size: 20px; font-weight: 600; color: var(--ink); }
.co-plan .plan-each { font-size: 13.5px; color: #6B7080; }
.co-method { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid #E3E8F2; border-radius: 12px; background: #fff; }
.co-mi { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); flex: none; }
.co-mi svg, .co-lock svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.co-mt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.co-mt b { font-weight: 600; color: var(--ink); }
.co-mt small { color: #6B7080; font-size: 13px; }
.co-lock svg { stroke: #8A90A2; width: 20px; height: 20px; }
.co-safe { margin: 10px 2px 0; font-size: 13px; color: #6B7080; }
.co-what { margin-top: 26px; border: 1px solid #E3E8F2; border-radius: 12px; background: #fff; padding: 0 18px; }
.co-what summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--navy); }
.co-what .buy-info { margin: 0 0 16px; background: none; border: 0; padding: 0; font-size: 14.5px; color: #4A4F63; gap: 8px; }
.summary.co-card { padding: 34px 36px 28px; border: 1px solid #E3E8F2; border-radius: 28px; background: #fff; box-shadow: 0 2px 4px rgba(26, 29, 46, .03), 0 18px 48px rgba(26, 29, 46, .08); top: calc(var(--hd-h) + 16px); }
.co-title { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; font-family: var(--f-title) !important; font-size: 40px !important; font-weight: 600 !important; color: var(--ink); letter-spacing: -.01em; }
.co-card .who-line { margin: 0 0 22px; color: #6B7080; font-size: 14px; }
.co-order { background: #F6F7FA; border: 1px solid #ECEEF3; border-radius: 12px; padding: 22px 24px 8px; }
.co-order h3 { margin: 0 0 18px; font-size: 19px; font-weight: 600; color: var(--ink); }
.co-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 7px 0; font-size: 15.5px; color: #4A4F63; font-variant-numeric: tabular-nums; }
.co-row b { display: block; font-weight: 500; color: #4A4F63; }
.co-row small { display: block; font-size: 14px; color: #8A90A2; margin-top: 2px; }
.co-save span:last-child { color: #0E7C6F; font-weight: 600; }
.co-total { margin-top: 12px; padding: 18px 0 16px; border-top: 1px solid #E3E6EC; font-size: 17px; color: var(--ink); }
.co-total span:last-child { font-weight: 700; }
.co-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 18px 20px; border: 1px solid #ECEEF3; border-radius: 12px; }
.co-note svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #6B7080; stroke-width: 1.8; stroke-linecap: round; }
.co-note p { margin: 0; font-size: 14.5px; color: #6B7080; line-height: 1.5; }
.co-card .buy-agree { margin-top: 18px; font-size: 14.5px; line-height: 1.5; }
.co-card .pay-btn { margin-top: 18px; height: 54px; font-size: 17px; }
@media (max-width: 980px) { .buy-grid.co { grid-template-columns: minmax(0, 1fr); gap: 32px; } .summary.co-card { position: static; } }
@media (max-width: 520px) { .co-plans { grid-template-columns: minmax(0, 1fr); } .plan.co-plan { min-height: 0; } .summary.co-card { padding: 24px 18px; border-radius: 20px; } .co-title { font-size: 32px !important; } .co-order { padding: 18px 16px 6px; } }

/* ==================== three-step checkout: choose a pack, order summary, payment ==================== */
.buy-lead { max-width: 900px; }
.buy-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; max-width: 620px; margin: 26px auto 6px; padding: 0; text-align: center; }
.buy-steps::before { content: none; }
.buy-steps li { flex: 1 1 0; min-width: 0; display: block; position: relative; }
.buy-steps li + li::before { content: ""; position: absolute; top: 17px; right: calc(50% + 26px); left: calc(-50% + 26px); border-top: 2px solid #D9D3C7; }
.buy-steps li.on::before, .buy-steps li.ok::before { border-top-color: var(--accent); }
.buy-steps button { all: unset; box-sizing: border-box; display: grid; justify-items: center; gap: 8px; width: 100%; font: inherit; font-size: 14.5px; color: #6B7080; cursor: default; }
.buy-steps button:not(:disabled) { cursor: pointer; }
.buy-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.buy-steps b { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #D9D3C7; color: #6B7080; font-size: 15px; font-weight: 700; }
.buy-steps li.on button { color: var(--navy); font-weight: 700; }
.buy-steps li.on b { background: var(--accent); border-color: var(--accent); color: #fff; }
.buy-steps li.ok button { color: var(--navy); }
.buy-steps li.ok b { background: #fff; border-color: var(--accent); color: transparent; }
.buy-steps li.ok b::after { content: ""; position: absolute; width: 14px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: translateY(-2px) rotate(-45deg); }
.buy-steps li.ok button:not(:disabled):hover span { text-decoration: underline; }
.co-h:focus { outline: none; }
#step1 .co-what { margin-top: 22px; }
.os-card { background: #fff; border: 1px solid #E3E8F2; border-radius: 14px; padding: 20px 22px; }
.os-card + .os-card { margin-top: 14px; }
.os-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.os-head h3 { margin: 0; font-family: var(--f-ui); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #B4530A; }
.os-btn { appearance: none; border: 1px solid #C9D9F5; background: #fff; color: var(--accent); font: inherit; font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 8px; cursor: pointer; flex: none; white-space: nowrap; }
.os-btn:hover { background: var(--accent-soft); }
.os-name { margin: 0; font-size: 17px; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.os-card .who-line { margin: 4px 0 0; font-size: 14.5px; color: #4A4F63; line-height: 1.55; overflow-wrap: anywhere; }
.os-item { display: flex; align-items: center; gap: 14px; }
.os-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; flex: none; }
.os-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; }
.os-it { flex: 1; min-width: 0; display: grid; gap: 2px; }
.os-it b { font-size: 17px; font-weight: 700; color: var(--navy); }
.os-it small { font-size: 14px; color: #6B7080; }
.os-price { font-size: 19px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.os-fast, .os-card p, .pd p { text-align: left !important; }
.os-fast { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #ECEEF3; font-size: 14.5px; color: #4A4F63; }
.os-fast svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: var(--orange); stroke: none; }
.os-gst.gst-box { margin-top: 14px; padding: 18px 22px; border-color: #E3E8F2; border-radius: 14px; }
.gst-tick { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.gst-tick input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.gst-tick span { display: grid; gap: 2px; min-width: 0; }
.gst-tick b { font-size: 16px; font-weight: 700; color: var(--navy); }
.gst-tick small { font-size: 14px; color: #6B7080; }
.gst-saved { margin: 14px 0 0 36px; padding: 12px 14px; background: #F6F7FA; border-radius: 10px; }
.os-pay { display: flex; gap: 14px; align-items: flex-start; }
.summary.co-card.pd { padding: 0 0 22px; border-radius: 18px; overflow: hidden; }
.summary.co-card .pd-h { margin: 0 !important; padding: 18px 26px !important; border: 0 !important; background: var(--navy); color: #fff !important; font-family: var(--f-ui) !important; font-size: 13px !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase; border-bottom: 4px solid var(--orange) !important; }
.pd-rows { padding: 16px 26px 0; }
.pd .co-total { margin-top: 10px; padding: 16px 0 4px; border-top: 1px dashed #C9CEDD; font-size: 18px; font-weight: 700; }
.pd .co-total span:last-child { font-size: 22px; color: var(--navy); }
.pd .buy-agree, .pd .pay-btn, .pd .pay-msg, .pd .pd-note, .pd .pay-modes { margin-left: 26px; margin-right: 26px; }
.pd .pay-btn { width: calc(100% - 52px); }
.pd .pay-msg:empty { min-height: 0; margin-top: 0; }
.pd .pd-note, .pd .pay-modes { text-align: center !important; }
.pd-note { margin-top: 14px; margin-bottom: 0; font-size: 13.5px; color: #6B7080; }
.pd .pay-modes { margin-top: 4px; }
@media (max-width: 520px) {
  .buy-steps { font-size: 12.5px; margin-top: 18px; } .buy-steps button { font-size: 12.5px; }
  .os-card, .os-gst.gst-box { padding: 16px; } .gst-saved { margin-left: 0; }
  .summary.co-card.pd { padding: 0 0 18px; border-radius: 16px; }
  .summary.co-card .pd-h { padding: 16px 18px !important; } .pd-rows { padding: 14px 18px 0; }
  .pd .buy-agree, .pd .pay-btn, .pd .pay-msg, .pd .pd-note, .pd .pay-modes { margin-left: 18px; margin-right: 18px; } .pd .pay-btn { width: calc(100% - 36px); }
  .os-item { flex-wrap: wrap; } .os-price { margin-left: 66px; }
}
.done-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-done .hint { text-align: left !important; }
.buy-gstnote { margin: 22px 0 0; }
.buy-gstnote + .buy-gstnote { margin-top: 6px; }

/* ---------- synopsis packs: three cards across the page (step 1), each with its own button ---------- */
.buy-grid.co.syn-step1 { grid-template-columns: minmax(0, 1fr); gap: 0; }
.buy-grid.co.syn-step1 .summary { display: none; }
.buy-grid.co.syn-step1 .co-h { margin-bottom: 18px; }
.sp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.sp-cards[hidden] { display: none; }
.sp-card { background: #fff; border: 1px solid #E2E5EE; border-radius: 22px; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 1px 2px rgba(26, 29, 46, .04), 0 10px 28px -18px rgba(26, 29, 46, .18); }
.sp-card.best { border: 2px solid var(--accent); }
.sp-up { padding: 28px 28px 24px; }
.sp-down { padding: 22px 28px 28px; border-top: 1px solid #ECEEF4; flex: 1; }
.sp-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-height: 58px; }
.sp-ico { width: 52px; height: 52px; flex: 0 0 auto; }
.sp-ico rect { fill: #fff; stroke: var(--navy); stroke-width: 1.8; }
.sp-ico path { stroke: #F08A24; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.sp-pill { background: #F1F3F8; border-radius: 999px; padding: 7px 13px; font-size: 14px; color: var(--navy); text-align: right; }
.sp-pill b { color: var(--accent); font-weight: 600; }
.sp-pill.o { background: #FFF1DF; }
.sp-pill.o b { color: #B45F06; }
.sp-name { margin: 14px 0 2px; font-family: var(--f-ui); font-size: 25px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.sp-sub { margin: 0 0 20px; color: var(--ink-2); font-size: 15.5px; }
.sp-price { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.sp-price b { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: var(--navy); }
.sp-price span { color: var(--ink-2); font-size: 14.5px; line-height: 1.35; min-width: 0; }
.sp-price s { color: #8A90A6; }
.sp-btn { margin: 20px 0 0; display: block; width: 100%; text-align: center; padding: 15px 12px; border: 0; border-radius: 13px; font: inherit; font-weight: 600; font-size: 17px; background: var(--navy); color: #fff; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.sp-card.best .sp-btn { background: var(--accent); }
.sp-btn:hover { box-shadow: 0 10px 22px -12px rgba(30, 37, 80, .7); transform: translateY(-1px); }
.sp-btn:focus-visible { outline: 3px solid rgba(31, 91, 216, .35); outline-offset: 2px; }
.sp-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.sp-tiny { margin: 10px 0 0; text-align: center; color: var(--ink-2); font-size: 13.5px; }
.sp-h { margin: 0 0 12px; color: var(--ink-2); font-size: 15.5px; }
.sp-down ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; color: #3A4163; }
.sp-down li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; text-align: left; overflow-wrap: anywhere; }
.sp-down li svg { width: 18px; height: 18px; margin-top: 2px; stroke: var(--ink-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-down li.free svg { stroke: #E07A12; }
.sp-down li.free b { color: var(--navy); font-weight: 600; }
.sp-down li small { color: #8A6A3A; font-size: 13.5px; }
@media (max-width: 980px) { .sp-cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; } .sp-price b { font-size: 36px; } }
.buy-syn [data-gst-note] { display: none !important; }
/* the small line always sits under the price, so the buttons of the three cards stay level */
.sp-price { flex-direction: column; align-items: flex-start; gap: 6px; }
.sp-price span { min-height: 20px; }
.sp-h, .sp-sub, .sp-down li span { text-align: left; }
