/* Deliberately opt-in: the two home pages only. */
body.gb-home-glass {
  --home-glass-ink: #182331;
  --home-glass-muted: #415064;
  --home-glass-line: rgba(78, 100, 121, .23);
  --home-glass-surface: rgba(255, 255, 255, .72);
}

body.gb-home-glass .gb-studio-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 24px;
  color: var(--home-glass-ink);
  background: #e6ebee;
  box-shadow: inset 0 0 0 1px rgba(84, 105, 124, .24), inset 0 2px 2px #fff,
    0 12px 38px -24px rgba(31, 49, 67, .35);
}
body.gb-home-glass .gb-studio-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
body.gb-home-glass .gb-studio-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: blur(2px) saturate(.55);
  transform: scale(1.09);
  opacity: 1;
}
body.gb-home-glass .gb-studio-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(112deg, rgba(247, 250, 252, .85), rgba(241, 246, 249, .72) 52%, rgba(234, 242, 247, .65)),
    linear-gradient(126deg, transparent 37%, rgba(255, 255, 255, .55) 37.1%, transparent 68%);
}
body.gb-home-glass .gb-studio-glass::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 19px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 1px rgba(79, 100, 119, .13);
  pointer-events: none;
}
body.gb-home-glass .gb-studio-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  padding: clamp(28px, 4vw, 60px);
}
body.gb-home-glass #dashboard .gb-studio-intro h2 {
  max-width: 19ch;
  margin: 22px 0 28px;
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 1.18;
  letter-spacing: -.035em;
  color: var(--home-glass-ink);
  text-wrap: balance;
}
body.gb-home-glass #dashboard .gb-studio-glass p { color: #344253; }
body.gb-home-glass #dashboard .gb-studio-signature {
  margin: 0;
  font-weight: 700;
  color: var(--home-glass-ink);
}
body.gb-home-glass .gb-studio-signature span {
  display: block;
  font-size: 14px;
  font-weight: 450;
  color: var(--home-glass-muted);
}
body.gb-home-glass .gb-studio-story > p { margin: 0 0 22px; }
body.gb-home-glass .gb-studio-story > a { margin-top: 20px; }

body.gb-home-glass .gb-home-section-head { margin-bottom: 28px; }
body.gb-home-glass #dashboard .gb-home-section-head h2 { max-width: 29ch; margin-bottom: 0; text-wrap: balance; }
body.gb-home-glass .gb-home-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.gb-home-glass .gb-home-service {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  gap: 14px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--home-glass-line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .65), transparent 60%), var(--home-glass-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 9px 24px -24px #273c50;
}
body.gb-home-glass .gb-home-service-art { height: 150px; display: flex; align-items: center; justify-content: flex-start; }
body.gb-home-glass .gb-home-service-art img { display: block; flex: 0 0 208px; width: 208px; height: 208px; margin-left: -32px; object-fit: contain; }
body.gb-home-glass #dashboard .gb-home-service > :is(p, h3) { margin: 0; }
body.gb-home-glass #dashboard .gb-home-service .data-label { font-size: 12px; letter-spacing: .06em; color: var(--home-glass-muted); }
body.gb-home-glass #dashboard .gb-home-service h3 { font-size: clamp(22px, 1.8vw, 27px); line-height: 1.25; letter-spacing: -.025em; color: var(--home-glass-ink); text-wrap: balance; }
body.gb-home-glass #dashboard .gb-home-service p { color: var(--home-glass-muted); }
body.gb-home-glass #dashboard .gb-home-service .gb-home-service-lead { font-size: 16px; line-height: 1.65; }

body.gb-home-glass .gb-home-detail { border: 0; border-block: 1px solid var(--home-glass-line); padding: 0; margin: 0; background: transparent; border-radius: 0; box-shadow: none; }
body.gb-home-glass .gb-home-detail summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--home-glass-ink); cursor: pointer; list-style: none; }
body.gb-home-glass .gb-home-detail summary::-webkit-details-marker { display: none; }
body.gb-home-glass .gb-home-detail summary::after { content: "+"; flex: 0 0 20px; font-size: 22px; line-height: 1; text-align: center; font-weight: 400; }
body.gb-home-glass .gb-home-detail[open] summary::after { content: "−"; }
body.gb-home-glass #dashboard .gb-home-detail :is(p, li) { font-size: 15px; line-height: 1.7; }
body.gb-home-glass .gb-home-detail-body { padding: 0 0 16px; }
body.gb-home-glass .gb-home-detail-body p { margin: 0 0 16px; }
body.gb-home-glass .gb-home-detail-body ul { padding-left: 20px; margin: 0; }
body.gb-home-glass .gb-home-detail-body li + li { margin-top: 8px; }
body.gb-home-glass .gb-home-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; color: var(--home-glass-ink); font-weight: 650; font-size: 15px; line-height: 1.5; text-decoration: underline; text-decoration-color: rgba(83, 102, 121, .4); text-underline-offset: 5px; text-decoration-thickness: 1px; }
body.gb-home-glass .gb-home-text-link > span[aria-hidden] { flex: 0 0 auto; font-size: 21px; color: #b84218; }
body.gb-home-glass .gb-home-text-link:hover { text-decoration-color: currentColor; }
body.gb-home-glass .gb-home-text-link:focus-visible,
body.gb-home-glass .gb-home-detail summary:focus-visible { outline: 2px solid var(--home-glass-ink); outline-offset: 4px; border-radius: 4px; }
body.gb-home-glass .gb-home-service-link { align-self: end; }
body.gb-home-glass .gb-home-source-note { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 24px 8px; border-bottom: 1px solid var(--home-glass-line); }
body.gb-home-glass .gb-home-source-note > img { display: block; width: 128px; max-width: none; height: auto; margin-left: -12px; }
body.gb-home-glass #dashboard .gb-home-source-note h3 { font-size: 18px; line-height: 1.4; margin: 0 0 6px; }
body.gb-home-glass #dashboard .gb-home-source-note p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--home-glass-muted); }
body.gb-home-glass .gb-home-source-note > a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
body.gb-home-glass .gb-home-source-price { grid-row: 2; white-space: nowrap; font-size: 14px; font-weight: 450; }
body.gb-home-glass .gb-home-source-note > a > span[aria-hidden] { grid-column: 2; grid-row: 1 / 3; }

/* The original glass artwork carries the visual identity; the following
   editorial sequence uses quiet numbers instead of a second icon family. */
body.gb-home-glass #dashboard .gb-creative-steps .seo-mini-card { padding-top: 44px; }
body.gb-home-glass #dashboard .gb-creative-steps .seo-mini-card::after { left: 0; right: auto; top: 0; color: var(--home-glass-muted); }
body.gb-home-glass #dashboard .gb-creative-steps h3 { margin-top: 0; padding-top: 18px; }

/* Both controls remain in their existing DOM locations and retain the
   consent, menu and chat visibility logic owned by app.js. */
body.gb-home-glass #stickyCta .sticky-cta-btn,
body.gb-home-glass #gbChatLaunch {
  box-sizing: border-box;
  color: #fff;
  border: 1px solid rgba(190, 210, 224, .74);
  border-radius: 15px;
  background: linear-gradient(122deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .04) 42%, rgba(255, 255, 255, .12) 42.2%, transparent 77%),
    linear-gradient(180deg, rgba(40, 58, 76, .91), rgba(18, 31, 44, .94));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 1px 0 0 rgba(255, 255, 255, .18), inset 0 -2px 2px rgba(6, 18, 30, .3), 0 5px 18px -8px rgba(17, 34, 50, .45);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
}
body.gb-home-glass #stickyCta .sticky-cta-btn { min-height: 56px; padding: 12px 18px; gap: 16px; font-size: 15px; line-height: 1.5; }
body.gb-home-glass #stickyCta .sticky-cta-btn::after { width: 28px; height: 28px; flex-basis: 28px; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .65), 0 1px 4px rgba(0, 0, 0, .15); }
body.gb-home-glass #gbChatLaunch { width: 56px; height: 56px; min-height: 56px; padding: 0; }
body.gb-home-glass #stickyCta .sticky-cta-btn:hover,
body.gb-home-glass #gbChatLaunch:hover { border-color: #fff; box-shadow: inset 0 1px 2px #fff, inset 0 -2px 2px rgba(6, 18, 30, .3), 0 7px 24px -10px rgba(17, 34, 50, .6); }
body.gb-home-glass #stickyCta .sticky-cta-btn:focus-visible,
body.gb-home-glass #gbChatLaunch:focus-visible { outline: 3px solid #ff783d; outline-offset: 4px; }
body.gb-home-glass.has-sticky-cta:not(.gb-consent-open):has(.sticky-cta-bar.is-visible) #gbChatLaunch { right: 14px; bottom: calc(14px + var(--home-footer-clearance, 0px) + env(safe-area-inset-bottom, 0px)); height: var(--home-dock-height, 56px); }
body.gb-home-glass.has-sticky-cta:not(.gb-consent-open):has(.sticky-cta-bar.is-visible) #stickyCta { right: 82px; bottom: calc(14px + var(--home-footer-clearance, 0px) + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 96px); }

/* Three entry points form one comparison, never an orphaned third tile. */
body.gb-home-glass #hub-entry { container-type: inline-size; }
body.gb-home-glass #hub-entry .gb-home-section-head > p { margin: 16px 0 0; max-width: 65ch; color: var(--home-glass-muted); font-size: 16px; }
body.gb-home-glass .gb-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body.gb-home-glass .gb-entry-offer { display: grid; grid-template-rows: subgrid; grid-row: span 6; gap: 18px; min-width: 0; padding: clamp(22px, 2.2vw, 30px); border: 1px solid var(--home-glass-line); border-radius: 18px; background: var(--home-glass-surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); overflow-wrap: anywhere; }
body.gb-home-glass #hub-entry .gb-entry-offer > :is(h3, p) { margin: 0; }
body.gb-home-glass #hub-entry .gb-entry-offer > .data-label { font-size: 12px; letter-spacing: .055em; color: var(--home-glass-muted); }
body.gb-home-glass #hub-entry .gb-entry-offer > h3 { font-size: clamp(22px, 1.8vw, 27px); line-height: 1.25; color: var(--home-glass-ink); letter-spacing: -.025em; overflow-wrap: anywhere; text-wrap: balance; }
body.gb-home-glass .gb-entry-price { display: flex; flex-direction: column; gap: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--home-glass-line); }
body.gb-home-glass .gb-entry-price strong { color: var(--home-glass-ink); font-size: clamp(24px, 2vw, 30px); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
body.gb-home-glass .gb-entry-price span { color: var(--home-glass-muted); font-size: 14px; line-height: 1.5; }
body.gb-home-glass #hub-entry .gb-entry-lead { font-size: 16px; line-height: 1.7; color: var(--home-glass-muted); }
body.gb-home-glass #hub-entry .gb-entry-note { margin: 16px 0 0; }
body.gb-home-glass #hub-entry .gb-entry-action { width: 100%; min-height: 56px; height: 100%; padding: 12px 14px; margin: 0; font-size: 15px; line-height: 1.5; justify-content: space-between; text-align: left; white-space: normal; }
body.gb-home-glass #hub-entry .gb-entry-action::after { width: 26px; height: 26px; flex-basis: 26px; }
@supports not (grid-template-rows: subgrid) {
  body.gb-home-glass .gb-entry-offer { display: flex; flex-direction: column; }
  body.gb-home-glass #hub-entry .gb-entry-action { margin-top: auto; height: auto; }
}
@container (max-width: 850px) {
  body.gb-home-glass .gb-entry-grid { grid-template-columns: minmax(0, 1fr); }
  body.gb-home-glass .gb-entry-offer { grid-row: auto; grid-template-rows: auto; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 1199px) {
    body.gb-home-glass .gb-entry-grid { grid-template-columns: minmax(0, 1fr); }
    body.gb-home-glass .gb-entry-offer { grid-row: auto; grid-template-rows: auto; }
  }
}

/* Keep the Home dock above the real desktop footer height, including wrapping
   translations and text zoom. Consent retains its existing placement rules. */
@media (min-width: 981px) {
  body.gb-home-glass { --home-footer-clearance: var(--home-footer-height, 90px); }
  body.gb-home-glass:not(.gb-consent-open) #gbChatLaunch { bottom: calc(14px + var(--home-footer-clearance) + env(safe-area-inset-bottom, 0px)); }
  body.gb-home-glass:not(.gb-consent-open) #glasbox_chat { bottom: calc(82px + var(--home-footer-clearance) + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 110px - var(--home-footer-clearance)); }
}

/* A brief glass reveal, then three quiet light pulses on the first appearance.
   Only opacity/transform animate; the frosted material itself remains static. */
body.gb-home-glass #stickyCta { transition: opacity .25s ease, transform .45s cubic-bezier(.22, 1, .36, 1); }
body.gb-home-glass #stickyCta .sticky-cta-btn { position: relative; overflow: hidden; isolation: isolate; }
body.gb-home-glass #stickyCta::before { content: ""; position: absolute; inset: -3px; border-radius: 18px; pointer-events: none; border: 1px solid rgba(255, 167, 127, .72); box-shadow: 0 0 14px rgba(255, 120, 61, .16), inset 0 1px 0 rgba(255, 255, 255, .9); opacity: 0; }
body.gb-home-glass #stickyCta .sticky-cta-btn::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 10%, rgba(228, 241, 251, .32) 42%, rgba(255, 255, 255, .6) 49%, transparent 74%); opacity: 0; transform: translateX(-110%); }
body.gb-home-glass #stickyCta.gb-cta-intro .sticky-cta-btn { animation: gb-home-cta-emerge .62s cubic-bezier(.22, 1, .36, 1) both; }
body.gb-home-glass #stickyCta.gb-cta-intro .sticky-cta-btn::before { animation: gb-home-cta-sheen .8s .12s ease-out both; }
body.gb-home-glass #stickyCta.gb-cta-intro::before { animation: gb-home-cta-pulse 1s .7s ease-in-out 3; }
body.gb-home-glass #stickyCta:focus-within::before,
body.gb-home-glass #stickyCta:focus-within .sticky-cta-btn,
body.gb-home-glass #stickyCta:focus-within .sticky-cta-btn::before { animation: none; }
@keyframes gb-home-cta-emerge { from { opacity: .25; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gb-home-cta-sheen { 0% { opacity: 0; transform: translateX(-110%); } 30% { opacity: .8; } 100% { opacity: 0; transform: translateX(110%); } }
@keyframes gb-home-cta-pulse { 0%, 100% { opacity: 0; transform: scale(.99); } 45% { opacity: .7; transform: scale(1.012); } }
@media (prefers-reduced-motion: reduce) {
  body.gb-home-glass #stickyCta,
  body.gb-home-glass #stickyCta::before,
  body.gb-home-glass #stickyCta .sticky-cta-btn,
  body.gb-home-glass #stickyCta .sticky-cta-btn::before { animation: none !important; transition: none !important; }
}

html[data-theme="dark"] body.gb-home-glass { --home-glass-ink: #f0f5f8; --home-glass-muted: #c2ced9; --home-glass-line: rgba(158, 180, 198, .28); --home-glass-surface: rgba(24, 37, 50, .8); }
html[data-theme="dark"] body.gb-home-glass .gb-studio-glass { background: #17232e; border-color: rgba(178, 198, 216, .4); }
html[data-theme="dark"] body.gb-home-glass .gb-studio-glass::before { background: linear-gradient(112deg, rgba(17, 30, 42, .91), rgba(20, 34, 48, .86) 52%, rgba(27, 43, 57, .78)); }
html[data-theme="dark"] body.gb-home-glass #dashboard .gb-studio-glass p { color: var(--home-glass-muted); }
html[data-theme="dark"] body.gb-home-glass .gb-studio-glass::after { border-color: rgba(207, 224, 238, .19); box-shadow: inset 0 1px 0 rgba(220, 237, 248, .22); }
html[data-theme="dark"] body.gb-home-glass .gb-home-service { background: linear-gradient(135deg, rgba(182, 203, 219, .06), transparent 70%), var(--home-glass-surface); box-shadow: inset 0 1px 0 rgba(212, 230, 244, .2); }
html[data-theme="dark"] body.gb-home-glass .gb-home-text-link > span[aria-hidden] { color: #ff976a; }

@supports not (grid-template-rows: subgrid) {
  body.gb-home-glass .gb-home-service { display: flex; flex-direction: column; }
  body.gb-home-glass .gb-home-service-link { margin-top: auto; width: 100%; }
}
@media (max-width: 1279px) {
  body.gb-home-glass .gb-studio-content { grid-template-columns: 1fr; gap: 28px; }
  body.gb-home-glass #dashboard .gb-studio-intro h2 { max-width: 26ch; }
  body.gb-home-glass .gb-home-service-grid { grid-template-columns: 1fr; }
  body.gb-home-glass .gb-home-service { grid-row: auto; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto; }
  body.gb-home-glass .gb-home-service-art { grid-column: 1; grid-row: 1 / 6; align-self: start; }
  body.gb-home-glass .gb-home-service > :not(.gb-home-service-art) { grid-column: 2; }
  body.gb-home-glass .gb-home-source-note { grid-template-columns: 90px minmax(0, 1fr); gap: 14px 20px; }
  body.gb-home-glass .gb-home-source-note > a { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
  body.gb-home-glass .gb-studio-content { padding: 28px 24px; }
  body.gb-home-glass .gb-studio-glass { border-radius: 20px; }
  body.gb-home-glass .gb-home-service { display: flex; flex-direction: column; padding: 22px; }
  body.gb-home-glass .gb-home-service-art { height: 136px; }
  body.gb-home-glass .gb-home-service-art img { width: 188px; height: 188px; flex-basis: 188px; margin-left: -28px; }
  body.gb-home-glass .gb-home-service-link { width: 100%; }
  body.gb-home-glass .gb-home-source-note { grid-template-columns: 1fr; padding: 22px 0; gap: 12px; }
  body.gb-home-glass .gb-home-source-note > a { grid-column: 1; }
  body.gb-home-glass #stickyCta .sticky-cta-btn { padding: 12px; gap: 10px; font-size: 14px; }
  body.gb-home-glass #stickyCta .sticky-cta-btn::after { width: 24px; height: 24px; flex-basis: 24px; }
}
@media (forced-colors: active) {
  body.gb-home-glass .gb-studio-backdrop { display: none; }
  body.gb-home-glass .gb-studio-glass { background: Canvas; color: CanvasText; }
  body.gb-home-glass .gb-studio-glass::before { display: none; }
  body.gb-home-glass #stickyCta .sticky-cta-btn,
  body.gb-home-glass #gbChatLaunch { border: 2px solid ButtonText; }
}
