/* Gradient accents of the landing duplicate (index-gradients.html, built by tools/build-gradient-draft.py).
   Pastel pictures in the logo colour and cream (assets/features/pastel-*.jpg), slowly drifting,
   under one crisp layer of film grain (assets/features/grain.png). url() paths are relative to this file. */
:root { --hg-noise: url(features/grain.png); }
@keyframes hg-pan { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-4%, 3%) scale(1.1); } 100% { transform: translate(3%, -3%) scale(1.04); } }

/* ---------------- hero ---------------- */
/* A dome of soft colour behind the phone: the picture fades out towards the edge, like light. */
.hg-dome { overflow: hidden; border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 91%, rgba(0,0,0,0) 100%); mask-image: radial-gradient(closest-side, #000 91%, rgba(0,0,0,0) 100%); }
.hg-dome img { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; animation: hg-pan 16s ease-in-out infinite alternate; }
/* A bright core above the phone, so it appears to rise out of the light; fine grain on top. */
.hg-dome::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(40% 26% at 50% 20%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 100%); }
.hg-dome::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--hg-noise) 0 0 / 240px; pointer-events: none; }

/* ---------------- "До і після": one big gradient panel ---------------- */
/* clip-path rounds the corners for sure: Safari ignores overflow+border-radius when a child animates. */
.hg-ba > div { position: relative; isolation: isolate; overflow: hidden; overflow: clip; border-radius: 44px; clip-path: inset(0 round 44px); padding: clamp(22px, 4.5vw, 64px); }
.hg-ba > div::before { content: ""; position: absolute; inset: -12%; z-index: -2; background: url(features/pastel-ba.webp?v=blue1) center / cover; animation: hg-pan 18s ease-in-out infinite alternate; }
.hg-ba > div::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hg-noise) 0 0 / 240px; pointer-events: none; }
.hg-ba .text-\[\#6e727a\] { color: #404955; }
/* The table lies on frosted glass; the black "with the app" column keeps the contrast. */
.hg-ba .ba-table { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.hg-ba .ba-no { border-top-color: rgba(255,255,255,.7); color: #4f5865; }
@media (max-width: 639px) {
  .hg-ba > div { border-radius: 30px; clip-path: inset(0 round 30px); padding: 18px; }
  /* The table runs edge to edge of the pastel panel; the panel's clip rounds its bottom corners. */
  .hg-ba .ba-table { margin-inline: -18px; margin-bottom: -18px; border-radius: 24px 24px 0 0; box-shadow: none; }
  .hg-ba .ba-cell { padding-inline: 18px; }
}

/* ---------------- FAQ: the "still have questions" card ---------------- */
.hg-ask { position: relative; isolation: isolate; overflow: hidden; clip-path: inset(0 round 28px); }
.hg-ask::before { content: ""; position: absolute; inset: -14%; z-index: -2; background: url(features/pastel-ask.webp?v=blue1) center / cover; animation: hg-pan 17s ease-in-out infinite alternate; }
.hg-ask::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hg-noise) 0 0 / 240px; pointer-events: none; }
.hg-ask p { color: #404955; }

@media (prefers-reduced-motion: reduce) { .hg-dome img, .hg-ba > div::before, .hg-ask::before { animation: none; } }

/* ---------------- the page's small accents, in the same palette ---------------- */
header:has(> nav)::before { background: linear-gradient(180deg, rgba(216,229,246,0) 0%, #d8e5f6 46%, #e9f0f8 58%, rgba(255,248,238,0) 100%); }
.w-pet img { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #b8d0ef; }
.fp-glow::after { content: ""; position: absolute; inset: 0; background: var(--hg-noise) 0 0 / 240px; pointer-events: none; }
