/* Site theme layer (#d61f69). Loaded after /css/app.css on every page (index links it;
   other HTML pages get it injected by the theme middleware in src/app.js). The violet →
   pink remap of app.css itself lives in src/lib/theme-pink.js. */

/* Header links only for signed-in users (mirror of .nav-guest-only in tailwind-input.css). */
body:not(.is-logged-in) .nav-auth-only {
  display: none !important;
}

/* Secondary social sign-in (GitHub / X / Discord) — compact brand-colored row under the
   full-width Google button. Plain CSS because app.css is prebuilt; :not(.hidden) keeps
   Tailwind's .hidden working until main.js reveals an enabled provider. */
.social-alt-btn:not(.hidden) {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: filter .15s ease;
}
.social-alt-btn:hover { filter: brightness(1.15); }
.social-alt-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
#loginGithubBtn, #registerGithubBtn { background: #24292f; }
#loginXBtn, #registerXBtn { background: #000; }
#loginDiscordBtn, #registerDiscordBtn { background: #5865f2; }
.dark #loginGithubBtn, .dark #registerGithubBtn,
.dark #loginXBtn, .dark #registerXBtn { border-color: #475569; }

:root {
  --st-brand: #d61f69;
  --st-brand-2: #e8458a;
  --st-brand-deep: #9d174d;
  --st-grad: linear-gradient(135deg, #d61f69 0%, #e8458a 45%, #9d174d 100%);
  --st-glow: rgba(214, 31, 105, .45);
  --st-ring: rgba(214, 31, 105, .2);
  --st-soft: #fdf2f7;
  --st-surface: #ffffff;
  --st-surface-2: #f8fafc;
  --st-border: #e2e8f0;
  --st-text: #0f172a;
  --st-muted: #475569;
  --st-subtle: #94a3b8;
  --st-tile-a: #fce7f1;
  --st-tile-a-ink: #be185d;
  --st-tile-b: #9d174d;
  --st-tile-b-ink: #fce7f1;
  --st-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -16px rgba(15, 23, 42, .18);
}
html.dark {
  --st-brand-2: #ec4b8b;
  --st-ring: rgba(236, 75, 139, .3);
  --st-soft: rgba(214, 31, 105, .14);
  --st-surface: #0b1020;
  --st-surface-2: #0f172a;
  --st-border: #1e293b;
  --st-text: #f8fafc;
  --st-muted: #cbd5e1;
  --st-subtle: #64748b;
  --st-tile-a: #500724;
  --st-tile-a-ink: #f9a8cb;
  --st-tile-b: #831843;
  --st-tile-b-ink: #fce7f1;
  --st-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -18px rgba(0, 0, 0, .8);
}

/* ═══ Global (all pages) ═══════════════════════════════════════ */
html { scrollbar-color: var(--st-brand) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #e8458a, #9d174d); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #d61f69; background-clip: padding-box; }
::selection { background: rgba(214, 31, 105, .2); }

#navRegisterBtn, #navRegisterBtnMobile, .btn-register-outline, #navLoginBtn, .btn-nav-login { border-radius: 4px !important; }

#backToTop, #backToTopBtn { background: var(--st-grad) !important; border: 0 !important; color: #fff !important; box-shadow: 0 10px 24px -10px var(--st-glow) !important; }
#backToTop svg path, #backToTopBtn svg path { stroke: #fff !important; }

.library-job-card { border-radius: 14px !important; transition: border-color .15s ease, box-shadow .15s ease; }
.library-job-card:hover { border-color: rgba(214, 31, 105, .45) !important; box-shadow: 0 14px 30px -20px var(--st-glow); }
.library-job-card:not(.job-card-failed) { border-top: 3px solid var(--st-brand) !important; }

/* "Scrollify.io" logo: .io scrolls up out of the wordmark, through the logo's screen, and
   back. Transform + opacity only (compositor), one shared duration keeps both in sync. */
.site-logo .logo-mark { box-shadow: 0 4px 12px -4px var(--st-glow), 0 0 0 2px var(--st-ring); }
.logo-word { display: inline-flex; align-items: baseline; font-size: 1.1rem; letter-spacing: -0.03em; }
.logo-tld-clip { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25em; vertical-align: bottom; }
.logo-tld { display: inline-block; color: var(--st-brand); will-change: transform, opacity; animation: stTldWord 8s cubic-bezier(.65, 0, .35, 1) 1.2s infinite both; }
.logo-mark .logo-tld-svg { transform-box: view-box; will-change: transform, opacity; animation: stTldMark 8s cubic-bezier(.65, 0, .35, 1) 1.2s infinite both; }
.logo-mark .logo-lines { animation: stTldLines 8s ease 1.2s infinite both; }
@keyframes stTldWord {
  0%, 52% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(-110%); opacity: 0; }
  60.01%, 80% { transform: translateY(110%); opacity: 0; }
  88%, 100% { transform: translateY(0); opacity: 1; }
}
@keyframes stTldMark {
  0%, 54% { transform: translateY(12px); opacity: 0; }
  62%, 76% { transform: translateY(0); opacity: 1; }
  84%, 100% { transform: translateY(-12px); opacity: 0; }
}
@keyframes stTldLines { 0%, 54% { opacity: 1; } 60%, 78% { opacity: 0; } 86%, 100% { opacity: 1; } }

.btn2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; background: var(--st-grad); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; box-shadow: 0 10px 22px -12px var(--st-glow); transition: filter .15s; }
.btn2:hover { filter: brightness(1.08); }
.kicker2 { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--st-brand); }
.sec2-head { max-width: 640px; margin-bottom: 32px; text-align: left; }
.sec2-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec2-head h2 { margin: 8px 0 0; font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--st-text); }
.sec2-head p { margin: 10px 0 0; color: var(--st-muted); }

/* ═══ Homepage: hero ═══════════════════════════════════════════ */
#generationHub { max-width: 1240px !important; text-align: left; padding-top: 0 !important; }
.native-gen-menu, .native-export { display: none !important; }

.home-main { padding-top: 12px !important; }
@media (min-width: 768px) { .home-main { padding-top: 16px !important; } }
.hero2 { display: grid; gap: 48px; align-items: center; padding: 8px 0 48px; }
@media (min-width: 1000px) { .hero2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; padding: 12px 0 72px; } }
.hero2 #heroTitle { margin: 0; max-width: 580px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.16; letter-spacing: -0.035em; font-weight: 800; color: var(--st-text); text-wrap: balance; }
body.is-logged-in .hero2 #heroTitle { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.18; }
.hero2-hl { position: relative; z-index: 0; color: var(--st-brand); }
.hero2-hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .04em; height: .12em; border-radius: 999px; background: var(--st-grad); opacity: .3; z-index: -1; }
.hero2-sub { margin: 22px 0 0; max-width: 520px; font-size: 1.075rem; line-height: 1.7; color: var(--st-muted); }
.hero2-fmts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero2-fmts li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--st-border); background: var(--st-surface); font-size: .78rem; font-weight: 700; color: var(--st-muted); }
.hero2-jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 700; font-size: .92rem; color: var(--st-brand); text-decoration: none; }
.hero2-jump:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero2-devices { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 24px; }
.hero2-laptop { position: relative; flex: 1 1 auto; max-width: 480px; min-width: 0; }
.hero2-laptop-screen { border: 10px solid #111827; border-bottom-width: 14px; border-radius: 14px 14px 0 0; background: #fff; overflow: hidden; aspect-ratio: 16 / 10.4; display: flex; flex-direction: column; }
.hero2-laptop-base { height: 14px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(#d1d5db, #9ca3af); position: relative; }
.hero2-laptop-base::after { content: ''; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #6b7280; }
.hero2-chrome { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.hero2-chrome i { width: 6px; height: 6px; border-radius: 50%; }
.hero2-chrome i:nth-child(1) { background: #f87171; } .hero2-chrome i:nth-child(2) { background: #fbbf24; } .hero2-chrome i:nth-child(3) { background: #34d399; }
.hero2-chrome b { margin-left: 8px; flex: 1; min-width: 0; height: 13px; border-radius: 4px; background: #fff; font-size: 7.5px; font-weight: 500; color: #94a3b8; padding: 0 6px; line-height: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero2-screen { position: relative; flex: 1; overflow: hidden; background: #fff; }
.hero2-phone { position: relative; flex: 0 0 auto; width: 30%; max-width: 168px; }
.hero2-phone-screen { border: 7px solid #111827; border-radius: 22px; aspect-ratio: 9 / 16; }
.hero2-tag { position: absolute; top: -24px; left: 0; z-index: 2; padding: 2px 8px; border-radius: 4px; background: var(--st-soft); color: var(--st-brand); font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
/* Slight theme-colour bar between the MP4 laptop and the GIF phone. */
.hero2-split { flex: none; align-self: stretch; display: flex; align-items: center; }
.hero2-split span { display: block; width: 3px; height: 55%; border-radius: 999px; background: linear-gradient(180deg, transparent, var(--st-brand) 20%, var(--st-brand-2) 80%, transparent); box-shadow: 0 0 12px var(--st-glow); }
.hero2-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .6s ease; background: #fff; }
.hero2-media.is-on { opacity: 1; }
.hero2-phone-screen { overflow: hidden; }
.hero2-phone-screen .hero2-media { border-radius: 15px; }
.hero2-phone-screen .hero2-media.is-wide { object-fit: contain; object-position: center; background: radial-gradient(120% 60% at 50% 50%, #1f2937, #0b0f19); }
.hero2-mock { position: absolute; inset: 0; overflow: hidden; }
.hero2-mock-scroll { height: 160%; display: flex; flex-direction: column; gap: 4%; padding: 6%; animation: stMock 8s ease-in-out infinite alternate; }
@keyframes stMock { 0%, 15% { transform: translateY(0); } 85%, 100% { transform: translateY(-35%); } }
.hero2-ph { flex: none; height: 14%; border-radius: 5px; background: #f1f5f9; }
.hero2-ph-brand { background: var(--st-grad); opacity: .85; }
.hero2-ph-row { flex: none; height: 16%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; }
.hero2-ph-row .hero2-ph { height: 100%; }
/* Content-change seam: a thin theme-colour bar sweeps the screen when the media swaps. */
.hero2-seam { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 3px; background: var(--st-grad); box-shadow: 0 0 10px var(--st-glow); transform: translateY(-6px); opacity: 0; pointer-events: none; }
.hero2-seam.is-run { animation: stSeam .9s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes stSeam { 0% { transform: translateY(-6px); opacity: 1; } 100% { transform: translateY(var(--seam-h, 300px)); opacity: 1; } }
@media (max-width: 560px) { .hero2-devices { gap: 10px; } .hero2-split { display: none; } }

/* ═══ Homepage: tool rail + studio ═════════════════════════════ */
.rail-wrap { max-width: 1100px; margin: 0 auto; scroll-margin-top: 96px; }
.rail-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--st-subtle); text-align: center; }
.rail { position: relative; margin-top: 10px; display: flex; gap: 4px; padding: 12px 6px; border-radius: 14px; background: var(--st-surface-2); border: 1px solid var(--st-border); overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail::before, .rail::after { content: ''; position: absolute; left: 10px; right: 10px; height: 4px; pointer-events: none; background: radial-gradient(circle, var(--st-border) 1.6px, transparent 2px) 0 0 / 12px 4px repeat-x; }
.rail::before { top: 4px; } .rail::after { bottom: 4px; }
.rail-ind { position: absolute; top: 12px; bottom: 12px; left: 0; width: 0; border-radius: 10px; background: var(--st-grad); box-shadow: 0 8px 18px -8px var(--st-glow); transition: transform .35s cubic-bezier(.65, 0, .35, 1), width .35s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.rail-btn { position: relative; z-index: 1; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--st-muted); font: inherit; font-size: .8rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .2s; }
.rail-btn small { font-size: .62rem; font-weight: 700; letter-spacing: .1em; opacity: .6; font-variant-numeric: tabular-nums; }
.rail-btn svg { width: 18px; height: 18px; }
.rail-btn:hover { color: var(--st-text); }
.rail-btn[aria-selected="true"] { color: #fff; }
.rail-btn:focus-visible { outline: 2px solid var(--st-brand-2); outline-offset: 2px; }

#genSlideFrame { margin-top: 18px !important; padding: 24px 16px; border-radius: 22px; border: 1px solid var(--st-border); background: var(--st-surface); box-shadow: var(--st-shadow); }
@media (min-width: 640px) { #genSlideFrame { padding: 36px 32px; } }

/* URL bar with the Export button attached — heavy outline, offset gradient shadow. */
.urlbar { position: relative; margin-right: 8px; margin-bottom: 8px; }
.urlbar::before { content: ''; position: absolute; inset: 0; transform: translate(8px, 8px); border-radius: 16px; background: var(--st-grad); opacity: .35; }
.urlbar-inner { position: relative; display: flex; align-items: stretch; border: 2px solid var(--st-text); border-radius: 16px; background: var(--st-surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.urlbar-inner:focus-within { border-color: var(--st-brand); box-shadow: 0 0 0 4px var(--st-ring); }
.urlbar-ic { display: grid; place-items: center; padding-left: 16px; color: var(--st-muted); }
.urlbar-input { flex: 1; min-width: 0; height: 58px; padding: 0 12px; border: 0; outline: none; background: transparent; color: var(--st-text); font: inherit; font-size: 16px; }
.urlbar-input::placeholder { color: var(--st-subtle); }
.urlbar-go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; border: 0; background: var(--st-grad); color: #fff; font: inherit; font-weight: 800; letter-spacing: .04em; cursor: pointer; transition: filter .15s; }
.urlbar-go:hover { filter: brightness(1.08); }
.urlbar-go:disabled { cursor: progress; filter: saturate(.6) brightness(.95); }
@media (max-width: 440px) { .urlbar-go { padding: 0 16px; } .urlbar-go-label { display: none; } }

/* ═══ Homepage: Our Tools bento ════════════════════════════════ */
.tools2 { max-width: 1240px; margin: 96px auto 0; padding: 0 4px; text-align: left; }
.bento { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .bento { grid-template-columns: minmax(0, 1fr); } }
.tool2 { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 20px; border-radius: 6px; background: var(--st-tile-a); color: var(--st-tile-a-ink); text-decoration: none; transition: transform .2s ease;
  -webkit-mask: radial-gradient(circle 4px at 6px 0, transparent 98%, #000) -6px 0 / 12px 100% repeat-x;
          mask: radial-gradient(circle 4px at 6px 0, transparent 98%, #000) -6px 0 / 12px 100% repeat-x; }
.tool2:nth-child(3n + 2) { background: var(--st-tile-b); color: var(--st-tile-b-ink); }
.tool2::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.tool2:hover::after { transform: translateX(120%); }
.tool2:hover { transform: translateY(-4px); }
/* The stamp mask clips anything outside the box, so rings/focus are drawn inset. */
.tool2:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--st-brand-2); }
.tool2.is-active { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--st-brand); }
.tool2-no { position: absolute; right: 14px; top: 8px; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; opacity: .16; }
.tool2-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .55); }
.tool2:nth-child(3n + 2) .tool2-ic, html.dark .tool2-ic { background: rgba(255, 255, 255, .1); }
.tool2-ic svg { width: 24px; height: 24px; transition: transform .2s ease; }
.tool2:hover .tool2-ic svg { transform: scale(1.1) rotate(-4deg); }
.tool2 h3 { margin: 6px 0 0; font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.tool2 p { margin: 0; font-size: .86rem; line-height: 1.55; opacity: .85; }
.tags2 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tags2 i { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; opacity: .75; }
.tool2-go { font-size: .85rem; font-weight: 700; }
@media (min-width: 760px) {
  .tool2--hero { grid-column: span 2; grid-row: span 2; padding: 32px 28px; background: var(--st-grad) !important; color: #fff !important; }
  .tool2--hero h3 { font-size: 1.6rem; }
  .tool2--hero p { font-size: 1rem; max-width: 420px; }
  .tool2--hero .tool2-ic { width: 56px; height: 56px; background: rgba(255, 255, 255, .16); }
  .tool2--hero .tool2-no { font-size: 5rem; }
  .tool2--wide { grid-column: span 2; }
}

/* ═══ Homepage: How it works — film reel ═══════════════════════ */
.hiw2 { max-width: 1240px; margin: 112px auto 0; padding: 0 4px; }
.reel { position: relative; padding: 28px 0 0; }
.reel-track { display: none; }
@media (min-width: 900px) {
  /* The strip: perforations top and bottom, a playhead that slides one frame at a time. */
  .reel-track { display: block; position: absolute; left: 0; right: 0; top: 0; height: 14px; border-radius: 4px; background: var(--st-surface-2); border: 1px solid var(--st-border); overflow: hidden; }
  .reel-track::before { content: ''; position: absolute; inset: 3px 8px; background: radial-gradient(circle, var(--st-border) 2px, transparent 2.5px) 0 50% / 16px 8px repeat-x; }
  .reel-playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 25%; background: var(--st-grad); box-shadow: 0 0 14px var(--st-glow); transform: translateX(calc(var(--step, 0) * 100%)); transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
}
.reel-frames { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: none; }
@media (min-width: 600px) { .reel-frames { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .reel-frames { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; } }
.reel-frame { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 18px 22px; border: 1px solid var(--st-border); border-radius: 14px; background: var(--st-surface); color: var(--st-text); font: inherit; text-align: left; cursor: pointer; transition: border-color .25s, transform .25s, box-shadow .25s; }
.reel-frame:hover { transform: translateY(-3px); }
.reel-frame.is-on { border-color: var(--st-brand); box-shadow: 0 18px 40px -24px var(--st-glow); }
.reel-frame:focus-visible { outline: 2px solid var(--st-brand-2); outline-offset: 3px; }
.reel-no { font-size: .7rem; font-weight: 800; letter-spacing: .14em; color: var(--st-subtle); font-variant-numeric: tabular-nums; }
.reel-frame.is-on .reel-no { color: var(--st-brand); }
.reel-frame strong { margin-top: 6px; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.reel-sub { font-size: .85rem; color: var(--st-muted); }

/* Frame art — small looping illustrations, transform/opacity only. */
.reel-art { position: relative; display: block; width: 100%; height: 92px; border-radius: 10px; overflow: hidden; background: var(--st-surface-2); border: 1px solid var(--st-border); }
.reel-frame.is-on .reel-art { background: var(--st-soft); border-color: transparent; }
.reel-art--paste .ra-bar { position: absolute; left: 12px; right: 12px; top: 50%; height: 30px; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; padding: 0 8px; border: 2px solid var(--st-text); border-radius: 8px; background: var(--st-surface); overflow: hidden; }
.ra-bar i { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid var(--st-muted); }
.ra-bar b { font-size: .72rem; font-weight: 600; color: var(--st-text); white-space: nowrap; }
.ra-bar em { position: absolute; top: 0; bottom: 0; right: 0; width: 28px; background: var(--st-grad); }
.reel-frame.is-on .ra-bar b { animation: raType 2.4s steps(12) infinite; }
@keyframes raType { 0% { clip-path: inset(0 100% 0 0); } 60%, 100% { clip-path: inset(0 0 0 0); } }
.reel-art--preset { display: grid; align-content: center; gap: 12px; padding: 0 16px; }
.reel-art--preset i { position: relative; display: block; height: 3px; border-radius: 3px; background: var(--st-border); }
.reel-art--preset i::after { content: ''; position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--st-brand); box-shadow: 0 0 0 3px var(--st-surface); }
.reel-frame.is-on .reel-art--preset i::after { animation: raSlide 2.6s ease-in-out infinite alternate; }
.reel-art--preset i:nth-child(2)::after { animation-delay: -.8s !important; }
.reel-art--preset i:nth-child(3)::after { animation-delay: -1.6s !important; }
@keyframes raSlide { from { transform: translateX(0); } to { transform: translateX(120px); } }
.reel-art--scroll .ra-page { position: absolute; left: 50%; top: 10px; width: 60%; transform: translateX(-50%); display: grid; gap: 6px; }
.ra-page i { display: block; height: 14px; border-radius: 4px; background: var(--st-border); }
.ra-page i:nth-child(1), .ra-page i:nth-child(4) { height: 24px; background: var(--st-grad); opacity: .75; }
.reel-frame.is-on .ra-page { animation: raScroll 3s ease-in-out infinite alternate; }
@keyframes raScroll { from { transform: translate(-50%, 0); } to { transform: translate(-50%, -48px); } }
.reel-art--files { display: flex; align-items: center; justify-content: center; gap: 8px; }
.reel-art--files i { font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 8px 10px; border-radius: 8px; background: var(--st-surface); border: 1px solid var(--st-border); color: var(--st-brand); }
.reel-frame.is-on .reel-art--files i { animation: raPop 2.4s ease-in-out infinite; }
.reel-art--files i:nth-child(2) { animation-delay: .2s !important; }
.reel-art--files i:nth-child(3) { animation-delay: .4s !important; }
@keyframes raPop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }
.reel.is-paused * { animation-play-state: paused !important; }

.reel-readout { margin: 22px auto 0; max-width: 640px; padding: 16px 22px; border-radius: 14px; border-left: 4px solid var(--st-brand); background: var(--st-soft); }
.reel-readout-title { margin: 0; font-weight: 800; color: var(--st-text); }
.reel-readout-desc { margin: 4px 0 0; font-size: .9rem; line-height: 1.6; color: var(--st-muted); }
.hiw2-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.hiw2-cta span { font-size: .82rem; color: var(--st-subtle); }

/* ═══ Big CTA ═══════════════════════════════════════════════════ */
.cta2-wrap { max-width: 1240px; margin: 96px auto; padding: 0 16px; }
.cta2 { border-radius: 24px; padding: 56px 24px; text-align: center; color: #fff; background: linear-gradient(135deg, #d61f69 0%, #9d174d 100%); box-shadow: 0 24px 50px -24px rgba(214, 31, 105, .6); }
.cta2 h2 { margin: 0; font-size: clamp(1.6rem, 3.8vw, 2.4rem); letter-spacing: -0.03em; font-weight: 800; }
.cta2 p { margin: 12px auto 0; max-width: 520px; color: rgba(255, 255, 255, .85); }
.cta2-btn { display: inline-flex; align-items: center; height: 48px; margin-top: 26px; padding: 0 24px; border-radius: 12px; background: #fff; color: #9d174d; font-weight: 700; text-decoration: none; }
.cta2-btn:hover { background: #fdf2f7; }

/* Notification bell — soft tint instead of a heavy slate disc. */
#notifBtn, #notifBtnMobile {
  background: var(--st-soft);
  color: var(--st-brand);
  border: 1px solid rgba(214, 31, 105, .18);
}
#notifBtn:hover, #notifBtnMobile:hover, #notifBtn[aria-expanded="true"], #notifBtnMobile[aria-expanded="true"] {
  background: var(--st-tile-a);
  color: var(--st-brand-deep);
}
html.dark #notifBtn, html.dark #notifBtnMobile {
  background: rgba(214, 31, 105, .12);
  color: #f9a8cb;
  border-color: rgba(236, 75, 139, .25);
}
html.dark #notifBtn:hover, html.dark #notifBtnMobile:hover { background: rgba(214, 31, 105, .22); color: #fce7f1; }

@media (prefers-reduced-motion: reduce) {
  .logo-tld, .logo-mark .logo-tld-svg, .logo-mark .logo-lines, .hero2-mock-scroll, .reel * { animation: none !important; }
  .logo-mark .logo-tld-svg { opacity: 0; }
  .rail-ind, .tool2, .tool2::after, .hero2-media, .reel-playhead, .reel-frame { transition: none; }
}
