/* Black Friday offer page. Everything is scoped to .bf-page; the hero's first-paint rules are inline in the view.
   The site sets html{font-size:10px}, so sizes here are px, not rem. Palette: ink, kasavu gold, white, soft panels. */

.bf-page h2,
.bf-page h3,
.bf-page h4 { font-family: var(--bf-display); font-weight: 400; letter-spacing: -.01em; margin: 0 0 14px; color: var(--bf-ink); }
.bf-page h2 { font-size: clamp(28px, 2.4vw + 18px, 44px); line-height: 1.15; }
.bf-page h3 { font-size: 24px; line-height: 1.25; }
.bf-page p { margin: 0 0 16px; font-size: 17px; line-height: 1.65; color: inherit; }
.bf-page ul { margin: 0; padding: 0; list-style: none; }
.bf-page a { color: inherit; }
.bf-page code,
.bf-page .bf-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; }

/* ── Buttons ── */
.bf-page .bf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 26px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.bf-page .bf-btn--gold { background: var(--bf-gold); color: var(--bf-ink); }
.bf-page .bf-btn--gold:hover { background: var(--bf-gold2); color: var(--bf-ink); }
.bf-page .bf-btn--ink { background: var(--bf-ink); color: #fff; }
.bf-page .bf-btn--ink:hover { background: var(--bf-ink2); color: #fff; }
.bf-page .bf-btn--ghost { background: transparent; color: #fff; border-color: var(--bf-gold); }
.bf-page .bf-btn--ghost:hover { background: var(--bf-gold); color: var(--bf-ink); }
.bf-page .bf-btn.is-disabled { background: #D5DFE1; color: #4B5E62; cursor: not-allowed; }

/* ── Hero: code card, countdown ── */
.bf-page .bf-soon { color: var(--bf-gold2); font-weight: 600; margin-bottom: 8px; }
.bf-page .bf-deal { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 16px; margin: 0 auto 26px; }
.bf-page .bf-code { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label label" "value copy"; align-items: center; gap: 4px 16px; min-width: 280px; padding: 14px 16px 14px 20px; text-align: left; background: var(--bf-ink2); border: 4px double var(--bf-gold); border-radius: 14px; }
.bf-page .bf-code__label { grid-area: label; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #CFE0E3; }
.bf-page .bf-code__value { grid-area: value; font-size: 28px; font-weight: 700; color: var(--bf-gold); background: none; padding: 0; }
.bf-page .bf-copy { grid-area: copy; min-width: 108px; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--bf-gold); background: transparent; color: #fff; font: 600 15px/1.2 var(--bf-body); cursor: pointer; transition: background-color .2s, color .2s; }
.bf-page .bf-copy:hover,
.bf-page .bf-copy.is-copied { background: var(--bf-gold); color: var(--bf-ink); }
.bf-page .bf-count { padding: 12px 18px; border: 1px solid #C9A22766; border-radius: 14px; background: #0C252BCC; }
.bf-page .bf-count__label { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #CFE0E3; }
.bf-page .bf-count__grid { display: flex; gap: 10px; justify-content: center; }
.bf-page .bf-count__cell { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.bf-page .bf-count__num { font-family: var(--bf-display); font-size: 32px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.bf-page .bf-count__unit { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #CFE0E3; }
.bf-page .bf-ended { color: #fff; }

/* ── Kasavu: two thin gold lines (JS draws them in from the centre) ── */
.bf-page .bf-kasavu { position: relative; height: 12px; background: #fff; }
.bf-page .bf-kasavu span { position: absolute; left: 0; right: 0; height: 2px; background: var(--bf-gold); transform-origin: 50% 50%; }
.bf-page .bf-kasavu span:first-child { top: 3px; }
.bf-page .bf-kasavu span:last-child { top: 8px; height: 1px; }

/* ── Sections ── */
.bf-page .bf-section { padding: 72px 0; }
.bf-page .bf-soft { background: var(--bf-soft); }
.bf-page .bf-lead { max-width: 760px; font-size: 18px; }
.bf-page .bf-note { padding: 12px 16px; border-left: 4px solid var(--bf-gold); background: #fff; border-radius: 6px; max-width: 760px; }
.bf-page .bf-small { margin: 24px 0 0; font-size: 15px; color: #4B5E62; }

/* Term toggle */
.bf-page .bf-terms { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 8px; padding: 5px; border: 1px solid #D5DFE1; border-radius: 999px; background: #fff; min-width: 0; }
.bf-page .bf-terms__legend { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.bf-page .bf-term { position: relative; margin: 0; cursor: pointer; }
.bf-page .bf-term input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bf-page .bf-term__text { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 16px; color: var(--bf-ink); transition: background-color .2s, color .2s; }
.bf-page .bf-term input:checked + .bf-term__text { background: var(--bf-ink); color: #fff; }
.bf-page .bf-term input:focus-visible + .bf-term__text { outline: 3px solid var(--bf-gold); outline-offset: 2px; }
.bf-page .bf-term__tag { padding: 2px 8px; border-radius: 999px; background: var(--bf-gold); color: var(--bf-ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; }

/* Plan cards */
.bf-page .bf-group { margin: 40px 0 16px; font-size: 26px; }
.bf-page .bf-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.bf-page .bf-plan { display: flex; flex-direction: column; padding: 22px 20px; background: #fff; border: 1px solid #DCE5E7; border-top: 4px double var(--bf-gold); border-radius: 16px; }
.bf-page .bf-plan__type { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6B7F83; }
.bf-page .bf-plan__name { margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.bf-page .bf-plan__deal { margin: 0 0 4px; font-weight: 700; font-size: 18px; color: var(--bf-ink); }
.bf-page .bf-plan__term { margin: 0 0 4px; font-size: 15px; color: #4B5E62; }
.bf-page .bf-plan__only { margin: 0 0 4px; font-size: 14px; color: #8A6D10; }
.bf-page .bf-plan .bf-btn { margin-top: auto; width: 100%; }
.bf-page .bf-plan__term + .bf-btn,
.bf-page .bf-plan__only + .bf-btn { margin-top: 18px; }

/* Existing customers */
.bf-page .bf-band { background: var(--bf-ink); color: #fff; }
.bf-page .bf-band h2 { color: #fff; }
.bf-page .bf-band strong { color: var(--bf-gold); }
.bf-page .bf-duo { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.bf-page .bf-duo__item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px; border: 1px solid #C9A22766; border-radius: 16px; }
.bf-page .bf-duo__item p { color: #DCE9EB; }

/* Why */
.bf-page .bf-ticks { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .bf-page .bf-ticks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .bf-page .bf-ticks { grid-template-columns: repeat(3, 1fr); } }
.bf-page .bf-ticks li { position: relative; padding: 16px 16px 16px 44px; background: var(--bf-soft); border-radius: 12px; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--bf-ink); }
.bf-page .bf-ticks li::before { content: ""; position: absolute; left: 18px; top: 21px; width: 14px; height: 8px; border-left: 2px solid var(--bf-gold); border-bottom: 2px solid var(--bf-gold); transform: rotate(-45deg); }

.bf-page .bf-prose { max-width: 780px; }
.bf-page .bf-prose p { font-size: 18px; }

/* FAQ */
.bf-page .bf-faq__inner { max-width: 820px; }
.bf-page .bf-faq__item { border-bottom: 1px solid #DCE5E7; }
.bf-page .bf-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.bf-page .bf-faq__item summary::-webkit-details-marker { display: none; }
.bf-page .bf-faq__item summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--bf-gold); border-radius: 50%; color: var(--bf-ink); font-size: 20px; line-height: 1; transition: transform .2s; }
.bf-page .bf-faq__item[open] summary::after { transform: rotate(45deg); }
.bf-page .bf-faq__item h3 { margin: 0; font-family: var(--bf-body); font-weight: 700; font-size: 18px; }
.bf-page .bf-faq__item p { margin: 0 0 18px; }

/* LaunchPad + links */
.bf-page .bf-launch { background: var(--bf-ink); color: #fff; }
.bf-page .bf-launch h2 { color: #fff; }
.bf-page .bf-launch__inner { max-width: 760px; text-align: center; }
.bf-page .bf-launch p:not(.bf-eyebrow) { color: #DCE9EB; }
.bf-page .bf-links { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 24px; }
.bf-page .bf-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 16px; background: #fff; border: 1px solid #DCE5E7; border-radius: 12px; color: var(--bf-ink); font-weight: 600; text-decoration: none; transition: border-color .2s; }
.bf-page .bf-links a::after { content: "\2192"; color: var(--bf-gold); }
.bf-page .bf-links a:hover { border-color: var(--bf-gold); color: var(--bf-ink); }
.bf-page .bf-help { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; }
.bf-page .bf-help a { color: var(--bf-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--bf-gold); text-underline-offset: 4px; }

@media (max-width: 575.98px) {
    .bf-page .bf-section { padding: 56px 0; }
    .bf-page .bf-code { min-width: 0; width: 100%; }
    .bf-page .bf-count { width: 100%; }
    .bf-page .bf-count__cell { min-width: 0; flex: 1; }
    .bf-page .bf-hero .bf-btn { width: 100%; }
    .bf-page .bf-terms { display: flex; border-radius: 16px; }
    .bf-page .bf-term { flex: 1 1 auto; }
    .bf-page .bf-term__text { width: 100%; justify-content: center; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .bf-page *, .bf-page *::before, .bf-page *::after { transition: none !important; }
}
