/* Hub structure, scoped to AT and DE. The action page does not load this file. */
body.hub-page {
  isolation: isolate;
  --vg-card: #21451f;
  --vg-text: #fff;
  --vg-muted: #c6d0be;
  --vg-border: #567449;
  --vg-ink: #173b18;
  --vg-gold: #edca68;
  color: var(--vg-text);
}

/* Decorative canopy follows the page top and leaves all controls clickable. */
.hub-canopy {
  --canopy-opacity: 0.7;
  position: absolute;
  top: 0;
  opacity: var(--canopy-opacity);
  left: 0;
  z-index: -1;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* The head script sets this before the image can be painted. */
.canopy-fade-pending .hub-canopy:not(.canopy-visible) {
  opacity: 0;
}

/* Show the forest floor immediately before the footer, without its empty upper half. */
.hub-forest-floor {
  position: relative;
  margin-top: -56px;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(110px, 25vw, 440px);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.hub-forest-floor img {
  position: absolute;
  opacity: 0.75;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}
/* Fade the image into the footer's dark surface. */
.hub-forest-floor::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(56px, 7vw, 112px);
  background: linear-gradient(to bottom, rgba(28, 28, 28, 0), #1c1c1c);
}
.hub-forest-floor + .vegenergy-footer-shell { margin-top: 0; }

/* Desktop framing: a shallower canopy and a longer fade into the textured footer. */
@media (min-width: 769px) {
  .hub-canopy {
    transform: translateY(-20%);
  }
  .hub-forest-floor {
    /* Cover fractional mask-edge pixels with the following footer surface. */
    margin-bottom: -2px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 clamp(48px, 6vw, 112px));
    mask-image: linear-gradient(to bottom, transparent 0, #000 clamp(48px, 6vw, 112px));
  }
  .hub-forest-floor + .vegenergy-footer-shell {
    --forest-blend-rise: clamp(48px, 5vw, 80px);
    position: relative;
    z-index: 1;
  }
  /* Cross the join with one continuous texture, hiding fractional mask edges. */
  .hub-forest-floor + .vegenergy-footer-shell::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: calc(-1 * var(--forest-blend-rise));
    right: 0;
    left: 0;
    height: calc(var(--forest-blend-rise) + 32px);
    background: #242424 url('../files/images/noise-texture.png') repeat;
    background-size: 200px 200px;
    background-position: 0 var(--forest-blend-rise);
    background-blend-mode: overlay;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 calc(var(--forest-blend-rise) - 12px), #000);
    mask-image: linear-gradient(to bottom, transparent, #000 calc(var(--forest-blend-rise) - 12px), #000);
    pointer-events: none;
  }
  .hub-forest-floor::after {
    height: clamp(120px, 15vw, 240px);
    background-color: #242424;
    background-image: url('../files/images/noise-texture.png');
    background-size: 200px 200px;
    background-repeat: repeat;
    background-position: left bottom;
    background-blend-mode: overlay;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 100%);
  }
}

.hub-page *, .hub-page *::before, .hub-page *::after { box-sizing: border-box; }
.hub-page [hidden] { display: none !important; }

.hub-container {
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  width: calc(100% - 2rem);
  max-width: 410px;
  margin: 24px 0 clamp(2rem, 4vw, 3rem);
}

.hub-profile { margin: 0; padding: 8px 0 0; text-align: center; }
.hub-home-link { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 8px; }
.hub-home-link:focus-visible { outline: 3px solid var(--vg-gold); outline-offset: 3px; }
.hub-profile .avatar { width: 80px; height: 80px; object-fit: contain; border-radius: 5px; margin-bottom: 0; }
.hub-profile h1 { margin: 0; font-size: 2rem; font-weight: 700; line-height: 1.15; letter-spacing: 0; }
.hub-profile .text-with-effect { max-width: none; margin: 12px 0 0; color: var(--vg-muted); font-size: 1rem; line-height: 1.5; }

.hub-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 12px; }
.hub-action {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px 16px 16px;
  border: 1px solid var(--vg-border);
  border-radius: 12px;
  background: var(--vg-card) url('../files/images/noise-texture.png') repeat;
  background-size: 200px 200px;
  background-blend-mode: overlay;
  color: #fffef8;
  text-decoration: none;
  text-align: left;
}
.hub-action-primary { border-color: #edca68; background: linear-gradient(110deg, #f7e39d, #edca68); color: var(--vg-ink); }
.hub-action-graphic { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 12px; }
.hub-action-finder .hub-action-graphic { background: linear-gradient(110deg, #f7e39d, #edca68); color: var(--vg-ink); }
.hub-action-icon { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hub-action strong { overflow-wrap: anywhere; font-size: 1.3125rem; font-weight: 700; line-height: 1.18; }
.hub-action-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); font-size: 0.9375rem; font-weight: 700; line-height: 1.3; }
.hub-action-primary .hub-action-bottom { border-color: rgba(23,59,24,.22); }
.hub-action:hover { background-color: #2c5526; border-color: #799368; }
.hub-action-primary:hover { background: #f7e39d; border-color: #f7e39d; }
.hub-action:focus-visible { outline: 3px solid #edca68; outline-offset: -4px; }
.hub-action-primary:focus-visible { outline-color: #173b18; }

.hub-external, .hub-film-toggle { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hub-products { min-width: 0; }
.hub-page .hub-products > .starterbox-card {
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  border-radius: 12px;
  border-color: var(--vg-border) !important;
  background: var(--vg-card) url('../files/images/noise-texture.png') repeat !important;
  background-size: 200px 200px !important;
  background-blend-mode: overlay !important;
}
.hub-page .starterbox-card .card-content { padding: 20px; }
.hub-page .starterbox-title { font-size: 1.625rem; font-weight: 700; line-height: 1.18; }
.hub-page .starterbox-header { gap: 12px; padding-bottom: 12px; }
.hub-page .starterbox-subtitle { margin: 0 0 16px; color: var(--vg-muted); font-size: 1rem; font-weight: 400; line-height: 1.5; text-align: left; }
.hub-page .starterbox-features { gap: 8px; margin-bottom: 16px; }
.hub-page .starterbox-status { padding-top: 0; justify-content: flex-end; }
.hub-page .starterbox-status .availability-badge { font-size: .8125rem; line-height: 1.4; text-transform: none; }
.hub-page [data-product="starterbox"] .starterbox-status { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.hub-page [data-product="starterbox"] .starterbox-status > .availability-badge { margin-left: auto; min-width: 0; text-align: center; justify-content: center; overflow-wrap: anywhere; }
.hub-page .starterbox-overall-rating { flex-direction: column; align-items: flex-start; gap: 4px; flex: 0 0 auto; }
.hub-page .starterbox-rating-line { display: flex; align-items: center; gap: 6px; }
.hub-page .starterbox-overall-rating .starterbox-stars { gap: 2px; }
.hub-page .starterbox-overall-rating .starterbox-stars svg { width: 16px; height: 16px; fill: var(--vg-gold); filter: none; }
.hub-page .starterbox-rating-value { font-size: 0.875rem; line-height: 1; }
.hub-page .starterbox-rating-label { color: var(--vg-muted); font-size: .8125rem; font-weight: 400; line-height: 1.4; }
.hub-page .starterbox-header, .hub-page .product-header { flex-wrap: wrap; }
.hub-page .product-price-note { margin: 0 0 16px; color: var(--vg-muted); font-size: .8125rem; line-height: 1.4; }
.hub-page .starterbox-card .starterbox-cta { min-height: 55px; border: 1px solid transparent; border-radius: 12px; background: linear-gradient(105deg, #f7e39d, #edca68); color: var(--vg-ink); display: grid; grid-template-columns: 20px minmax(0, 1fr) 20px; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 16px; font-size: 1.125rem; font-weight: 700; line-height: 1.25; text-align: center; }
.hub-page .starterbox-cta::before { content: ""; }
.hub-page .starterbox-cta .starterbox-cta-arrow { position: static; width: 20px; height: 20px; transform: none; stroke: currentColor; }
.hub-page .starterbox-card:focus-visible { outline: 3px solid #edca68; outline-offset: 2px; }

.hub-panel { border: 1px solid var(--vg-border); border-radius: 12px; background: var(--vg-card) url('../files/images/noise-texture.png') repeat; background-size: 200px 200px; background-blend-mode: overlay; }
.hub-eyebrow { color: var(--vg-gold); font-size: 0.75rem; font-weight: 700; line-height: 1.3; letter-spacing: 1.4px; text-transform: uppercase; }
.hub-section-title { margin: 0 0 12px; color: #fffef8; font-size: 1.625rem; font-weight: 700; line-height: 1.18; letter-spacing: 0; }
.hub-link-section { min-width: 0; }
.hub-link-list { padding: 0; overflow: hidden; }
.hub-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 136px;
  padding: 24px 16px 24px 132px;
  color: #fffef8;
  text-decoration: none;
  cursor: pointer;
}
.hub-link-list > * + * { border-top: 1px solid rgba(255,255,255,.12); }
.hub-link-list > :first-child { border-radius: 11px 11px 0 0; }
.hub-link-list > :last-child { border-radius: 0 0 11px 11px; }
.hub-link:hover { background-color: rgba(255,255,255,.035); }
.hub-link:focus-visible { outline: 3px solid #edca68; outline-offset: -3px; background-color: rgba(255,255,255,.04); }
.hub-link-image { position: absolute; top: 0; bottom: 0; left: 0; display: block; width: 112px; height: 100%; object-fit: cover; object-position: center; border-radius: 0; }
.hub-link-image[src$="business.webp"] { object-position: 48% center; }
.hub-link-image[src$="pitch_deck_image.webp"] { object-position: 60% center; }
.hub-link-image[src$="background_mobile_video.avif"] { object-position: 45% center; }
.hub-link-body { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.hub-link-body strong { color: #fffef8; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.hub-link-body > span { color: var(--vg-muted); font-size: 0.875rem; line-height: 1.4; }
.hub-link > .hub-external, .hub-blog-content > .hub-external { color: var(--vg-gold); }
.hub-blog-content { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }

.hub-film-trigger { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; }
.hub-film-toggle { color: var(--vg-gold); }
.hub-film .video-card { border: 0 !important; border-radius: 0; padding: 0; gap: 0; }
.hub-film .video-card .card-content { padding: 16px; }
.hub-film .video-cta { justify-content: space-between; gap: 12px; overflow-wrap: anywhere; min-height: 55px; margin: 0; padding: 14px 16px; border-radius: 12px; font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.hub-film .video-cta .hub-external { position: static; width: 20px; height: 20px; color: var(--vg-gold); }

/* Standalone website link below the discovery panel. */
.hub-website-link { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; color: var(--vg-gold); font-size: 1.0625rem; font-weight: 700; line-height: 1.4; text-decoration: none; }
.hub-website-link:hover span { text-decoration: underline; text-underline-offset: 4px; }
.hub-website-link:focus-visible { outline: 3px solid var(--vg-gold); outline-offset: 3px; border-radius: 8px; }

.hub-social-section { margin: 0; padding-top: 4px; }
.hub-social-section .social-icons { gap: 12px; }
.hub-social-section .social-icon { flex: 1; width: auto; height: 56px; border-radius: 12px; }
.hub-social-section .social-icon::before { width: 24px; height: 24px; }
.hub-social-section p { margin: 16px 0 0; color: var(--vg-muted); font-size: 0.875rem; line-height: 1.4; text-align: center; }
.hub-social-section a:focus-visible { outline: 3px solid #edca68; outline-offset: -3px; }

.hub-skip-link { position: fixed; top: 8px; left: 8px; z-index: 100000; padding: 12px 16px; border-radius: 12px; background: #f7e39d; color: #173b18; transform: translateY(-150%); }
.hub-skip-link:focus { transform: none; }

@media (max-width: 768px) {
  .hub-container { width: calc(100% - 10px); gap: 20px; margin: 20px 5px clamp(2rem, 4vw, 3rem); -webkit-tap-highlight-color: transparent; }
}
@media (max-width: 400px) {
  .hub-action strong { font-size: 1.125rem; }
  .hub-section-title, .hub-page .starterbox-title { font-size: 1.5rem; }
}
@media (max-width: 359px) {
  .hub-hero { grid-template-columns: 1fr; }
  .hub-action { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; }
  .hub-action-graphic { grid-row: span 2; }
  .hub-action-bottom { grid-column: 2; margin: 0; padding-top: 8px; }
  .hub-link { padding-left: 116px; gap: 8px; padding-right: 12px; }
  .hub-blog-content { gap: 8px; }
  .hub-link-image { width: 100px; }
  .hub-link-body strong { font-size: 1rem; }
}

/* WhatsApp channel, matching the existing social buttons. */
/* Official Bootstrap icon; license: files/licenses/bootstrap-icons-LICENSE.txt */
.hub-social-section .hub-whatsapp-link { flex: none; justify-content: flex-start; gap: 16px; width: 100%; height: auto; min-height: 80px; margin-top: 16px; padding: 20px; color: #fff; text-decoration: none; }
.hub-social-section .icon-whatsapp::before { content: ""; flex: 0 0 24px; background-image: url('../files/icons/whatsapp.svg'); background-position: center; background-repeat: no-repeat; background-size: contain; }
.hub-whatsapp-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.hub-whatsapp-copy strong { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.hub-whatsapp-copy > span { color: var(--vg-muted); font-size: 0.875rem; line-height: 1.4; }
.hub-whatsapp-link > .hub-external { color: var(--vg-gold); }
@media (max-width: 359px) { .hub-social-section .hub-whatsapp-link { gap: 12px; padding: 20px 16px; } }

/* Yield immediately, including when the widget applies its own reveal styles. */
.hub-page #vegenergy-chat-widget.hub-chat-suppressed {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Accessible controls and text scaling; shared footer assets stay independent. */
.hub-page .starterbox-limited-offer { margin-bottom: 8px; color: var(--vg-gold); font-size: .75rem; font-weight: 700; font-style: normal; line-height: 1.3; letter-spacing: 1.4px; }
.hub-page .starterbox-features .feature-item { padding: 4px 8px; font-size: .8125rem; font-weight: 400; line-height: 1.4; }
.hub-page .availability-badge.unknown { color: var(--vg-muted); }
.hub-page :is(.starterbox-price-badge, .product-price-badge) { min-width: 0; max-width: 100%; white-space: normal; }
.hub-skip-link { display: flex; align-items: center; min-height: 44px; }
.hub-skip-link:focus-visible { outline: 3px solid var(--vg-ink); outline-offset: -5px; }
.hub-container:focus { outline: none; }
.hub-page :is(.video-mobile-fullscreen, .video-mobile-close, .vegenergy-video):focus-visible { outline: 3px solid var(--vg-gold); outline-offset: -5px; }
.hub-page .video-cta:focus-visible { outline: 3px solid var(--vg-gold); outline-offset: -4px; }
.hub-whatsapp-copy, .hub-website-link { overflow-wrap: anywhere; }

/* Hover changes colors only. Keep the approved image crop and stable controls. */
.hub-page .starterbox-card .starterbox-image-container img,
.hub-page .starterbox-card:hover .starterbox-image-container img,
.hub-page .product-card:hover .product-image-container img,
.hub-page .product-card:hover :is(.product-price-badge, .feature-item svg, .availability-badge),
.hub-page .starterbox-card:hover :is(.starterbox-price-badge, .feature-item svg, .availability-badge),
.hub-page .social-icon:hover::before { transform: none; }
.hub-page .starterbox-card[data-product="starterbox"] .starterbox-image-container img,
.hub-page .starterbox-card[data-product="starterbox"]:hover .starterbox-image-container img { transform: scale(1.10); }

/* Blog error content is also used by the asynchronous loader. */
.hub-blog-content .blog-error { display: flex; align-items: center; justify-content: center; height: 150px; color: rgba(255,100,100,.7); font-size: .9rem; text-align: center; padding: 2rem; }
