/*
  Page blocks (M7/M8 page builder): the public site and the back office preview share this file.
  Colours come from the site's own variables (--lagoon, --charcoal, --ink, --muted, --bg from site.css, dark mode included)
  with the same values as fallbacks, so the preview (which has no site.css) looks the same.
  Text links use a darker teal than the lagoon so they stay readable on white (contrast); buttons are charcoal on lagoon.
*/
.bk-page, .bk-preview {
    --bk-accent: var(--lagoon, #2bbede);
    --bk-charcoal: var(--charcoal, #17191b);
    --bk-ink: var(--ink, #17191b);
    --bk-muted: var(--muted, #5b6168);
    --bk-bg: var(--bg, #ffffff);
    --bk-line: color-mix(in srgb, var(--bk-muted) 28%, transparent);
    --bk-soft: color-mix(in srgb, var(--bk-muted) 9%, var(--bk-bg));
    --bk-link: color-mix(in srgb, var(--bk-accent) 45%, var(--bk-ink));
    /* Error text: a red pulled toward the text colour, so it keeps 4.5:1 on both the light and the dark page. */
    --bk-danger: color-mix(in srgb, #b3261e 60%, var(--bk-ink));
}

body.bk-preview {
    margin: 0;
    background: var(--bk-bg);
    color: var(--bk-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", Arial, sans-serif;
}

.bk-page { color: var(--bk-ink); line-height: 1.6; }
.bk-page *, .bk-page *::before, .bk-page *::after { box-sizing: border-box; }

.bk { padding: 2.25rem 0; }
.bk-inner { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }
.bk-narrow { max-width: 42rem; }

.bk-heading { font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.2; margin: 0 0 1rem; }
.bk-lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--bk-muted); margin: 0 0 1.25rem; }
.bk-meta { color: var(--bk-muted); font-size: .95rem; margin: .25rem 0; }
.bk-note { color: var(--bk-muted); }
.bk-link, .bk-prose a, .bk-card a { color: var(--bk-link); }
/* Keyboard focus is always visible, on the page and in the preview (the buttons sit on the lagoon colour, so the ring is the dark link colour with a light halo). */
.bk-page a:focus-visible, .bk-page button:focus-visible, .bk-page summary:focus-visible, .bk-page input:focus-visible, .bk-page select:focus-visible, .bk-page textarea:focus-visible,
.bk-preview a:focus-visible, .bk-preview button:focus-visible, .bk-preview summary:focus-visible {
    outline: 3px solid var(--bk-link);
    outline-offset: 2px;
    border-radius: 4px;
    box-shadow: 0 0 0 5px var(--bk-bg);
}
.bk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bk-button {
    display: inline-block;
    padding: .75rem 1.4rem;
    border: 2px solid var(--bk-accent);
    border-radius: 999px;
    background: var(--bk-accent);
    color: var(--bk-charcoal);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
}
.bk-button:hover { filter: brightness(.94); }
.bk-button-outline { background: transparent; color: var(--bk-ink); }

.bk-prose { max-width: 44rem; }
.bk-prose h2, .bk-prose h3, .bk-prose h4 { line-height: 1.25; margin: 1.6rem 0 .6rem; }
.bk-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.bk-prose table { border-collapse: collapse; }
.bk-prose th, .bk-prose td { border: 1px solid var(--bk-line); padding: .3rem .6rem; }

/* Hero */
.bk-hero { text-align: center; padding: 3rem 0 2.5rem; }
.bk-headline { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 1rem; }
.bk-hero-img { display: block; width: 100%; max-width: 56rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin: 1.75rem auto 0; background: var(--bk-soft); }
.bk-hero-left { text-align: left; }
@media (min-width: 52rem) {
    .bk-hero-left .bk-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
    .bk-hero-left .bk-hero-img { margin: 0; aspect-ratio: 4 / 3; }
}

/* Picture and text */
.bk-split { display: grid; gap: 1.75rem; align-items: center; }
.bk-figure { margin: 0; }
.bk-figure img { width: 100%; height: auto; border-radius: 14px; display: block; background: var(--bk-soft); }
@media (min-width: 46rem) {
    .bk-split { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .bk-side-right .bk-figure { order: 2; }
}

/* Feature list */
.bk-feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.bk-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: color-mix(in srgb, var(--bk-accent) 22%, var(--bk-bg)); color: var(--bk-link); font-size: 1.2rem; margin-bottom: .6rem; }
.bk-feature-title { font-size: 1.1rem; margin: 0 0 .3rem; }
.bk-feature p { margin: 0; color: var(--bk-muted); }

/* Testimonial */
.bk-quote { margin: 0; padding: 1.5rem 1.75rem; border-inline-start: 4px solid var(--bk-accent); background: var(--bk-soft); border-radius: 0 12px 12px 0; }
.bk-quote blockquote { margin: 0 0 .75rem; font-size: 1.15rem; }
.bk-quote blockquote p { margin: 0; }
.bk-quote-role { color: var(--bk-muted); margin-inline-start: .5rem; }

/* Questions */
.bk-details { border-bottom: 1px solid var(--bk-line); padding: .75rem 0; }
.bk-details summary { cursor: pointer; font-weight: 600; }
.bk-details .bk-prose { margin-top: .5rem; }

/* Cards and pricing */
.bk-card-grid, .bk-plan-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.bk-card { display: flex; flex-direction: column; border: 1px solid var(--bk-line); border-radius: 12px; overflow: hidden; }
.bk-card-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bk-soft); }
.bk-card-body { padding: 1rem 1.1rem 1.2rem; }
.bk-card-title { font-size: 1.1rem; margin: 0 0 .4rem; }
.bk-card-body p { margin: .3rem 0; }
.bk-plan { position: relative; border: 1px solid var(--bk-line); border-radius: 14px; padding: 1.4rem 1.3rem; display: flex; flex-direction: column; }
.bk-plan-hot { border: 2px solid var(--bk-accent); }
.bk-badge { position: absolute; top: -.8rem; inset-inline-start: 1rem; margin: 0; padding: .1rem .7rem; border-radius: 999px; background: var(--bk-accent); color: var(--bk-charcoal); font-size: .8rem; font-weight: 700; }
.bk-plan-name { font-size: 1.15rem; margin: 0 0 .25rem; }
.bk-price { font-size: 1.5rem; font-weight: 700; margin: 0 0 .75rem; }
.bk-includes { margin: 0 0 1rem; padding-inline-start: 1.1rem; color: var(--bk-muted); flex: 1; }

/* Call to action */
.bk-cta { text-align: center; padding: 3rem 0; margin: 1rem 0; }
.bk-cta-lagoon { background: var(--bk-accent); color: var(--bk-charcoal); }
.bk-cta-lagoon .bk-lead { color: var(--bk-charcoal); }
.bk-cta-lagoon .bk-button { background: var(--bk-charcoal); border-color: var(--bk-charcoal); color: #fff; }
.bk-cta-dark { background: var(--bk-charcoal); color: #fff; }
.bk-cta-dark .bk-lead { color: #d5d9dd; }
.bk-cta-sand { background: var(--bk-soft); }

/* Video */
.bk-video-figure { margin: 0; }
.bk-video-play, .bk-video-figure video { display: flex; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--bk-charcoal); }
.bk-video-play { flex-direction: column; align-items: center; justify-content: center; gap: .6rem; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 1rem; }
.bk-video-play:hover .bk-video-icon { background: #fff; }
.bk-video-icon { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--bk-accent); color: var(--bk-charcoal); font-size: 1.5rem; padding-inline-start: .2rem; }
.bk-video-title { font-weight: 600; text-align: center; }
.bk-video-figure figcaption { color: var(--bk-muted); margin-top: .5rem; font-size: .95rem; }
.bk-video-error { color: var(--bk-danger); margin-top: .5rem; }
.bk-video-play:disabled { cursor: default; opacity: .85; }
.bk-video-play:disabled:hover .bk-video-icon { background: var(--bk-accent); }

/* Forms inside blocks (sign-up, webinar) */
.bk-panel { border: 1px solid var(--bk-line); border-radius: 14px; padding: 1.5rem; background: var(--bk-soft); }
.bk-panel .portal-form { margin-bottom: 0; }
.bk-preview-form { color: var(--bk-muted); border: 2px dashed var(--bk-line); border-radius: 10px; padding: 1rem; margin: 0; }

/* Back office preview only: forms, video and the countdown are shown inactive and labelled "Preview". */
.bk-preview-chip { display: inline-block; padding: .05rem .6rem; border-radius: 999px; border: 1px solid var(--bk-line); background: var(--bk-bg); color: var(--bk-muted); font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.bk-preview-chip-row { margin: 0 0 .5rem; }
.bk-video-play .bk-preview-chip { position: absolute; top: .75rem; inset-inline-start: .75rem; }
.bk-video-play { position: relative; }
.bk-preview-note { margin: .4rem 0 0; }
.bk-preview-fields { display: grid; gap: .75rem; margin: .75rem 0 0; padding: 0; border: 0; min-width: 0; }
.bk-preview-fields label { display: grid; gap: .25rem; font-weight: 600; font-size: .95rem; }
.bk-preview-fields input, .bk-preview-fields select { font: inherit; padding: .55rem .7rem; border: 1px solid var(--bk-line); border-radius: 8px; background: var(--bk-bg); color: var(--bk-muted); }
.bk-preview-fields button { justify-self: start; }
.bk-preview-fields :disabled { cursor: not-allowed; opacity: .8; }

/* Countdown */
.bk-countdown { text-align: center; }
.bk-clock { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: .5rem 0 1rem; }
.bk-clock-part { min-width: 5.5rem; padding: .6rem .8rem; border: 1px solid var(--bk-line); border-radius: 12px; background: var(--bk-soft); color: var(--bk-muted); font-size: .9rem; }
.bk-clock-part b { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--bk-ink); font-variant-numeric: tabular-nums; }
.bk-clock-label, .bk-clock-done { font-weight: 600; margin: .5rem 0 0; }

/* Spacer */
.bk-spacer-small { padding: .75rem 0; }
.bk-spacer-medium { padding: 1.75rem 0; }
.bk-spacer-large { padding: 3.5rem 0; }
.bk-rule { border: 0; border-top: 1px solid var(--bk-line); margin: 0; }

@media (prefers-reduced-motion: no-preference) {
    .bk-button, .bk-video-icon { transition: filter .15s, background .15s; }
}

/* Less motion: the countdown drops its seconds (blocks.js then updates it once a minute instead of every second). */
@media (prefers-reduced-motion: reduce) {
    .bk-clock-part[data-part="s"] { display: none; }
}
