/* Homepage only. The user-supplied airport scene is hosted with the site. */
[data-page="home"] main > section { padding-block: clamp(24px, 3.6vw, 46px); }
[data-page="home"] main > section.hero-brand {
  --hero-scene: url("/assets/img/boonbuy/scene.d2f447d1.webp");
  padding: 0;
  background: #d5e6f5 var(--hero-scene) center 40% / cover no-repeat;
}
.hero-brand .wrap { min-height: 0; justify-content: flex-start; padding-block: clamp(20px, 3vw, 38px); }
.hero-card { width: min(100%, 534px); padding: clamp(16px, 3vw, 24px); border-radius: 16px; background: #fff8ef; }
html[data-theme="dark"] .hero-card { background: #221913; }
.hero-card h1 { font-size: clamp(28px, 4.2vw, 39px); line-height: 1.03; margin: 0 0 10px; }
.hero-card .lead { font-size: clamp(14px, 1.5vw, 16px); line-height: 1.55; margin: 0; }
.hero-logo { margin-bottom: 11px; font-size: 11px; }
.hero-logo img { height: 21px; }
.hero-card .w2c-search { margin-top: 14px; padding: 3px; border-radius: 11px; }
.hero-card .w2c-search input[type="search"] { font-size: 14px; padding-inline: 9px; }
.hero-card .w2c-search button { padding-inline: 12px; }
.hero-card .cta-row { gap: 8px; margin-top: 8px; }
.hero-card .cta-row .btn { min-height: 44px; padding: 6px 11px; font-size: 13px; }
.hero-card .btn-primary { color: var(--amber); background: var(--panel); border-color: var(--line-strong); }
.hero-card .btn-primary:hover { color: var(--ink); border-color: var(--amber); }
.hero-card .hero-chips { gap: 5px 7px; margin-top: 10px; }
.hero-card .chip { padding: 4px 7px; font-size: 12px; }

[data-page="home"] h2 { margin: 0 0 10px; }
[data-page="home"] .divider-label { margin-bottom: 8px; }
[data-page="home"] .divider-label .eyebrow { margin: 0; }
[data-page="home"] .lead { line-height: 1.5; }
[data-page="home"] main > .home-benefits { padding-bottom: 14px; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 10px 24px; margin-bottom: 12px; }
.home-section-head h2 { margin: 0; }
.home-section-head .eyebrow { margin-bottom: 4px; }
.home-text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; width: fit-content; font-size: 14px; font-weight: 700; }
.home-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.home-benefit-grid li { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.home-benefit-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 8px; background: var(--panel); color: var(--amber); }
.home-benefit-grid h3, .boon-guide h3, .boon-guide h4 { font-family: var(--step-font); font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.35; margin: 0 0 3px; }
.home-benefit-grid p, .boon-guide p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }

[data-page="home"] main > .home-buy { padding-block: 0 12px; }
[data-page="home"] main > .home-catalog { padding-block: 24px 12px; }
[data-page="home"] main > .home-basics { padding-block: 22px 12px; }
.home-basics .wrap > p:not(.eyebrow) { max-width: 78ch; margin-bottom: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.home-basics .home-text-link { margin-inline-end: 18px; }
[data-page="home"] .home-basics + .home-benefits { padding-top: 24px; }
.boon-guide { scroll-margin-top: 76px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); }
.boon-guide summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 9px 14px; cursor: pointer; }
.boon-guide summary::-webkit-details-marker { display: none; }
.boon-guide summary strong { display: block; font-size: 17px; line-height: 1.3; }
.boon-guide summary small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.boon-guide-chevron { margin-left: auto; color: var(--amber); }
.boon-guide[open] .boon-guide-chevron { transform: rotate(180deg); }
.boon-guide-body { display: grid; grid-template-columns: .85fr 1.5fr 1fr; gap: 18px; padding: 14px; border-top: 1px solid var(--line); }
.boon-guide-body > div { min-width: 0; }
.boon-guide-body h3 { margin-bottom: 8px; }
.boon-highlights { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; }
.boon-highlights li { display: flex; gap: 8px; padding: 5px 0; }
.boon-highlights li::before { content: "✓"; color: var(--amber); font-weight: 700; }
.boon-tutorial-cover:hover { border-color: var(--amber); }

.boon-buy-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.boon-buy-head h3 { margin: 0; }
.boon-motion-toggle { border: 0; padding: 0 3px; min-height: 36px; background: transparent; color: var(--amber); cursor: pointer; font: 650 12px var(--step-font); text-decoration: underline; text-underline-offset: 2px; }
.boon-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 3px 0 9px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; }
.boon-tabs button { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: 2px; min-height: 52px; padding: 5px 7px; text-align: left; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 6px; font: 650 12px/1.2 var(--step-font); cursor: pointer; }
.boon-tabs b { font-variant-numeric: tabular-nums; color: var(--amber); }
.boon-tabs [aria-selected="true"] { background: var(--surface); border-color: var(--line-strong); color: var(--ink); box-shadow: inset 0 -2px var(--amber); }
.boon-tabs button:hover { border-color: var(--line-strong); }
.boon-step-panel:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: 10px; }
.boon-step-panel video { display: block; width: 100%; aspect-ratio: 720 / 404; border: 1px solid var(--line); border-radius: 8px; background: #fff4e8; pointer-events: none; }
.boon-preview { position: relative; }
.boon-preview-expand:not([hidden]) { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #784219; cursor: pointer; }
.boon-preview-expand svg { width: 15px; height: 15px; }
.boon-preview-expand:hover { color: #20160f; }
.boon-preview-expand:focus-visible { outline-color: #a44709; outline-offset: -2px; }
.boon-step-panel h4 b { color: var(--amber); padding-right: 4px; font-size: 13px; }
.boon-step-panel small { display: block; margin-top: 4px; color: var(--amber); font-size: 12px; font-weight: 700; }
@media (max-width: 990px) {
  .boon-step-panel:not([hidden]) { grid-template-columns: 1fr; }
}


.boon-tutorial-cover { position: relative; isolation: isolate; display: grid; place-items: end start; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.boon-tutorial-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.boon-tutorial-cover span { display: flex; align-items: center; gap: 6px; margin: 7px; padding: 6px 9px; border-radius: 6px; background: #20160f; color: #fff; font-size: 13px; font-weight: 700; }
.boon-video { width: min(calc(100% - 24px), 780px); max-height: calc(100% - 24px); padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); }
.boon-video::backdrop { background: #000b; }
.boon-video form { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.boon-video h3 { margin: 0; }
.boon-video button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font-size: 23px; cursor: pointer; }
.boon-video video { display: block; width: 100%; max-height: 68vh; aspect-ratio: 16 / 9; background: #20160f; }
.boon-video video[hidden] { display: none; }
.boon-video p { padding: 8px 0 0; margin: 0; }

.boon-video-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.boon-video.is-expanded[open] { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; background: #20160f; color: #fff; overflow: hidden; }
.boon-video.is-expanded .boon-video-content { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.boon-video-content:fullscreen { padding: 12px; background: #20160f; }
.boon-video.is-expanded h3 { font: 700 clamp(15px, 2vw, 20px)/1.3 var(--step-font); color: inherit; }
.boon-video.is-expanded button { background: #3a281b; border-color: #6a5442; color: #fff; }
.boon-video .boon-expanded-motion { width: auto; padding-inline: 9px; font: 650 13px var(--step-font); }
.boon-video.is-expanded video { height: 100%; min-height: 0; max-height: none; aspect-ratio: auto; object-fit: contain; pointer-events: none; }
body:has(.boon-video.is-expanded[open]) { overflow: hidden; }
@media (max-width: 420px) {
  .boon-video.is-expanded[open] { padding: 8px; }
  .boon-video-tools { gap: 5px; }
}

.home-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.home-category { display: flex; align-items: center; gap: 8px; padding: 6px 10px; min-height: 52px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 15px; text-decoration: none; }
.home-category:hover { border-color: var(--amber); color: var(--amber); }
.home-category-art { flex: 0 0 auto; }
.home-category-art .badge { width: 34px; height: 34px; border-radius: 8px; }
.home-category-art .badge svg { width: 19px; height: 19px; }
.home-category > svg { margin-left: auto; color: var(--amber); }

@media (max-width: 820px) {
  .home-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .boon-guide-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .boon-tutorial { grid-column: 1 / -1; max-width: 300px; }
}
@media (max-width: 760px) {
  .home-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  [data-page="home"] main > section.hero-brand {
    background-color: var(--panel);
    background-image: linear-gradient(to bottom, transparent 116px, var(--panel) 176px), var(--hero-scene);
    background-position: center, right top -24px;
    background-size: auto, auto 205px;
  }
  .hero-brand .wrap { justify-content: center; padding-block: 126px 14px; }
  .hero-card { max-width: 100%; }
  .home-section-head { display: block; margin-bottom: 6px; }
  .home-section-head .home-text-link { margin-top: 2px; }
  .boon-guide-body { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 430px) {
  .home-category > svg { display: none; }
}
@media (max-width: 370px) {
  .home-category { padding-inline: 7px; font-size: 14px; }
  .home-benefit-icon { display: none; }
  .hero-card h1 { font-size: 23px; }
  .hero-card .cta-row .btn { padding-inline: 7px; font-size: 12px; }
  .hero-card .cta-row .btn svg { width: 15px; height: 15px; }
  .hero-card .cta-row .btn:first-child svg { display: none; }
  .hero-card .w2c-search button { padding-inline: 8px; }
  .hero-card .w2c-search button svg { display: none; }
}
