.bc-page { overflow: clip; }
.bc-page-hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(4.5rem, 9vw, 8.5rem) 0; background: radial-gradient(circle at 82% 18%, rgba(231,168,45,.28), transparent 24rem), linear-gradient(145deg, #fffaf0, #f0dfc4); }
.bc-page-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .34; background-image: radial-gradient(rgba(79,22,48,.16) .7px, transparent .7px); background-size: 17px 17px; mask-image: linear-gradient(#000, transparent 86%); }
.bc-page-hero__glow { position: absolute; z-index: -1; right: -8rem; bottom: -12rem; width: 34rem; aspect-ratio: 1; border-radius: 50%; background: rgba(47,116,95,.18); filter: blur(4.5rem); }
.bc-page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .85fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
/* Headline is capped so a longer sentence wraps to a few readable lines rather
   than a wall of oversized type that dwarfs the hero artwork beside it. */
.bc-page-hero__copy h1 { max-width: 16ch; margin: .3rem 0 1.4rem; color: var(--bc-wine); font-size: clamp(2.2rem, 3.8vw, 3.6rem); }
.bc-page-hero__intro { max-width: 48ch; color: var(--bc-muted); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.bc-page-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.bc-page-hero__note { margin: .9rem 0 0; color: var(--bc-muted); font-size: .82rem; }
.bc-button--ghost { border-color: var(--bc-line); color: var(--bc-wine); background: rgba(255,255,255,.48); box-shadow: none; }
/* Arch frame for guide portraits. The width is tied to the height so the frame
   stays portrait-shaped — left to fill the grid column it becomes a wide box
   with a narrow figure marooned in the middle. */
.bc-guide-card { position: relative; align-self: center; justify-self: center; width: min(100%, 21rem); aspect-ratio: 3 / 4; display: flex; align-items: end; overflow: hidden; border: .65rem solid rgba(255,255,255,.62); border-radius: 12rem 12rem 1.8rem 1.8rem; background: linear-gradient(#93cfc7 0 46%, #e9bd79 46% 100%); box-shadow: var(--bc-shadow); transform: rotate(1.6deg); }
.bc-guide-card::after { content: ''; position: absolute; right: -10%; bottom: -12%; left: -10%; height: 43%; border-radius: 50% 50% 0 0; background: linear-gradient(165deg, #76a77e 0 34%, #2f745f 35% 65%, #1e5b4d 66%); opacity: .8; }
.bc-guide-card > img { --bc-float-base: translateX(-50%); position: absolute; z-index: 1; bottom: -2.4rem; left: 50%; width: auto; max-width: none; height: 94%; transform: translateX(-50%); filter: drop-shadow(0 20px 20px rgba(62,39,38,.2)); }
.bc-guide-card > div { position: relative; z-index: 2; display: grid; width: calc(100% - 2rem); margin: 1rem; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.65); border-radius: 1rem; background: rgba(255,254,250,.88); backdrop-filter: blur(12px); }
.bc-guide-card span { color: var(--bc-muted); font-size: .72rem; }
.bc-guide-card strong { color: var(--bc-leaf); font-size: .86rem; }
.bc-page-section { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--bc-cream); }
.bc-guide-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.bc-guide-steps li { min-height: 14rem; padding: 1.5rem; border: 1px solid var(--bc-line); border-radius: var(--bc-radius); background: rgba(255,254,250,.74); box-shadow: 0 14px 40px rgba(86,32,41,.07); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.bc-guide-steps li:hover { transform: translateY(-5px); border-color: rgba(201,31,44,.3); box-shadow: var(--bc-shadow); }
.bc-guide-steps li > span { display: grid; width: 2.8rem; aspect-ratio: 1; place-items: center; border-radius: 50%; color: #fff; background: var(--bc-red); font-weight: 700; }
.bc-guide-steps h3 { margin: 2.6rem 0 0; color: var(--bc-wine); font-size: clamp(1.35rem, 2vw, 1.8rem); }
.bc-guide-steps--visual { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.bc-guide-steps--visual li { min-height: 0; }
.bc-guide-steps__shot { display: block; width: 100%; max-width: 11rem; height: 14rem; margin: 0 auto 1.2rem; border: 1px solid var(--bc-line); border-radius: var(--bc-radius-sm); object-fit: cover; object-position: top; box-shadow: 0 10px 26px rgba(86,32,41,.12); }
.bc-guide-steps--visual h3 { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
.bc-legal-note { margin-top: 2rem; padding: 1.4rem 1.6rem; border-left: .3rem solid var(--bc-leaf); border-radius: 0 var(--bc-radius-sm) var(--bc-radius-sm) 0; background: rgba(47,116,95,.08); }
.bc-legal-note p { margin-bottom: 0; color: var(--bc-muted); }
.bc-language-switch { display: inline-flex; align-items: center; gap: .15rem; padding: .2rem; border: 1px solid var(--bc-line); border-radius: 999px; background: rgba(255,255,255,.6); }
.bc-language-switch__option { padding: .3rem .6rem; border-radius: 999px; color: var(--bc-muted); font-size: .78rem; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease; }
.bc-language-switch__option:hover { color: var(--bc-wine); }
.bc-language-switch__option.is-current { color: #fff; background: var(--bc-red); }
/* The nav's sliding underline would fight the pill background here. */
.bc-language-switch__option::after { content: none !important; }
.bc-js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .75s cubic-bezier(.2,.75,.25,1), transform .75s cubic-bezier(.2,.75,.25,1); }
.bc-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Compact hero variant for editorial pages (legal). */
.bc-page-hero--compact { padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.bc-page-hero--compact .bc-page-hero__copy h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }

/* Guide visual: gentle float, capped at 6px, long soft easing. */
/* Gentle float. An animated `transform` replaces any transform the element
   already had, so the element's own base transform is carried in a custom
   property and composed here — otherwise absolutely-centred images lose their
   translateX(-50%) and jump half their width. Contexts that need a base
   transform set --bc-float-base themselves. */
@keyframes bc-float {
  0%, 100% { transform: var(--bc-float-base, translate(0)) translateY(0); }
  50%      { transform: var(--bc-float-base, translate(0)) translateY(-6px); }
}
.bc-guide-float { animation: bc-float 6s ease-in-out infinite; }

/* QRIS scan frame: quiet corner brackets over the guide visual, no flashing. */
@keyframes bc-frame-pulse { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }
.bc-qris-frame { position: absolute; z-index: 3; inset: 1.1rem; pointer-events: none; }
.bc-qris-frame i { position: absolute; width: 1.1rem; height: 1.1rem; border: 2px solid rgba(255,254,250,.9); opacity: .7; animation: bc-frame-pulse 3.6s ease-in-out infinite; }
.bc-qris-frame i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.bc-qris-frame i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; animation-delay: .3s; }
.bc-qris-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; animation-delay: .6s; }
.bc-qris-frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; animation-delay: .9s; }

/* Route line: a travel path that draws itself in once the hero enters view. */
.bc-route-line { display: block; width: 100%; height: 1.4rem; margin-top: clamp(1.5rem, 4vw, 3rem); overflow: visible; }
.bc-route-line path { fill: none; stroke: var(--bc-leaf); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 10; stroke-dashoffset: 320; opacity: .55; transition: stroke-dashoffset 1.4s ease .1s; }
.bc-route-line.is-visible path { stroke-dashoffset: 0; }

/* FAQ accordion. */
.bc-container--narrow { width: min(calc(100% - 2rem), 44rem); margin-inline: auto; }
.bc-faq-back { display: inline-block; margin-bottom: 2rem; color: var(--bc-wine); }
.bc-accordion { display: grid; gap: 1rem; }
.bc-accordion__item { border: 1px solid var(--bc-line); border-radius: var(--bc-radius-sm); background: var(--bc-white); overflow: hidden; }
.bc-accordion__heading { margin: 0; }
.bc-accordion__trigger { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.1rem 1.4rem; border: 0; background: none; color: var(--bc-wine); font: 700 1.02rem/1.4 var(--bc-body); text-align: left; cursor: pointer; }
.bc-accordion__icon { position: relative; flex: 0 0 auto; width: 1rem; height: 1rem; }
.bc-accordion__icon::before, .bc-accordion__icon::after { content: ''; position: absolute; top: 50%; left: 50%; background: var(--bc-red); transition: transform .2s ease; }
.bc-accordion__icon::before { width: 1rem; height: 2px; transform: translate(-50%, -50%); }
.bc-accordion__icon::after { width: 2px; height: 1rem; transform: translate(-50%, -50%); }
.bc-accordion__trigger[aria-expanded="true"] .bc-accordion__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.bc-accordion__panel[hidden] { display: none; }
.bc-accordion__body { padding: 0 1.4rem 1.4rem; color: var(--bc-muted); }
.bc-accordion__body p { margin: 0 0 .6rem; }
.bc-accordion__body p:last-child { margin-bottom: 0; }
.bc-accordion__body ul { display: grid; gap: .5rem; margin: 0; padding-left: 1.2rem; }

/* Process/flow illustration lifted from the source pages. */
.bc-flow { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bc-cream); }
.bc-flow__figure { margin: 0; padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid var(--bc-line); border-radius: var(--bc-radius); background: var(--bc-white); box-shadow: 0 14px 40px rgba(86,32,41,.06); }
.bc-flow__figure img { display: block; width: 100%; max-width: 52rem; height: auto; margin-inline: auto; }
.bc-flow__figure figcaption { margin-top: 1.2rem; color: var(--bc-muted); font-size: .86rem; text-align: center; }

/* Data table (pricing tiers, insurance coverage): scrolls on its own axis, never the page. */
.bc-page-section--table { padding-top: 0; }
.bc-table-wrap { overflow-x: auto; border: 1px solid var(--bc-line); border-radius: var(--bc-radius); background: var(--bc-white); box-shadow: 0 14px 40px rgba(86,32,41,.07); }
.bc-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .92rem; }
.bc-table th, .bc-table td { padding: .9rem 1.2rem; text-align: left; white-space: nowrap; }
.bc-table thead th { color: #fff; background: var(--bc-wine); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.bc-table tbody tr:nth-child(odd) { background: rgba(234,220,196,.28); }
.bc-table tbody td:first-child { color: var(--bc-red-dark); font-weight: 700; }

/* Legal editorial layout: table of contents + anchored sections, readable measure. */
.bc-legal { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.bc-legal__toc { position: sticky; top: 7rem; padding: 1.4rem 1.5rem; border: 1px solid var(--bc-line); border-radius: var(--bc-radius); background: rgba(255,254,250,.7); }
.bc-legal__toc ol { display: grid; gap: .5rem; margin: 0; padding: 0 0 0 1.1rem; font-size: .86rem; }
.bc-legal__toc a { color: var(--bc-wine); text-decoration: none; }
.bc-legal__toc a:hover { text-decoration: underline; }
.bc-legal__body { display: grid; gap: clamp(2.5rem, 5vw, 4rem); max-width: 70ch; }
.bc-legal__section h2 { scroll-margin-top: 6.5rem; margin: 0 0 1rem; color: var(--bc-wine); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.bc-legal__section > p { color: var(--bc-muted); }
.bc-legal__list { display: grid; gap: .75rem; margin: 0; padding-left: 1.2rem; color: var(--bc-ink); }
.bc-legal__list > li { line-height: 1.6; }
.bc-legal__sublist { display: grid; gap: .4rem; margin: .6rem 0 0; padding-left: 1.2rem; list-style: circle; color: var(--bc-muted); }

@media (max-width: 820px) {
  .bc-page-hero__grid { grid-template-columns: 1fr; }
  .bc-guide-card { width: min(100%, 20rem); margin-inline: auto; }
  .bc-page-actions .bc-button { width: 100%; }
  .bc-legal { grid-template-columns: 1fr; }
  .bc-legal__toc { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-js [data-reveal] { opacity: 1; transform: none; }
}
