/* PeakPoint Media: Instant Ad Hook & Strategy Generator
   Every class is prefixed with "hg" so it won't clash with the rest of the site. */

.hg {
  --hg-bg: #0c0d12;
  --hg-panel: #13151c;
  --hg-line: rgba(255, 255, 255, 0.09);
  --hg-text: #f3f2f6;
  --hg-muted: #969aa8;
  --hg-brand: #f0375b;
  --hg-brand-2: #ff7a59;
  --hg-grad: linear-gradient(120deg, #f0375b 0%, #ff7a59 60%, #ffc46b 100%);
  --hg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hg-display: "Syne", system-ui, sans-serif;
  --hg-font: "Manrope", system-ui, sans-serif;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 5vw, 64px);
  border-radius: 32px;
  border: 1px solid var(--hg-line);
  background:
    radial-gradient(circle at 0% 0%, rgba(240, 55, 91, 0.14), transparent 45%),
    linear-gradient(160deg, #161820 0%, var(--hg-bg) 70%);
  color: var(--hg-text);
  font-family: var(--hg-font);
  line-height: 1.6;
  text-align: left;
}
.hg *, .hg *::before, .hg *::after { box-sizing: border-box; }
.hg p { margin: 0; }

.hg__glow {
  position: absolute; z-index: -1; right: -10%; top: 50%; width: 520px; height: 520px;
  translate: 0 -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(240, 55, 91, 0.35), transparent 65%);
  filter: blur(30px);
}

/* ---------- Input panel ---------- */
.hg__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px !important;
  border: 1px solid rgba(240, 55, 91, 0.3); background: rgba(240, 55, 91, 0.08);
  color: #ff8aa0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
}
.hg__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hg-brand); box-shadow: 0 0 0 0 rgba(240, 55, 91, 0.7); animation: hg-pulse 2s infinite; }
@keyframes hg-pulse { 70% { box-shadow: 0 0 0 10px rgba(240, 55, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 55, 91, 0); } }

.hg__title {
  margin: 0 0 18px; font-family: var(--hg-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.02em;
}
.hg__grad { background: var(--hg-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg__lead { color: var(--hg-muted); font-size: 1.02rem; max-width: 520px; margin-bottom: 32px !important; }

.hg__form { display: grid; gap: 18px; max-width: 520px; }
.hg__field { display: grid; gap: 8px; }
.hg__field[hidden] { display: none; }
.hg__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hg-muted); }
.hg__input {
  width: 100%; height: 56px; padding: 0 18px; border-radius: 16px;
  border: 1px solid var(--hg-line); background: rgba(255, 255, 255, 0.04);
  color: var(--hg-text); font: 600 1rem var(--hg-font); outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.hg__input::placeholder { color: #5f6270; font-weight: 500; }
.hg__input:hover { border-color: rgba(255, 255, 255, 0.16); }
.hg__input:focus { border-color: var(--hg-brand); background: rgba(240, 55, 91, 0.05); box-shadow: 0 0 0 4px rgba(240, 55, 91, 0.14); }
.hg__input.is-invalid { border-color: #ff5d6c; animation: hg-shake 0.4s; }
@keyframes hg-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

.hg__select-wrap { position: relative; display: block; }
.hg__select-wrap::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--hg-muted); border-bottom: 2px solid var(--hg-muted);
  transform: rotate(45deg); pointer-events: none; transition: border-color 0.25s;
}
.hg__select-wrap:focus-within::after { border-color: var(--hg-brand); }
.hg__select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.hg__select option { background: #16181f; color: var(--hg-text); }

.hg__label em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; opacity: 0.7; }
.hg__hint { font-size: 0.82rem; color: var(--hg-muted); line-height: 1.45; }
.hg__url-wrap { position: relative; display: block; }
.hg__url-wrap svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--hg-muted); stroke-width: 1.7; pointer-events: none; transition: stroke 0.25s; }
.hg__url-wrap:focus-within svg { stroke: var(--hg-brand); }
.hg__input--url { padding-left: 46px; }
.hg__colors { border: 0; padding: 0; margin: 0; min-width: 0; }
.hg__colors legend { padding: 0; margin-bottom: 8px; }
.hg__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.hg__swatch { position: relative; cursor: pointer; }
.hg__swatch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.hg__swatch span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--sw); border: 2px solid transparent; box-shadow: 0 0 0 1px var(--hg-line);
  transition: transform 0.25s var(--hg-ease), box-shadow 0.25s;
}
.hg__swatch--auto span { width: auto; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); font-size: 0.8rem; font-weight: 700; color: var(--hg-muted); }
.hg__swatch:hover span { transform: scale(1.08); }
.hg__swatch input:checked + span { box-shadow: 0 0 0 2px var(--hg-bg), 0 0 0 4px #fff; }
.hg__swatch--auto input:checked + span { color: var(--hg-text); box-shadow: 0 0 0 1px #fff; }
.hg__swatch input:focus-visible + span { outline: 2px solid var(--hg-brand); outline-offset: 4px; }

.hg__error { color: #ff7a85; font-size: 0.88rem; font-weight: 600; margin-top: -6px !important; }

.hg__btn {
  position: relative; overflow: hidden; height: 58px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--hg-grad); background-size: 160% 100%; background-position: 0 0;
  color: #fff; font: 800 1.02rem var(--hg-font); letter-spacing: 0.01em;
  box-shadow: 0 14px 40px -12px rgba(240, 55, 91, 0.75);
  transition: transform 0.35s var(--hg-ease), box-shadow 0.35s, background-position 0.6s var(--hg-ease);
}
.hg__btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35), transparent 70%);
  transition: transform 0.8s var(--hg-ease);
}
.hg__btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 50px -12px rgba(255, 122, 89, 0.8); }
.hg__btn:hover::after { transform: translateX(120%); }
.hg__btn:active { transform: translateY(0) scale(0.99); }
.hg__btn:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }
.hg__spinner {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  opacity: 0; animation: hg-spin 0.7s linear infinite;
}
.hg__btn.is-loading { pointer-events: none; }
.hg__btn.is-loading .hg__btn-label { opacity: 0; }
.hg__btn.is-loading .hg__spinner { opacity: 1; }
@keyframes hg-spin { to { transform: rotate(360deg); } }

.hg__perks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 26px 0 0; color: var(--hg-muted); font-size: 0.88rem; font-weight: 600; }
.hg__perks li { display: flex; align-items: center; gap: 8px; }
.hg__perks li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(240, 55, 91, 0.15); color: var(--hg-brand); font-size: 0.7rem; font-weight: 800; }

/* ---------- Phone mockup ---------- */
.hg__stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }

.hg-phone {
  position: relative; width: min(330px, 100%); aspect-ratio: 9 / 19; padding: 10px;
  border-radius: 50px; background: linear-gradient(150deg, #2a2c33, #0a0a0c 40%, #1c1d22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(240, 55, 91, 0.5);
  transition: transform 0.6s var(--hg-ease);
}
.hg-phone.is-refresh { animation: hg-bump 0.6s var(--hg-ease); }
@keyframes hg-bump { 40% { transform: scale(0.97) rotate(-1deg); } }

.hg-phone__screen {
  --hg-s1: #f0375b; --hg-s2: #6a2bff;
  position: relative; height: 100%; border-radius: 41px; overflow: hidden;
  display: flex; flex-direction: column; background: #0b0b0f; color: #fff;
}
/* The "video": one SVG per scene, cross-fading */
.hg-phone__scene { position: absolute; inset: 0; z-index: 0; background: #0b0b10; }
.hg-phone__scene svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.7s ease; }
.hg-phone__scene svg.is-on { opacity: 1; }
.hg-phone__scene svg.is-on .hg-sv-cam { animation: hg-cam 3.4s ease-out both; }
@keyframes hg-cam { from { transform: scale(1.12) translateY(10px); } to { transform: none; } }
.hg-phone__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 34%, transparent 48%, rgba(0, 0, 0, 0.2) 66%, rgba(0, 0, 0, 0.85) 100%); }

.hg-phone__notch { position: absolute; z-index: 3; top: 10px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #000; }
.hg-phone__status, .hg-phone__progress, .hg-phone__tabs, .hg-phone__main, .hg-phone__cta { position: relative; z-index: 2; }
.hg-phone__status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0; height: 44px; font-size: 0.8rem; font-weight: 700; }
.hg-phone__sys { display: flex; gap: 6px; align-items: center; }
.hg-phone__sys svg { height: 10px; width: auto; fill: currentColor; }
.hg-phone__progress { display: flex; gap: 4px; margin: 8px 16px 0; }
.hg-phone__progress span { position: relative; flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.hg-phone__progress span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hg-phone__progress span.is-done::after { transform: scaleX(1); }
.hg-phone__progress span.is-on::after { animation: hg-progress var(--hg-scene-ms, 3400ms) linear forwards; }
@keyframes hg-progress { to { transform: scaleX(1); } }
.hg-phone__tabs { display: flex; justify-content: center; gap: 18px; padding: 12px 0 0; font-size: 0.82rem; font-weight: 700; color: rgba(255, 255, 255, 0.6); }
.hg-phone__tabs .is-active { color: #fff; position: relative; }
.hg-phone__tabs .is-active::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 20px; height: 2.5px; margin-left: -10px; border-radius: 2px; background: #fff; }

.hg-phone__main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 6px; padding: 14px 10px 10px 16px; }
.hg-phone__content { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-width: 0; }

.hg-hook { margin-bottom: auto; padding-top: 10px; transition: opacity 0.5s, transform 0.5s var(--hg-ease); }
.hg-phone__screen.is-end .hg-hook { opacity: 0; transform: translateY(-10px); }
.hg-hook__format {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px);
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.hg-hook__text {
  font-family: var(--hg-display); font-weight: 800; font-size: clamp(0.92rem, 4vw, 1.04rem); line-height: 1.28;
  letter-spacing: -0.01em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); overflow-wrap: anywhere;
}
.hg-hook__text .hg-w { display: inline-block; opacity: 0; transform: translateY(10px); animation: hg-word 0.5s var(--hg-ease) forwards; animation-delay: calc(var(--i) * 45ms); }
.hg-hook__brand { -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.22em; border-radius: 5px; background: var(--hg-brand); box-shadow: 0 4px 18px -4px rgba(240, 55, 91, 0.9); text-shadow: none; }
@keyframes hg-word { to { opacity: 1; transform: none; } }

/* On-screen text sticker that changes with each scene */
.hg-sticker {
  align-self: center; max-width: 92%; padding: 6px 12px; border-radius: 8px;
  background: #fff; color: #111; text-align: center;
  font: 800 0.8rem/1.25 var(--hg-font); box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.6);
  transform: rotate(-2deg);
}
.hg-sticker:empty { visibility: hidden; }
.hg-sticker.is-pop { animation: hg-sticker 0.5s var(--hg-ease); }
@keyframes hg-sticker { from { opacity: 0; transform: rotate(-2deg) scale(0.7); } }

/* SVG scene animations */
.hg svg .hg-sv-float { animation: hg-sv-float 3.4s ease-in-out infinite; }
@keyframes hg-sv-float { 50% { transform: translateY(-6px); } }
.hg svg .hg-sv-twinkle { transform-box: fill-box; transform-origin: center; animation: hg-sv-twinkle 1.8s ease-in-out infinite; }
@keyframes hg-sv-twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1); } }
.hg svg .hg-sv-steam { animation: hg-sv-steam 2.6s ease-in-out infinite; }
@keyframes hg-sv-steam { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: 0.85; } 100% { opacity: 0; transform: translateY(-22px); } }
.hg svg .hg-sv-pulse { transform-box: fill-box; transform-origin: center; animation: hg-sv-pulse 1.6s ease-in-out infinite; }
@keyframes hg-sv-pulse { 50% { transform: scale(1.07); } }
.hg svg .hg-sv-draw { stroke-dasharray: 420; stroke-dashoffset: 420; animation: hg-sv-draw 3.4s ease-out infinite; }
@keyframes hg-sv-draw { 65%, 100% { stroke-dashoffset: 0; } }
.hg svg .hg-sv-bar { transform-box: fill-box; transform-origin: bottom; animation: hg-sv-bar 3.4s var(--hg-ease) infinite; }
@keyframes hg-sv-bar { 0% { transform: scaleY(0.08); } 45%, 100% { transform: scaleY(1); } }
.hg svg .hg-sv-pop { transform-box: fill-box; transform-origin: center; animation: hg-sv-pop 3.4s var(--hg-ease) infinite both; }
@keyframes hg-sv-pop { 0% { opacity: 0; transform: translateY(14px) scale(0.92); } 18%, 100% { opacity: 1; transform: none; } }
.hg svg .hg-sv-rise { animation: hg-sv-rise 3.4s var(--hg-ease) infinite; }
@keyframes hg-sv-rise { 0% { transform: translateY(40px); opacity: 0; } 35%, 100% { transform: none; opacity: 1; } }
.hg svg .hg-sv-flicker { animation: hg-sv-flicker 3.4s linear infinite; }
@keyframes hg-sv-flicker { 0%, 8%, 12%, 100% { opacity: 1; } 10% { opacity: 0.35; } 55% { opacity: 1; } 57% { opacity: 0.6; } 59% { opacity: 1; } }
.hg svg .hg-sv-spin { transform-box: fill-box; transform-origin: center; animation: hg-spin 6s linear infinite; }

.hg-phone__meta { display: grid; gap: 4px; min-width: 0; }
.hg-adcard { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hg-adcard__logo { flex: 0 0 34px; height: 34px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 4px 14px -4px rgba(0, 0, 0, 0.6); }
.hg-adcard__logo svg, .hg-rail__avatar span svg { display: block; width: 100%; height: 100%; }
.hg-adcard__text { display: grid; min-width: 0; line-height: 1.25; }
.hg-adcard__sub { font-size: 0.64rem; font-weight: 600; color: rgba(255, 255, 255, 0.72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-phone__handle { font-size: 0.82rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-phone__caption { font-size: 0.72rem; line-height: 1.4; color: rgba(255, 255, 255, 0.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hg-phone__audio { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hg-phone__audio svg { flex: 0 0 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.hg-phone__ticker { overflow: hidden; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 85%, transparent); }
.hg-phone__ticker span { display: inline-block; white-space: nowrap; font-size: 0.7rem; font-weight: 600; animation: hg-ticker 16s linear infinite; }
@keyframes hg-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hg-phone__rail { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 14px; padding-bottom: 2px; }
.hg-rail__avatar { position: relative; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; border: 2px solid #fff; background: #fff; }
.hg-rail__avatar span { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.hg-rail__avatar i { position: absolute; bottom: -8px; left: 50%; width: 17px; height: 17px; margin-left: -8.5px; border-radius: 50%; background: var(--hg-brand); display: grid; place-items: center; font-style: normal; font-size: 0.75rem; font-weight: 800; line-height: 1; }
.hg-rail__item { display: grid; justify-items: center; gap: 2px; font-size: 0.62rem; font-weight: 700; }
.hg-rail__item svg { width: 26px; height: 26px; fill: rgba(255, 255, 255, 0.95); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)); }
.hg-rail__item:first-of-type svg { fill: var(--hg-brand); animation: hg-heart 1.6s var(--hg-ease) infinite; }
@keyframes hg-heart { 15% { transform: scale(1.2); } 30% { transform: scale(1); } }
.hg-rail__disc { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #fff 0 3px, #222 4px 9px, var(--hg-s1) 10px 11px, #111 12px); animation: hg-spin 4s linear infinite; }

.hg-phone__cta {
  margin: 0 12px 14px; padding: 13px 14px; border-radius: 14px; text-align: center; text-decoration: none;
  background: var(--hg-grad); color: #fff; font-size: 0.82rem; font-weight: 800; line-height: 1.25;
  box-shadow: 0 10px 30px -10px rgba(240, 55, 91, 0.9); overflow-wrap: anywhere;
  transition: transform 0.3s var(--hg-ease), filter 0.3s;
}
.hg-phone__cta:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ---------- Controls under the phone ---------- */
.hg__controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.hg__dots { display: flex; gap: 6px; margin-right: 6px; }
.hg__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.2); cursor: pointer; transition: width 0.4s var(--hg-ease), background 0.3s; }
.hg__dots button.is-active { width: 28px; background: var(--hg-brand); }
.hg__chip {
  height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hg-line); background: rgba(255, 255, 255, 0.04); color: var(--hg-text);
  font: 700 0.85rem var(--hg-font); transition: border-color 0.25s, background 0.25s;
}
.hg__chip:hover { border-color: rgba(240, 55, 91, 0.5); background: rgba(240, 55, 91, 0.08); }
.hg__chip:focus-visible, .hg__dots button:focus-visible { outline: 2px solid var(--hg-brand); outline-offset: 3px; }

/* ---------- Storyboard ---------- */
.hg-board { grid-column: 1 / -1; padding-top: clamp(8px, 2vw, 16px); border-top: 1px solid var(--hg-line); }
.hg-board__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin: 24px 0 14px; }
.hg-board__eyebrow { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hg-brand); margin-bottom: 6px !important; }
.hg-board__title { margin: 0; font-family: var(--hg-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.hg-board__audio, .hg-board__concept { color: var(--hg-muted); font-size: 0.92rem; }
.hg-board__audio { max-width: 460px; }
.hg-board__audio strong, .hg-board__concept strong { color: var(--hg-text); font-weight: 700; margin-right: 4px; }
.hg-board__concept { max-width: 900px; margin-bottom: 22px !important; }

.hg-kit {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 18px; margin-bottom: 22px; border-radius: 22px; border: 1px solid var(--hg-line);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.hg-kit__logo svg { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8); }
.hg-kit__title { margin: 0 0 8px; font-family: var(--hg-display); font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.hg-kit__note { color: var(--hg-muted); font-size: 0.9rem; margin-bottom: 14px !important; max-width: 520px; }
.hg-kit .hg__chip[hidden] { display: none; }
.hg-kit__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hg__upload { position: relative; display: inline-flex; align-items: center; overflow: hidden; }
.hg__upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hg__upload:focus-within { outline: 2px solid var(--hg-brand); outline-offset: 3px; }

.hg-board__frames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.hg-frame {
  width: 100%; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px;
  border-radius: 20px; border: 1px solid var(--hg-line); background: rgba(255, 255, 255, 0.03);
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--hg-ease);
}
.hg-frame:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.18); }
.hg-frame.is-on { border-color: var(--hg-brand); background: rgba(240, 55, 91, 0.07); }
.hg-frame:focus-visible { outline: 2px solid var(--hg-brand); outline-offset: 3px; }
.hg-frame__img { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #0b0b10; }
.hg-frame__img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hg-frame__num { display: block; margin-bottom: 6px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hg-brand); }
.hg-frame__text { display: block; margin-bottom: 6px; font-family: var(--hg-display); font-weight: 700; font-size: 0.98rem; line-height: 1.25; }
.hg-frame__note { display: block; color: var(--hg-muted); font-size: 0.84rem; line-height: 1.45; }

/* ---------- Locked content + unlock ---------- */
.hg-blur { filter: blur(5px); user-select: none; pointer-events: none; color: var(--hg-muted); }
.hg-frame.is-locked .hg-frame__img svg { filter: blur(3px) saturate(0.8); transform: scale(1.06); }
.hg-frame__lock {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem; background: rgba(10, 10, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px);
}

.hg__chip--accent { border-color: rgba(240, 55, 91, 0.55); background: rgba(240, 55, 91, 0.12); }
.hg__chip--accent:hover { background: var(--hg-brand); border-color: var(--hg-brand); }

.hg-unlock {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 20px 32px; margin-top: 18px; padding: clamp(20px, 3vw, 30px); border-radius: 22px;
  border: 1px solid rgba(240, 55, 91, 0.45);
  background: radial-gradient(circle at 100% 0%, rgba(240, 55, 91, 0.25), transparent 55%), rgba(240, 55, 91, 0.06);
}
.hg-unlock__title { margin: 0 0 12px; font-family: var(--hg-display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.2; }
.hg-unlock__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--hg-muted); font-size: 0.9rem; font-weight: 600; }
.hg-unlock__list li::before { content: "✓ "; color: var(--hg-brand); font-weight: 800; }
.hg-unlock__actions { display: grid; justify-items: center; gap: 10px; }
.hg-unlock__btn { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; background: #25d366; box-shadow: 0 14px 40px -12px rgba(37, 211, 102, 0.7); }
.hg-unlock__btn:hover { background: #1fbe5b; box-shadow: 0 18px 50px -12px rgba(37, 211, 102, 0.8); }
.hg-unlock__btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.hg-unlock__alt { color: var(--hg-muted); font-size: 0.85rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hg-unlock__alt:hover { color: var(--hg-text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hg { grid-template-columns: minmax(0, 1fr); }
  .hg__form, .hg__lead { max-width: none; }
  .hg__glow { right: 50%; top: auto; bottom: -160px; translate: 50% 0; }
  .hg-board__frames { grid-template-columns: minmax(0, 1fr); }
  .hg-kit { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .hg { padding: 20px 16px; border-radius: 24px; }
  .hg-phone { border-radius: 44px; padding: 8px; }
  .hg-phone__screen { border-radius: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  .hg *, .hg *::before, .hg *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* ---------- Brand colour spectrum picker ---------- */
.hg__picker { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; height: 150px; }
.hg__gray, .hg__spectrum {
  position: relative; border-radius: 12px; cursor: crosshair; touch-action: none; outline: none;
  border: 1px solid var(--hg-line); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.hg__gray { background: linear-gradient(#fff, #000); cursor: ns-resize; }
.hg__spectrum {
  background:
    linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0) 50%, #000 100%),
    linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.hg__gray:focus-visible, .hg__spectrum:focus-visible { box-shadow: 0 0 0 3px rgba(240, 55, 91, 0.5); }
/* The marker shows where the colour was picked */
.hg__gray i, .hg__spectrum i {
  position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 3px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
.hg__gray i { left: 50%; }
.hg__gray.has-pick i, .hg__spectrum.has-pick i { opacity: 1; }
.hg__picked { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.hg__auto {
  height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--hg-line);
  background: rgba(255, 255, 255, 0.05); color: var(--hg-muted); font: 700 0.82rem var(--hg-font); transition: color 0.25s, box-shadow 0.25s;
}
.hg__auto.is-on { color: var(--hg-text); box-shadow: 0 0 0 1px #fff; }
.hg__auto:focus-visible { outline: 2px solid var(--hg-brand); outline-offset: 3px; }
.hg__chosen { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hg-line); font: 700 0.82rem var(--hg-font); color: var(--hg-muted); letter-spacing: 0.04em; }
.hg__chosen-dot { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); box-shadow: 0 0 0 2px var(--hg-bg), 0 0 0 3px rgba(255, 255, 255, 0.4); }
