/* Payment-choice pop-up (_BillingChoice), feature panel (_BillingFeatures)
   and /BillingChoice/Done. */

.bc-overlay {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: flex-start; justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    padding: 24px 16px; overflow-y: auto;
}

.bc-dialog {
    position: relative; width: 100%; max-width: 640px;
    background: #fff; border-radius: 12px; padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    color: #1E293B; font-size: 0.95rem; line-height: 1.45;
}

.bc-dialog h2, .bc-page h2 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 700; }
.bc-lead { margin: 0 0 18px; color: #475569; }
.bc-notice {
    margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; line-height: 1.4;
    background: #EFF6FF; border: 1px solid #BFDBFE; border-left: 4px solid #2563EB; color: #1E3A8A;
}

.bc-close {
    position: absolute; top: 10px; right: 14px;
    border: 0; background: none; font-size: 1.8rem; line-height: 1; color: #94A3B8; cursor: pointer;
}
.bc-close:hover { color: #1E293B; }

.bc-error {
    margin: 0 0 14px; padding: 10px 12px; border-radius: 8px;
    background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B;
}

.bc-success {
    margin: 0 0 16px; padding: 10px 12px; border-radius: 8px;
    background: #F0FDFA; border: 1px solid #5EEAD4; color: #115E59;
}

.bc-option {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px; margin: 0 0 10px; border: 1px solid #CBD5E1; border-radius: 10px;
    cursor: pointer; font-weight: normal; background: #fff;
}
.bc-option:hover { border-color: #0D9488; }
/* The site's Forms.css stretches inputs; pin the radio/checkbox to its own size. */
.bc-option input, .bc-confirm input {
    flex: 0 0 auto; width: auto !important; height: auto; margin: 4px 0 0; accent-color: #0D9488;
}
.bc-option-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; text-align: left; }
.bc-option-body span { color: #64748B; font-size: 0.875rem; }
.bc-option:has(input:checked) { border-color: #0D9488; background: #F0FDFA; }

.bc-tag {
    display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
    background: #0D9488; color: #fff !important; font-size: 0.72rem; font-weight: 600; vertical-align: middle;
}
.bc-fee { margin-left: 6px; color: #B45309 !important; font-weight: 600; font-size: 0.85rem; }

.bc-confirm {
    display: flex; gap: 8px; align-items: flex-start;
    margin: 4px 0 12px; padding: 10px 12px; border-radius: 8px;
    background: #FFFBEB; border: 1px solid #FCD34D; font-weight: normal; font-size: 0.875rem;
}
.bc-confirm-needed { border-color: #DC2626; background: #FEF2F2; }

.bc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 4px; }

.bc-btn {
    display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
    font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none;
}
.bc-btn-primary, a.bc-btn-primary, a.bc-btn-primary:visited { background: #0D9488; color: #fff !important; }
.bc-btn-primary:hover { background: #0F766E; color: #fff; text-decoration: none; }
.bc-btn-secondary { background: #fff; color: #0F766E; border-color: #0D9488; }
.bc-btn-secondary:hover { background: #F0FDFA; }
.bc-btn-link { background: none; color: #64748B; padding-left: 4px; padding-right: 4px; }
.bc-btn-link:hover { color: #1E293B; text-decoration: underline; }

.bc-features { margin-top: 22px; padding-top: 18px; border-top: 1px solid #E2E8F0; }
.bc-features-title { margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; }

.bc-feature { padding: 14px; margin: 0 0 10px; border-radius: 10px; background: #F8FAFC; border: 1px solid #E2E8F0; }
.bc-feature p { margin: 8px 0 10px; color: #475569; font-size: 0.875rem; }
.bc-feature-head { display: flex; gap: 10px; align-items: flex-start; }
.bc-feature-head > i { font-size: 1.3rem; color: #0D9488; }
.bc-feature-head strong { display: block; }
.bc-price { color: #0F766E; font-weight: 600; font-size: 0.875rem; }
.bc-on { color: #0F766E; font-weight: 600; font-size: 0.875rem; }

.bc-page { max-width: 680px; margin: 24px auto; padding: 0 16px; color: #1E293B; }

@media (max-width: 480px) {
    .bc-overlay { padding: 0; }
    .bc-dialog { border-radius: 0; min-height: 100%; padding: 22px 16px; }
    .bc-actions .bc-btn-primary { width: 100%; }
}

.bc-later { margin: -4px 0 0; }
.bc-current { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #E2E8F0; color: #334155 !important; font-size: 0.72rem; font-weight: 600; vertical-align: middle; }
.bc-current-box { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: #F8FAFC; border: 1px solid #E2E8F0; }
.bc-current-box span { color: #64748B; }
.bc-since { margin-left: 8px; font-size: 0.85rem; }
.bc-small { margin-top: 14px; color: #64748B; font-size: 0.8rem; }
.bc-preview-note { color: #B45309; font-size: 0.85rem; }
.bc-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.bc-note { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 6px; background: #F1F5F9; color: #334155 !important; font-size: 0.8rem !important; }
.bc-note-warn { background: #FFFBEB; color: #78350F !important; }

/* Upgrade page (/Upgrade) and the locked Deposit Assessment menu item. */
.up-hero { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; }
.up-hero > i { font-size: 2rem; color: #0D9488; }
.up-hero h2 { margin: 0; }
.up-price { font-size: 1rem; }
.up-price span { color: #64748B; font-weight: normal; font-size: 0.85rem; }
.up-points { list-style: none; padding: 0; margin: 0 0 18px; }
.up-points li { display: flex; gap: 8px; margin: 0 0 8px; color: #334155; }
.up-points li i { color: #0D9488; margin-top: 2px; }
.up-agree { display: flex !important; }
.nav-locked { opacity: 0.75; }
.nav-lock { font-size: 0.7rem; margin-left: 4px; opacity: 0.8; }

/* Custom Branding live preview (/Upgrade?feature=branding). */
.bc-page-wide { max-width: 1180px; }
.bp-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin: 8px 0 22px; align-items: start; }
.bp-controls { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px; }
.bp-logo { display: flex; flex-direction: column; gap: 6px; padding: 10px; margin: 0 0 14px; border-radius: 8px; background: #F8FAFC; border: 1px dashed #CBD5E1; font-size: 0.8rem; color: #64748B; }
.bp-logo img { max-height: 48px; max-width: 200px; object-fit: contain; align-self: flex-start; }
.bp-colour { margin: 0 0 12px; }
.bp-colour label { display: block; font-weight: 600; font-size: 0.875rem; margin: 0; color: #1E293B; }
.bp-hint { display: block; font-size: 0.75rem; color: #64748B; margin-bottom: 4px; }
.bp-row { display: flex; gap: 8px; align-items: center; }
.bp-row input[type=color] { width: 44px !important; height: 36px; padding: 2px; border: 1px solid #CBD5E1; border-radius: 6px; background: #fff; cursor: pointer; }
.bp-row .bp-hex { width: 100px !important; height: 36px; padding: 0 8px; border: 1px solid #CBD5E1; border-radius: 6px; font-family: monospace; }
.bp-preview { border-radius: 12px; overflow: hidden; border: 1px solid #CBD5E1; background: #E2E8F0; }
.bp-preview iframe { display: block; width: 100%; height: 640px; border: 0; }
@media (max-width: 900px) {
    .bp-wrap { grid-template-columns: 1fr; }
    .bp-preview iframe { height: 520px; }
}
.bp-upload { position: relative; overflow: hidden; font-size: 0.8rem; padding: 6px 12px; align-self: flex-start; }
.bp-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100% !important; }
.up-off { margin-top: 26px; padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 10px; background: #fff; }
.up-off summary { cursor: pointer; color: #64748B; font-weight: 600; font-size: 0.875rem; }
.up-off form { margin-top: 10px; }
.up-btn-danger { background: #fff; color: #B91C1C; border-color: #FCA5A5; }
.up-btn-danger:not([disabled]):hover { background: #FEF2F2; }

/* Deposit Assessment demo (/Upgrade?feature=deposit). */
.dd-wrap { grid-template-columns: 340px 1fr; }
.dd-steps { counter-reset: dd; list-style: none; padding: 0; margin: 0 0 12px; }
.dd-steps li { counter-increment: dd; position: relative; padding: 0 0 14px 40px; }
.dd-steps li::before { content: counter(dd); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: #0D9488; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.dd-steps strong { display: block; color: #1E293B; font-size: 0.9rem; }
.dd-steps span { display: block; color: #64748B; font-size: 0.8rem; line-height: 1.45; }
.dd-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-links .bc-btn { font-size: 0.8rem; padding: 6px 12px; }
.bc-page-wide .up-points, .bc-page-wide .bc-lead { max-width: 820px; }
@media (max-width: 900px) { .dd-wrap { grid-template-columns: 1fr; } }

/* Deposit Assessment demo: "Try the review". */
.dd-steps li.dd-current::before { box-shadow: 0 0 0 4px #CCFBF1; }
.dd-steps li.dd-done::before { content: "\2713"; background: #64748B; }
.dd-steps li:not(.dd-current):not(.dd-done)::before { background: #CBD5E1; }
.dd-preview { background: #fff; }
.dd-review { height: 640px; overflow-y: auto; padding: 14px 16px; box-sizing: border-box; }
.dd-review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 0 0 12px; }
.dd-review-head strong { display: block; color: #1E293B; }
.dd-review-head span { font-size: 0.8rem; color: #64748B; }
.dd-badge { background: #FEF3C7; color: #92400E !important; border-radius: 999px; padding: 2px 10px; font-weight: 600; white-space: nowrap; }
.dd-item { border: 1px solid #E2E8F0; border-radius: 10px; padding: 12px; margin: 0 0 10px; }
.dd-item.dd-decided { border-color: #99F6E4; background: #F0FDFA; }
.dd-item.dd-removed { border-color: #FECACA; background: #FEF2F2; }
.dd-item.dd-removed .dd-amount { text-decoration: line-through; color: #B91C1C; }
.dd-item-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.dd-item-head strong { color: #1E293B; font-size: 0.9rem; }
.dd-outcome { font-size: 0.72rem; font-weight: 600; color: #0F766E; background: #CCFBF1; border-radius: 999px; padding: 1px 8px; }
.dd-amount { margin-left: auto; font-weight: 700; color: #1E293B; }
.dd-quote { font-size: 0.8rem; color: #475569; margin: 2px 0; }
.dd-cost { font-size: 0.75rem; color: #64748B; margin: 6px 0 8px; font-family: monospace; }
.dd-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dd-btn { font-size: 0.78rem; padding: 5px 10px; background: #fff; border-color: #CBD5E1; color: #334155; }
.dd-btn:hover { border-color: #0D9488; color: #0F766E; }
.dd-state { font-size: 0.8rem; color: #0F766E; font-weight: 600; }
.dd-removed .dd-state { color: #B91C1C; }
.dd-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.dd-form input[type=number] { width: 80px !important; height: 32px; padding: 0 6px; border: 1px solid #CBD5E1; border-radius: 6px; }
.dd-form .dd-reason { flex: 1 1 200px; height: 32px; padding: 0 8px; border: 1px solid #CBD5E1; border-radius: 6px; }
.dd-form .dd-need { border-color: #DC2626; }
.dd-form .bc-btn { font-size: 0.78rem; padding: 5px 12px; }
.dd-amount-input { font-size: 0.8rem; color: #334155; font-weight: normal; margin: 0; }
.dd-total { position: sticky; bottom: -14px; background: #fff; border-top: 1px solid #E2E8F0; padding: 10px 0 4px; margin-top: 6px; }
.dd-total > div { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; margin: 2px 0; }
.dd-approve-row { margin-top: 8px !important; gap: 10px; }
.dd-report-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; background: #F0FDFA; border-bottom: 1px solid #99F6E4; color: #115E59; font-size: 0.85rem; font-weight: 600; }
.dd-report-bar .bc-btn { font-size: 0.78rem; padding: 4px 10px; }
.dd-report iframe { display: block; width: 100%; height: 600px; border: 0; }
.dd-form[hidden], .dd-review[hidden], .dd-report[hidden] { display: none !important; }

/* Billing contact (payment pop-up + Change payment method page) */
.bc-contact { margin: 14px 0 0; padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 8px; }
.bc-contact legend { padding: 0 6px; font-weight: 600; color: #1E293B; }
.bc-contact .bc-small { margin: 0 0 10px; }
.bc-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.bc-contact-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: #334155; }
.bc-contact-grid input { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid #CBD5E1; border-radius: 6px; font-size: 0.9rem; }
@media (max-width: 600px) { .bc-contact-grid { grid-template-columns: 1fr; } }

/* Pop-up pages with Next (_ServiceLevelChoice, _SubscriptionMove): Site.css's `section { display: block }` beats [hidden]. */
.sl-step[hidden] { display: none !important; }

/* Moving to a subscription (_SubscriptionMove). */
.sm-points { list-style: none; padding: 0; margin: 12px 0; }
.sm-points li { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.sm-points li i { color: #0D9488; margin-top: 2px; }
.sm-price { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; margin: 8px 0 12px; border: 1px solid #99F6E4; border-radius: 10px; background: #F0FDFA; }
.sm-amount { font-size: 1.5rem; font-weight: 700; color: #0F766E; }
.sm-amount small { font-size: 0.875rem; font-weight: normal; color: #475569; }
.sm-gift { display: flex; gap: 12px; padding: 14px 16px; margin: 12px 0; border-radius: 10px; background: #FFF7ED; border: 1px solid #FDBA74; }
.sm-gift > i { font-size: 1.5rem; color: #EA580C; }
.sm-gift p { margin: 6px 0 0; }
/* How the subscription is priced (Client/_SubscriptionTerms, Billing/MoveToSubscription). */
.bs-terms { margin: 16px 0; padding: 14px 16px; border: 1px solid #99F6E4; border-radius: 10px; background: #F0FDFA; }
.bs-terms h2 { margin-top: 0; }
.bs-terms h3 { font-size: 1rem; margin: 12px 0 4px; }
.bs-terms-table { border-collapse: collapse; margin: 8px 0; }
.bs-terms-table td { padding: 4px 16px 4px 0; vertical-align: top; }
.bs-terms-table td + td { text-align: right; white-space: nowrap; }
.bs-terms .bs-hint, .bc-page .bs-hint { color: #718096; font-size: 0.8125rem; }
/* Centre announcements pop-up (_Announcements) */
/* One big, dead-centre dialog, the same size on every page. Content is centred inside it; the pager stays at the foot.
   Wide screens: two columns / three cards. Tablet: single column. Phones (up to 600px): a full-screen sheet. */
#announce-overlay { align-items: center; overflow: hidden; padding: 0; }
#announce-overlay .bc-dialog {
    display: flex; flex-direction: column; padding: 0; overflow: hidden;
    width: min(1120px, 94vw); max-width: none;
    height: min(780px, 92vh); height: min(780px, 92dvh); min-height: 0;
    border-radius: 18px; box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}
#announce-overlay .bc-close {
    position: absolute; top: 14px; right: 16px; z-index: 3;
    width: 38px; height: 38px; padding: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #F1F5F9; color: #475569; font-size: 1.5rem; line-height: 1;
}
#announce-overlay .bc-close:hover { background: #E2E8F0; color: #0F172A; }
#announce-overlay .bc-error { margin: 14px 64px 0 28px; flex: none; }

.an-page { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.an-page[hidden] { display: none; }
.an-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; padding: 28px 48px; }
.an-inner { margin: auto; width: 100%; }

#announce-overlay h2 { margin: 0 0 8px; font-size: clamp(1.55rem, 2.4vw, 2.3rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; color: #0F172A; }
#announce-overlay .bc-lead { margin: 0 0 16px; font-size: 1.05rem; color: #475569; }
.an-more, .an-learn { font-weight: 600; }
.an-more { margin: 10px 0 0; }
.an-more a, .an-learn { color: #0F766E; }
.an-sub { margin: 18px 0 6px; font-size: 1.05rem; font-weight: 700; color: #0F172A; }

/* Pager */
.an-nav {
    flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
    margin: 0; padding: 14px 28px; border-top: 1px solid #E2E8F0; background: #fff;
}
.an-nav-l, .an-nav-r { display: flex; align-items: center; gap: 8px; min-width: 0; }
.an-nav-r { justify-content: flex-end; }
.an-nav .bc-btn { padding: 10px 22px; border-radius: 10px; white-space: nowrap; }
.an-nav .bc-btn-link { padding: 10px 8px; }
.an-dots { display: flex; gap: 8px; align-items: center; }
.an-dot { width: 8px; height: 8px; border-radius: 999px; background: #CBD5E1; transition: width .2s, background .2s; }
.an-dot-on { width: 26px; background: #0D9488; }

/* Page 1: the app */
.an-p-app .an-inner { max-width: 1060px; }
.an-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.an-banner { margin: 0 0 18px; }
.an-banner img { display: block; width: 100%; height: auto; aspect-ratio: 3840 / 1646; border-radius: 12px; box-shadow: 0 6px 22px rgba(15, 23, 42, 0.16); }
.an-col p { margin: 0 0 8px; }
.an-col .bc-lead { margin: 0; }
.an-warning {
    display: flex; gap: 14px; align-items: flex-start; margin: 0 0 4px; padding: 16px 18px;
    border-radius: 12px; background: #FEF3C7; border: 2px solid #D97706; color: #78350F;
}
.an-warning > i { flex: none; font-size: 1.7rem; line-height: 1.1; color: #B45309; }
.an-warning strong { display: block; font-size: 1.08rem; color: #7C2D12; }
.an-warning p { margin: 4px 0 0; }

/* Page 2: AI features */
.an-p-ai .an-inner { max-width: 1040px; text-align: center; }
.an-p-ai .bc-lead { margin-bottom: 22px; }
.an-ai { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; }
.an-ai > li {
    display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 20px;
    border-radius: 14px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.an-ai > li > i {
    flex: none; width: 48px; height: 48px; border-radius: 12px; font-size: 1.5rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    background: #F1F5F9; background: color-mix(in srgb, currentColor 13%, #fff);
}
.an-ai > li > div { display: flex; flex-direction: column; flex: 1 1 auto; }
.an-ai strong { font-size: 1.12rem; color: #0F172A; }
.an-ai p { margin: 6px 0 0; }
.an-where { color: #475569; font-size: 0.875rem; }
.an-where i { color: #0D9488; }
.an-lrow { margin-top: auto !important; padding-top: 12px; }
.an-charges {
    display: flex; gap: 12px; align-items: flex-start; text-align: left; margin: 0; padding: 14px 18px;
    border-radius: 12px; background: #F0FDFA; border: 1px solid #99F6E4; font-size: 0.875rem; color: #134E4A;
}
.an-charges > i { flex: none; font-size: 1.3rem; color: #0D9488; line-height: 1.2; }
.an-charges a { color: #0F766E; font-weight: 600; }

/* Page 3: automated billing */
.an-p-billing .an-inner { max-width: 1040px; }
.an-p-billing .bc-lead { margin-bottom: 14px; font-size: 1rem; }
.an-p-billing .bc-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.an-p-billing .bc-option { margin: 0; padding: 14px; border-radius: 12px; border-width: 2px; }
.an-p-billing .bc-option-body span { font-size: 0.82rem; line-height: 1.35; }
.an-p-billing .bc-option-body strong { font-size: 0.98rem; }
.an-p-billing .bc-note { margin-top: 6px; padding: 6px 8px; font-size: 0.76rem !important; line-height: 1.3; }
.an-p-billing .bc-contact, .an-p-billing .bc-confirm, .an-p-billing .bc-actions { grid-column: 1 / -1; margin: 0; }
.an-p-billing .bc-contact { padding: 8px 14px 12px; }
.an-p-billing .bc-contact .bc-small { margin: 0 0 8px; }
.an-p-billing .bc-contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
.an-p-billing .bc-contact-grid input { padding: 6px 9px; }
.an-p-billing .bc-actions { justify-content: flex-end; }
.an-p-billing .bc-features { margin-top: 12px; padding-top: 12px; }
.an-p-billing .bc-features-title { margin: 0 0 8px; font-size: 0.98rem; }
.an-p-billing .bc-feature {
    display: grid; grid-template-columns: minmax(150px, auto) 1fr auto; align-items: center; gap: 16px; margin: 0; padding: 10px 14px;
}
.an-p-billing .bc-feature p { margin: 0; }
.an-p-billing .bc-feature .bc-btn { padding: 7px 14px; font-size: 0.875rem; }


.an-p-billing h2 { font-size: clamp(1.5rem, 2vw, 1.8rem); margin-bottom: 2px; }
@media (min-width: 1000px) {
    .an-page.an-p-billing .an-body { padding-top: 14px; padding-bottom: 12px; }
    .an-p-billing .bc-lead { margin-bottom: 10px; }
    .an-p-billing .bc-features { margin-top: 8px; padding-top: 8px; }
    .an-p-billing .bc-features-title { margin-bottom: 6px; }
    .an-p-billing .bc-feature { padding: 8px 14px; }
}

/* Wide screens: use the room */
@media (min-width: 1000px) {
    .an-warning p, .an-col-b > p { font-size: 1.02rem; line-height: 1.5; }
    .an-warning strong { font-size: 1.15rem; }
    #announce-overlay .bc-lead { font-size: 1.15rem; }
    .an-ai > li { padding: 24px 24px 22px; }
    .an-ai > li > i { width: 56px; height: 56px; font-size: 1.7rem; border-radius: 14px; }
    .an-ai strong { font-size: 1.25rem; }
    .an-ai .an-desc { font-size: 1rem; line-height: 1.45; }
    .an-where { font-size: 0.9rem; }
    .an-learn { font-size: 1rem; }
    .an-charges { font-size: 0.95rem; padding: 16px 20px; }
}
/* No second scrollbar behind the pop-up while it is open */
body:has(#announce-overlay:not([style*="display: none"])) { overflow: hidden; }

/* Short laptop screens (e.g. 1280x720): tighten the vertical rhythm */
@media (min-width: 1000px) and (max-height: 800px) {
    .an-body { padding-top: 22px; padding-bottom: 18px; }
    #announce-overlay .bc-lead { margin-bottom: 12px; }
    .an-banner { margin-bottom: 14px; }
    .an-ai > li { padding: 16px 18px; gap: 10px; }
    .an-sub { margin-top: 14px; }
    .an-p-billing .bc-form { gap: 8px 12px; }
    .an-p-billing .bc-option { padding: 12px; }
    .an-p-billing .bc-actions .bc-btn { padding: 8px 22px; }
    .an-p-billing .bc-contact { padding-bottom: 10px; }
    .an-p-billing .bc-feature { padding: 6px 14px; }
    .an-p-billing .bc-feature .bc-btn { padding: 5px 12px; }
    .an-p-billing .bc-lead { margin-bottom: 6px; }
    .an-page.an-p-billing .an-body { padding-top: 10px; padding-bottom: 8px; }
}

/* Tablet and narrow desktop: one column */
@media (max-width: 999px) {
    .an-body { padding: 28px 40px; }
    .an-p-app .an-inner { max-width: 640px; }
    .an-cols { grid-template-columns: 1fr; gap: 20px; }
    .an-p-ai .an-inner, .an-p-billing .an-inner { max-width: 680px; }
    .an-ai { grid-template-columns: 1fr; gap: 12px; }
    .an-ai > li { flex-direction: row; align-items: flex-start; gap: 16px; padding: 16px 18px; }
    .an-lrow { margin-top: 0 !important; padding-top: 6px; }
    .an-p-billing .bc-form { grid-template-columns: 1fr; }
    .an-p-billing .bc-contact-grid { grid-template-columns: 1fr 1fr; }
    .an-p-billing .bc-feature { grid-template-columns: 1fr; gap: 6px; }
}

/* Phones: a full-screen sheet with a sticky pager */
@media (max-width: 600px) {
    #announce-overlay { align-items: stretch; }
    #announce-overlay .bc-dialog {
        width: 100vw; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none;
    }
    #announce-overlay .bc-close { top: max(8px, env(safe-area-inset-top)); right: 10px; width: 34px; height: 34px; }
    .an-body { padding: max(14px, env(safe-area-inset-top)) 14px 10px; }
    #announce-overlay h2 { font-size: 1.3rem; margin-bottom: 4px; padding-right: 36px; }
    .an-p-ai h2 { padding: 0 36px; }
    #announce-overlay .bc-lead { font-size: 0.92rem; margin-bottom: 10px; }
    .an-col p { font-size: 0.86rem; }
    .an-cols { gap: 12px; }
    .an-banner { margin-bottom: 10px; }
    .an-banner img { border-radius: 8px; }
    .an-warning { gap: 10px; padding: 10px 12px; }
    .an-warning > i { font-size: 1.3rem; }
    .an-warning strong { font-size: 0.95rem; }
    .an-warning p { font-size: 0.8rem; margin-top: 3px; line-height: 1.35; }
    .an-sub { margin: 10px 0 3px; font-size: 0.98rem; }
    .an-col-b > p { font-size: 0.84rem; line-height: 1.38; }
    .an-more { margin-top: 6px !important; }
    .an-p-ai .bc-lead { margin-bottom: 10px; }
    .an-ai { gap: 8px; margin-bottom: 10px; }
    .an-ai > li { gap: 12px; padding: 10px 12px; border-radius: 12px; }
    .an-ai > li > i { width: 38px; height: 38px; font-size: 1.2rem; border-radius: 10px; }
    .an-ai strong { font-size: 0.98rem; }
    .an-ai p { margin-top: 2px; font-size: 0.82rem; line-height: 1.32; }
    .an-where { font-size: 0.78rem !important; }
    .an-lrow { padding-top: 2px; font-size: 0.82rem; }
    .an-charges { gap: 8px; padding: 9px 11px; font-size: 0.76rem; line-height: 1.35; }
    .an-charges > i { font-size: 1.05rem; }
    .an-nav { gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
    .an-nav .bc-btn { padding: 9px 18px; }
    .an-p-billing .bc-feature { padding: 10px 12px; }
}
/* Very small phones (under 360 x 640): tighten a little more; the middle scrolls if it still cannot fit */
@media (max-width: 359px), (max-height: 639px) and (max-width: 600px) {
    #announce-overlay h2 { font-size: 1.15rem; }
    .an-warning p, .an-col-b > p, .an-ai p { font-size: 0.76rem; }
    .an-nav .bc-btn { padding: 8px 12px; }
}

/* Page 3: Introducing our new Help Centre */
.an-p-help .an-inner { max-width: 1060px; }
.an-p-help .an-cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; }
.an-help-points { list-style: none; margin: 14px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.an-help-points li { display: flex; gap: 14px; align-items: flex-start; }
.an-help-points li > i {
    flex: none; width: 44px; height: 44px; border-radius: 12px; font-size: 1.35rem; color: #0D9488; background: #CCFBF1;
    display: flex; align-items: center; justify-content: center;
}
.an-help-points strong { font-size: 1.1rem; color: #0F172A; }
.an-help-points p { margin: 2px 0 0; color: #475569; }
.an-q {
    display: inline-flex; align-items: center; justify-content: center; width: 1.35em; height: 1.35em; border-radius: 50%;
    background: #0D9488; color: #fff; font-weight: 700; font-size: 0.85em; vertical-align: baseline;
}
.an-notice {
    display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px;
    border-radius: 12px; background: #FEF3C7; border: 2px solid #D97706; color: #78350F;
}
.an-notice > i { flex: none; font-size: 1.5rem; line-height: 1.1; color: #B45309; }
.an-notice p { margin: 0; }
.an-notice strong { color: #7C2D12; }
.an-col .an-help-cta { margin: 0; }
.an-help-cta .bc-btn { padding: 11px 22px; border-radius: 10px; }

/* Help Centre mock-up (pure HTML/CSS, not a screenshot) */
.hc-mock { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #CBD5E1; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18); text-align: left; }
.hc-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #0F766E; color: #fff; }
.hc-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.hc-bar b { margin-left: 8px; font-size: 0.92rem; font-weight: 600; }
.hc-body { padding: 14px; background: #F8FAFC; display: flex; flex-direction: column; gap: 10px; }
.hc-search { padding: 9px 12px; border: 1px solid #CBD5E1; border-radius: 8px; background: #fff; color: #94A3B8; font-size: 0.85rem; }
.hc-search i { margin-right: 6px; color: #64748B; }
.hc-cards { display: flex; flex-direction: column; gap: 8px; }
.hc-card { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid #E2E8F0; }
.hc-card > i { flex: none; width: 32px; height: 32px; border-radius: 8px; background: #CCFBF1; color: #0D9488; display: flex; align-items: center; justify-content: center; }
.hc-card b { display: block; font-size: 0.86rem; color: #0F172A; font-weight: 600; line-height: 1.25; }
.hc-card small { color: #64748B; font-size: 0.74rem; }
.hc-chat { display: flex; flex-direction: column; gap: 7px; padding: 10px; border-radius: 12px; background: #fff; border: 2px solid #0D9488; }
.hc-chat-head { font-weight: 700; font-size: 0.84rem; color: #0F766E; }
.hc-msg { max-width: 86%; padding: 7px 11px; border-radius: 12px; font-size: 0.82rem; line-height: 1.35; }
.hc-me { align-self: flex-end; background: #0D9488; color: #fff; border-bottom-right-radius: 3px; }
.hc-bot { align-self: flex-start; background: #F1F5F9; color: #1E293B; border-bottom-left-radius: 3px; }
@media (min-width: 1000px) and (max-height: 800px) {
    .an-help-points { margin: 10px 0; gap: 8px; }
    .an-notice { padding: 10px 14px; margin-bottom: 12px; }
    .hc-body { padding: 10px; gap: 8px; }
    .hc-card { padding: 6px 10px; }
}
@media (max-width: 999px) {
    .an-p-help .an-inner { max-width: 640px; }
    .an-p-help .an-cols { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
    .an-help-points { margin: 8px 0; gap: 8px; }
    .an-help-points li { gap: 10px; }
    .an-help-points li > i { width: 34px; height: 34px; font-size: 1.05rem; border-radius: 9px; }
    .an-help-points strong { font-size: 0.95rem; }
    .an-help-points p { font-size: 0.82rem; line-height: 1.35; }
    .an-notice { gap: 9px; padding: 9px 11px; margin-bottom: 10px; }
    .an-notice > i { font-size: 1.2rem; }
    .an-notice p { font-size: 0.8rem; line-height: 1.35; }
    .an-help-cta .bc-btn { width: 100%; text-align: center; box-sizing: border-box; }
    .hc-search, .hc-card:nth-child(3) { display: none; }
    .hc-body { padding: 9px; gap: 7px; }
    .hc-card { padding: 6px 9px; }
    .hc-chat { padding: 8px; gap: 5px; }
    .hc-msg { font-size: 0.76rem; padding: 5px 9px; }
}

/* Branding add-on on the billing page: tick + separate "Find out more" */
.bc-feature-pick { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: 0.9rem; color: #0F172A; cursor: pointer; }
.bc-feature-pick input { flex: 0 0 auto; width: auto !important; height: auto; margin: 0; accent-color: #0D9488; transform: scale(1.2); }
.bc-feature-pick input:disabled { cursor: not-allowed; }
.an-p-billing .bc-feature.bc-feature-opt { grid-template-columns: minmax(150px, auto) 1fr auto; }
.bc-feature-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
@media (min-width: 1000px) {
    .an-p-billing .bc-feature-actions { flex-direction: row; align-items: center; gap: 16px; }
    .an-p-billing .bc-feature-actions .bc-btn { white-space: nowrap; }
}

/* AI credits: its own page in the pop-up, between the payment choice and Stripe */
.an-p-aicredits .an-inner { max-width: 1040px; }
.an-p-aicredits h2 { margin-bottom: 8px; }
.ac-benefits { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1.35fr 1.25fr; gap: 10px; }
.ac-benefits li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #E2E8F0; }
.ac-benefits li > i { flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #0D9488; background: #F0FDFA; }
.ac-benefits strong { display: block; font-size: 0.98rem; color: #0F172A; }
.ac-benefits em { display: block; margin-top: 1px; font-style: normal; font-size: 0.82rem; font-weight: 600; color: #0F766E; }
.ac-benefits span { display: block; margin-top: 3px; font-size: 0.78rem; line-height: 1.3; color: #475569; }
.ac-benefits b { font-weight: 700; color: #0F172A; }
.ac-gift { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; background: #F0FDFA; border: 1px solid #99F6E4; color: #134E4A; }
.ac-gift > i { flex: none; font-size: 1.6rem; line-height: 1.1; color: #0D9488; }
.ac-gift p { margin: 0; font-size: 0.98rem; line-height: 1.4; }
.ac-gift p + p { margin-top: 4px; font-size: 0.88rem; color: #115E59; }
.ac-gift strong { color: #0F172A; }
.ac-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; margin: 0 0 6px; }
.ac-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #0F172A; }
.ac-grid { display: grid; grid-template-columns: 1fr repeat(5, minmax(0, 1fr)); gap: 10px; }
.ac-opt { position: relative; display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 12px 12px 14px; border: 2px solid #E2E8F0; border-radius: 14px; background: #fff; cursor: pointer; line-height: 1.25; text-align: left; }
.ac-opt input { position: absolute; opacity: 0; width: 1px !important; height: 1px; margin: 0; pointer-events: none; }
.ac-opt:hover { border-color: #94A3B8; }
.ac-opt:has(input:checked) { border-color: #0D9488; background: #F0FDFA; box-shadow: 0 0 0 1px #0D9488; }
.ac-opt:has(input:focus-visible) { outline: 2px solid #0D9488; outline-offset: 2px; }
.ac-opt:has(input:checked)::after { content: "\2713"; position: absolute; right: 10px; top: 8px; font-size: 1rem; font-weight: 700; color: #0D9488; }
.ac-name { font-size: 1.02rem; font-weight: 700; color: #0F172A; padding-right: 18px; }
.ac-price { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; color: #0D9488; }
.ac-price small { font-size: 0.8rem; font-weight: 600; color: #64748B; letter-spacing: 0; }
.ac-credits { font-size: 0.86rem; font-weight: 600; color: #334155; }
.ac-uses { margin-top: 4px; padding-top: 6px; border-top: 1px solid #E2E8F0; font-size: 0.8rem; line-height: 1.35; color: #475569; }
.ac-uses b { font-weight: 600; color: #0F172A; }
.ac-none { justify-content: center; }
.ac-sub { font-size: 0.82rem; line-height: 1.35; color: #64748B; }
.ac-small { margin: 10px 0 0; font-size: 0.78rem; line-height: 1.4; color: #64748B; }
.ac-small a { color: #0F766E; font-weight: 600; }
.bc-ai-more { font-size: 0.85rem; font-weight: 600; color: #0D9488; white-space: nowrap; text-decoration: none; }
.bc-ai-more:hover { text-decoration: underline; }
@media (min-width: 1000px) and (max-height: 800px) {
    .an-page.an-p-aicredits .an-body { padding-top: 12px; padding-bottom: 8px; }
    .an-p-aicredits h2 { font-size: 1.5rem; }
    .ac-benefits { margin-bottom: 8px; gap: 10px; }
    .ac-benefits li { padding: 8px 10px; }
    .ac-gift { margin-bottom: 8px; padding: 9px 14px; }
    .ac-opt { padding: 9px 11px 10px; }
    .ac-small { margin-top: 7px; }
}
@media (max-width: 999px) {
    .an-p-aicredits .an-inner { max-width: 680px; }
    .ac-benefits { grid-template-columns: 1fr; gap: 8px; }
    .ac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ac-none { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ac-gift { padding: 10px 12px; gap: 10px; }
    .ac-gift p { font-size: 0.88rem; }
    .ac-price { font-size: 1.3rem; }
}

/* Custom branded documents: its own page in the pop-up, between the payment choice and AI credits.
   Wide: copy, colours and the switch on the left, the live example report on the right. Phones: stacked. */
.an-p-branding .an-inner { max-width: 1060px; }
.br-page { display: grid; grid-template-columns: minmax(330px, 420px) minmax(0, 1fr); gap: 28px; align-items: stretch; text-align: left; }
.br-copy { display: flex; flex-direction: column; min-width: 0; }
.br-copy h2 { margin-bottom: 6px; }
.br-copy .bc-lead { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.4; }
.br-points { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.br-points li { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: 0.92rem; color: #0F172A; }
.br-points i { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #CCFBF1; color: #0F766E; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.br-try { margin: 0 0 6px; font-size: 0.85rem; color: #475569; }
.br-copy .bp-controls { padding: 8px 12px; margin-bottom: 10px; }
.bp-controls-popup .bp-colour { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 10px; margin: 0 0 4px; }
.bp-controls-popup .bp-colour label { font-size: 0.85rem; }
.bp-controls-popup .bp-hint { display: none; }
.bp-controls-popup .bp-row { grid-row: 1; grid-column: 2; }
.bp-controls-popup .bp-reset { padding-top: 0; padding-bottom: 0; font-size: 0.8rem; }
.br-buy { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.br-toggle { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; border-radius: 14px; border: 2px solid #CBD5E1; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.br-toggle:hover { border-color: #0D9488; }
.br-toggle input { position: absolute; opacity: 0; width: 1px !important; height: 1px; pointer-events: none; }
.br-switch { flex: none; position: relative; width: 52px; height: 30px; border-radius: 15px; background: #CBD5E1; transition: background .15s; }
.br-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: transform .15s; }
.br-toggle-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.br-toggle-text strong { font-size: 1rem; line-height: 1.25; color: #0F172A; }
.br-toggle-text small { font-size: 0.78rem; color: #64748B; }
.br-toggle input:checked + .br-switch { background: #0D9488; }
.br-toggle input:checked + .br-switch::after { transform: translateX(22px); }
.br-toggle:has(input:checked) { border-color: #0D9488; background: #F0FDFA; box-shadow: 0 0 0 3px rgba(13, 148, 136, .15); }
.br-toggle:has(input:focus-visible) { outline: 3px solid #0D9488; outline-offset: 2px; }
.br-more { align-self: flex-start; font-weight: 600; font-size: 0.88rem; color: #0F766E; }
.br-demo { min-width: 0; display: flex; }
.br-demo .bp-preview { flex: 1 1 auto; display: flex; min-height: 340px; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); }
.br-demo .bp-preview iframe { flex: 1 1 auto; height: auto; min-height: 340px; }
@media (min-width: 1000px) {
    .an-page.an-p-branding .an-body { padding-top: 16px; padding-bottom: 12px; }
    .br-page { height: calc(min(780px, 92vh) - 128px); height: calc(min(780px, 92dvh) - 128px); }
    .br-copy h2 { padding-right: 40px; }
}
@media (min-width: 1000px) and (max-height: 800px) {
    .br-copy h2 { font-size: 1.5rem; }
    .br-points { gap: 4px; margin-bottom: 8px; }
    .br-points i { width: 24px; height: 24px; font-size: 0.85rem; }
    .br-try { display: none; }
    .br-toggle { padding: 10px 14px; }
}
@media (max-width: 999px) {
    .an-p-branding .an-inner { max-width: 680px; }
    .br-page { grid-template-columns: 1fr; gap: 18px; }
    .br-demo .bp-preview, .br-demo .bp-preview iframe { min-height: 420px; }
    .br-buy { margin-top: 0; }
}
@media (max-width: 600px) {
    .an-p-branding h2 { padding: 0 36px 0 0; }
    .br-toggle-text strong { font-size: 0.95rem; }
}

/* Pager on phones (up to 600px): Back, dots and the main button on one row; "Remind me later" a text link on a row below.
   Nothing overlaps and every tap target is at least 40px tall. Desktop and tablet are unchanged. */
@media (max-width: 600px) {
    .an-nav { grid-template-columns: auto 1fr auto; grid-template-areas: "back dots primary" "remind remind remind"; row-gap: 2px; column-gap: 8px; }
    .an-nav-l { grid-area: back; }
    .an-nav-r { display: contents; }
    .an-dots { grid-area: dots; justify-self: center; gap: 6px; }
    .an-nav-r > .bc-btn-primary { grid-area: primary; justify-self: end; }
    .an-nav-r > .bc-btn-link { grid-area: remind; justify-self: center; font-size: 0.85rem; }
    .an-nav .bc-btn { min-height: 40px; padding: 8px 16px; }
    .an-nav .bc-btn-link { padding: 8px 14px; }
}
