/* Guest Book Pro - the marketing page's own pieces, on top of the family
   marketing sheet: the phone in the hero, the message bubbles around it, the
   occasion chips, the cover gallery, and the motion the brief asks for.
   Corners stay tight. Everything that moves is switched off at the bottom for
   anyone who asked for less motion. */

.gbm { --gb-ease: cubic-bezier(.2, .7, .2, 1); }

/* Tight corners across the page, the house rule. */
.gbm .btn { border-radius: 4px; }
.gbm .feat, .gbm .kc, .gbm .stage, .gbm .cta-box, .gbm .kit-box, .gbm .fam-card, .gbm details { border-radius: 6px; }

/* ---------------------------------------------- the glint on every button */

.gbm .btn { position: relative; overflow: hidden; isolation: isolate; }
.gbm .btn::after {
  content: ''; position: absolute; inset: -2px; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  translate: -130% 0;
}
.gbm .btn:hover::after { animation: gbm-glint .65s ease-out 1; }
@keyframes gbm-glint { to { translate: 130% 0; } }

/* -------------------------------------------------------- occasion chips */

.gbm-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.gbm-kinds button, .gbm-filter button {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 13px; border-radius: 4px;
  font: 600 13.5px/1.2 var(--text, 'Inter', sans-serif); transition: background .2s, color .2s, border-color .2s, transform .15s var(--gb-ease);
}
.gbm-kinds button { color: var(--ink-2, #4A5568); border: 1px solid var(--line, #E3E7EE); background: rgba(255, 255, 255, .7); }
.gbm-kinds button:hover { color: var(--ink, #18202F); border-color: var(--accent); transform: translateY(-1px); }
.gbm-kinds button.on { background: var(--ink, #18202F); color: #fff; border-color: var(--ink, #18202F); }
.gbm-kinds button:focus-visible, .gbm-filter button:focus-visible, .gbm-cover:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, #fff); outline-offset: 2px; }

/* ------------------------------------------------------ the hero's phone */

.gbm-stage { position: relative; display: grid; place-items: center; padding: 26px 18px 30px; min-height: 480px; overflow: hidden; }
.gbm-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 40% at 22% 24%, color-mix(in srgb, #FF3D7F 38%, transparent), transparent 70%),
    radial-gradient(44% 40% at 82% 70%, color-mix(in srgb, #22C1C3 34%, transparent), transparent 70%),
    radial-gradient(40% 36% at 70% 14%, color-mix(in srgb, #FFB627 30%, transparent), transparent 70%);
  animation: gbm-drift 14s ease-in-out infinite alternate;
}
@keyframes gbm-drift { from { translate: -2% -2%; scale: 1; } to { translate: 3% 2%; scale: 1.08; } }

.gbm-phone {
  position: relative; z-index: 1; display: block; width: min(250px, 62vw); aspect-ratio: 9 / 17.5; border-radius: 26px; padding: 8px;
  background: #0B0D14; text-decoration: none;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 0 70px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .4s var(--gb-ease);
  animation: gbm-float 6s ease-in-out infinite alternate;
}
.gbm-phone:hover { transform: translateY(-4px) rotate(-1deg); }
@keyframes gbm-float { from { translate: 0 -5px; } to { translate: 0 6px; } }
.gbm-phone .cv { width: 100%; height: 100%; border-radius: 19px; }
.gbm-phone .cv.is-swap { animation: gbm-swap .6s var(--gb-ease); }
@keyframes gbm-swap { from { opacity: 0; scale: 1.04; filter: blur(6px); } }
.gbm-phone-btn {
  position: absolute; left: 22px; right: 22px; bottom: 26px; z-index: 2; padding: 11px 10px; border-radius: 4px; text-align: center;
  background: #fff; color: #17122B; font: 700 13.5px/1 var(--text, 'Inter', sans-serif); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
}

.gbm-bubble {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: 210px; padding: 9px 12px 9px 9px; border-radius: 6px;
  background: rgba(255, 255, 255, .96); color: #17122B; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .7);
  animation: gbm-pop .7s var(--gb-ease) backwards, gbm-bob 5s ease-in-out infinite alternate;
}
.gbm-bubble p { margin: 0; font: 500 12.5px/1.35 var(--text, 'Inter', sans-serif); display: flex; flex-direction: column; }
.gbm-bubble b { font-weight: 700; }
.gbm-ava { flex: none; width: 32px; height: 32px; border-radius: 4px; display: grid; place-items: center; background: var(--h); color: #fff; font: 800 14px/1 var(--display, 'Archivo', sans-serif); }
.gbm-b1 { left: 2%; top: 13%; animation-delay: .9s, 0s; }
.gbm-b2 { right: 1%; top: 40%; animation-delay: 1.5s, -1.6s; }
.gbm-b3 { left: 3%; bottom: 24%; animation-delay: 2.1s, -3s; }
@keyframes gbm-pop { from { opacity: 0; scale: .7; } }
@keyframes gbm-bob { from { translate: 0 -5px; } to { translate: 0 5px; } }
.gbm-wave { display: inline-flex; align-items: center; gap: 2px; height: 16px; margin-right: 6px; vertical-align: middle; }
.gbm-b2 p { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.gbm-b2 p b { flex: 1 1 100%; }
.gbm-wave i { width: 3px; border-radius: 2px; background: #22C1C3; animation: gbm-wave 1s ease-in-out infinite alternate; }
.gbm-wave i:nth-child(1) { height: 6px; animation-delay: -.1s; } .gbm-wave i:nth-child(2) { height: 13px; animation-delay: -.5s; }
.gbm-wave i:nth-child(3) { height: 9px; animation-delay: -.3s; } .gbm-wave i:nth-child(4) { height: 16px; animation-delay: -.8s; }
.gbm-wave i:nth-child(5) { height: 7px; animation-delay: -.2s; } .gbm-wave i:nth-child(6) { height: 12px; animation-delay: -.6s; }
.gbm-wave i:nth-child(7) { height: 15px; animation-delay: -.4s; } .gbm-wave i:nth-child(8) { height: 8px; animation-delay: -.9s; }
.gbm-wave i:nth-child(9) { height: 11px; animation-delay: -.7s; }
@keyframes gbm-wave { from { scale: 1 .45; } to { scale: 1 1; } }
@media (max-width: 520px) { .gbm-bubble { max-width: 160px; } .gbm-b2 { top: 46%; } }

/* --------------------------------------------- color: the marquee and tags */

.gbm .trade-run i { color: #fff; background: var(--h); border-color: transparent; border-radius: 4px; }
.gbm .feat-tag[style*="--h"] { background: color-mix(in srgb, var(--h) 16%, #fff); color: color-mix(in srgb, var(--h) 62%, #17122B); }
.gbm-quad { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* The glow: an accent bloom behind a card as it arrives, once, not a loop. */
.gbm .feat, .gbm .kc { position: relative; }
.gbm .feat.seen::before, .gbm .kc.seen::before {
  content: ''; position: absolute; inset: 10% 8%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: var(--h, var(--accent)); filter: blur(34px); opacity: 0; animation: gbm-bloom 1.5s ease-out calc(var(--d, 0ms) + 120ms) 1;
}
@keyframes gbm-bloom { 0% { opacity: 0; scale: .7; } 40% { opacity: .34; } 100% { opacity: 0; scale: 1.15; } }
.gbm .feat-grid .feat:nth-child(1) { --h: #7C3AED; } .gbm .feat-grid .feat:nth-child(2) { --h: #FF3D7F; }
.gbm .feat-grid .feat:nth-child(3) { --h: #22C1C3; } .gbm .feat-grid .feat:nth-child(4) { --h: #FFB627; }
.gbm .feat-grid .feat:nth-child(5) { --h: #3DDC97; } .gbm .feat-grid .feat:nth-child(6) { --h: #2EA8E0; }
.gbm .feat-grid .feat-tag { background: color-mix(in srgb, var(--h) 16%, #fff); color: color-mix(in srgb, var(--h) 62%, #17122B); }
.gbm .how-steps li.lit { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 24px 44px -26px var(--accent); }

/* ---------------------------------------------------------- cover gallery */

.gbm-covers { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px); max-width: 1240px; margin: 0 auto; }
.gbm-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; }
.gbm-filter button { color: var(--ink-2, #4A5568); border: 1px solid var(--line, #E3E7EE); background: var(--paper, #fff); }
.gbm-filter button:hover { color: var(--ink, #18202F); border-color: var(--accent); transform: translateY(-1px); }
.gbm-filter button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gbm-covergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.gbm-cover { display: flex; flex-direction: column; gap: 9px; text-decoration: none; color: inherit; border-radius: 6px; opacity: 0; translate: 0 18px; }
.gbm-cover.seen { opacity: 1; translate: 0 0; transition: opacity .6s var(--gb-ease), translate .6s var(--gb-ease); transition-delay: calc(var(--n, 0) * 45ms); }
.gbm-cover .cv { width: 100%; aspect-ratio: 3 / 4; border-radius: 5px; box-shadow: 0 16px 30px -18px rgba(15, 22, 38, .65); transition: transform .35s var(--gb-ease), box-shadow .35s var(--gb-ease); }
.gbm-cover:hover .cv { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 28px 44px -20px color-mix(in srgb, var(--cv-accent) 70%, #17122B); }
.gbm-cover-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 700 14px/1.2 var(--display, 'Archivo', sans-serif); }
.gbm-cover-name small { font: 500 12px/1.2 var(--text, 'Inter', sans-serif); color: var(--ink-3, #6B7486); }
.gbm-cover[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .gbm .btn::after { display: none; }
  .gbm-stage::before, .gbm-phone, .gbm-bubble, .gbm-wave i, .gbm-phone .cv.is-swap,
  .gbm .feat.seen::before, .gbm .kc.seen::before { animation: none !important; }
  .gbm-cover { opacity: 1; translate: 0 0; }
  .gbm-cover.seen { transition: none; }
  .gbm-cover:hover .cv, .gbm-phone:hover { transform: none; }
}
