<?php
/**
 * Template Name: Blank Canvas
 * Design: Shyn Media dark design system v2 — matches preview.html
 */
if ( ! defined( 'ABSPATH' ) ) exit;

if ( ! defined( 'DONOTCACHEPAGE' ) ) define( 'DONOTCACHEPAGE', true );
if ( ! defined( 'DONOTMINIFY' ) )    define( 'DONOTMINIFY',    true );

// Dequeue ALL WordPress/theme stylesheets — pages carry their own design
add_action( 'wp_enqueue_scripts', function() {
    global $wp_styles;
    foreach ( array_keys( $wp_styles->registered ) as $handle ) {
        wp_dequeue_style( $handle );
    }
}, 9999 );

// Dequeue ALL scripts except lazy-loading
add_action( 'wp_enqueue_scripts', function() {
    global $wp_scripts;
    $keep = [ 'lazysizes', 'autoptimize-lazysizes' ];
    foreach ( array_keys( $wp_scripts->registered ) as $handle ) {
        if ( ! in_array( $handle, $keep, true ) ) wp_dequeue_script( $handle );
    }
}, 9999 );

add_filter( 'style_loader_tag', function( $tag, $handle ) {
    if ( in_array( $handle, ['shynmedia-fonts','shynmedia-fonts-css'], true ) ) return '';
    return $tag;
}, 10, 2 );
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php wp_head(); ?>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
/* ═══════════════════════════════════════════ DESIGN TOKENS (matches preview.html) */
:root{
  --color-bg:#07090F;--color-surface:#0D1220;--color-surface-2:#131929;
  --color-surface-3:#192135;--color-border:#1A2438;--color-border-subtle:#0F1826;
  --color-text:#EDF2FF;--color-text-muted:#6B7FA3;--color-text-subtle:#3D4F70;
  --color-accent:#3B82F6;--color-accent-dim:rgba(59,130,246,0.12);
  --color-accent-glow:rgba(59,130,246,0.25);--color-accent-hover:#2563EB;
  --color-cta:#F97316;--color-cta-hover:#EA580C;--color-cta-glow:rgba(249,115,22,0.25);
  --color-success:#10B981;--color-danger:#EF4444;
  --font-sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --text-xs:.75rem;--text-sm:.875rem;--text-base:1.0625rem;--text-lg:1.125rem;
  --text-xl:1.25rem;--text-2xl:1.5rem;--text-3xl:1.875rem;
  --radius-sm:4px;--radius-md:8px;--radius-lg:12px;--radius-xl:16px;
  --radius-2xl:24px;--radius-full:9999px;
  --shadow-md:0 4px 16px rgba(0,0,0,.5);--shadow-lg:0 8px 32px rgba(0,0,0,.6);
  --transition-base:200ms ease;--transition-slow:300ms ease;
  --container-max:860px;--gutter:24px;
}

/* ═══════════════════════════════════════════ BASE */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:var(--font-sans);font-size:var(--text-base);line-height:1.75;
  color:var(--color-text);background:var(--color-bg);-webkit-font-smoothing:antialiased;
  overflow-x:hidden}
img,svg{max-width:100%;display:block}
a{color:var(--color-accent);text-decoration:none;transition:color var(--transition-base)}
a:hover{color:var(--color-accent-hover)}
ul,ol{list-style:none;margin:0;padding:0}
h1,h2,h3,h4{font-family:var(--font-sans);line-height:1.15;font-weight:700;
  color:var(--color-text);letter-spacing:-.02em}
h1{font-size:clamp(2rem,4.5vw,3rem);font-weight:800;letter-spacing:-.03em}
h2{font-size:clamp(1.5rem,3vw,2rem);margin-bottom:1rem}
h3{font-size:clamp(1.125rem,2vw,1.375rem);margin-bottom:.75rem}
p{margin-bottom:1rem;color:var(--color-text-muted);line-height:1.8}
p:last-child{margin-bottom:0}
p a{color:var(--color-accent);font-weight:500}
p a:hover{color:var(--color-accent-hover);text-decoration:underline}
strong{font-weight:700;color:var(--color-text)}
li{color:var(--color-text-muted);line-height:1.7}

/* ═══════════════════════════════════════════ LAYOUT */
.container{width:100%;max-width:var(--container-max);margin:0 auto;padding:0 var(--gutter)}
.section{padding:4rem 0}
.section--surface{background:var(--color-surface)}
.section--surface-2{background:var(--color-surface-2)}
.section-divider{height:1px;background:linear-gradient(90deg,transparent,var(--color-border),transparent);border:none;margin:0}

/* ═══════════════════════════════════════════ EYEBROW / SECTION-LABEL */
.eyebrow,.section-label{display:inline-block;font-size:var(--text-xs);font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;color:var(--color-accent);margin-bottom:.75rem}

/* ═══════════════════════════════════════════ BUTTONS */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:14px 28px;
  font-size:var(--text-base);font-weight:600;border-radius:var(--radius-md);
  transition:all var(--transition-base);white-space:nowrap;line-height:1;
  text-decoration:none;cursor:pointer;border:none}
.btn--primary{background:var(--color-cta);color:#fff;border:2px solid var(--color-cta)}
.btn--primary:hover{background:var(--color-cta-hover);border-color:var(--color-cta-hover);
  color:#fff;box-shadow:0 0 24px var(--color-cta-glow);transform:translateY(-1px)}
.btn--secondary{background:transparent;color:var(--color-accent);border:2px solid var(--color-accent)}
.btn--secondary:hover{background:var(--color-accent-dim);color:var(--color-accent);
  box-shadow:0 0 16px var(--color-accent-glow);transform:translateY(-1px)}
.btn--sm{padding:10px 20px;font-size:var(--text-sm)}
.btn--lg{padding:18px 36px;font-size:var(--text-lg)}

/* ═══════════════════════════════════════════ SITE HEADER */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(7,9,15,.92);
  backdrop-filter:blur(16px);border-bottom:1px solid var(--color-border-subtle)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;
  height:68px;max-width:1200px;margin:0 auto;padding:0 var(--gutter)}
.site-logo img{display:block;height:40px;width:auto}
.nav-menu{display:flex;align-items:center;gap:.25rem}
.nav-link{padding:.5rem .75rem;font-size:var(--text-sm);font-weight:500;
  color:var(--color-text-muted);border-radius:var(--radius-md);
  transition:all var(--transition-base);text-decoration:none}
.nav-link:hover{color:var(--color-text);background:rgba(255,255,255,.05)}
.nav-cta{margin-left:1rem}

/* ═══════════════════════════════════════════ PAGE HERO */
.page-hero{position:relative;padding:6rem 0 4rem;background:var(--color-bg);overflow:hidden}
.page-hero__grid{position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:48px 48px;pointer-events:none;
  mask-image:radial-gradient(ellipse at center,black 40%,transparent 80%)}
.page-hero__mesh{position:absolute;top:0;right:0;width:60%;height:100%;
  background:radial-gradient(ellipse at 70% 30%,rgba(59,130,246,.08) 0%,transparent 60%),
    radial-gradient(ellipse at 90% 70%,rgba(249,115,22,.04) 0%,transparent 50%);
  pointer-events:none}
.page-hero__eyebrow{display:inline-flex;align-items:center;gap:.5rem;
  background:var(--color-accent-dim);border:1px solid var(--color-accent-glow);
  border-radius:var(--radius-full);padding:.25rem 1rem;
  font-size:var(--text-xs);font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:var(--color-accent);margin-bottom:1.5rem}
.page-hero__content{position:relative;z-index:1}
.page-hero h1{margin-bottom:1.25rem}
.page-hero__subhead{font-size:var(--text-xl);line-height:1.65;color:var(--color-text-muted);
  max-width:680px;margin-bottom:1.5rem}
.page-hero__intro{font-size:var(--text-base);color:var(--color-text-muted);
  max-width:720px;line-height:1.85;margin-bottom:0}

/* ═══════════════════════════════════════════ TRUST BLOCK */
.trust-block{background:var(--color-surface-2);border:1px solid var(--color-border);
  border-left:4px solid var(--color-accent);border-radius:var(--radius-lg);
  padding:1.25rem 1.5rem;margin:2.5rem 0;font-size:var(--text-sm);
  line-height:1.75;color:var(--color-text-muted)}
.trust-block strong{color:var(--color-text)}

/* ═══════════════════════════════════════════ VERDICT BLOCK */
.verdict-block{background:var(--color-surface);border:1px solid rgba(16,185,129,.3);
  border-left:4px solid var(--color-success);border-radius:var(--radius-lg);
  padding:1.75rem 2rem;margin:2rem 0}
.verdict-block .eyebrow{color:var(--color-success);margin-bottom:.5rem}
.verdict-block h2{color:var(--color-text);font-size:var(--text-xl);margin-bottom:.75rem}
.verdict-block p{color:var(--color-text-muted);font-size:var(--text-base);
  line-height:1.8;margin-bottom:0}

/* ═══════════════════════════════════════════ CONTENT SECTIONS */
.content-section{padding:0}
.content-section .eyebrow{margin-bottom:.5rem}
.content-section h2{border-bottom:1px solid var(--color-border);padding-bottom:.75rem;
  margin-bottom:1.5rem;margin-top:0}
.content-section h3{color:var(--color-text);margin-top:2rem;margin-bottom:.75rem}
.content-section h3:first-of-type{margin-top:0}

/* ═══════════════════════════════════════════ HIGHLIGHT / CALLOUT */
.highlight-block{display:flex;gap:1rem;align-items:flex-start;
  padding:1.25rem 1.5rem;border-radius:var(--radius-lg);margin:1.75rem 0;border:1px solid}
.highlight-block.hl-green{background:rgba(16,185,129,.08);border-color:rgba(16,185,129,.3)}
.highlight-block.hl-red{background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.3)}
.hl-icon{font-size:1.4rem;flex-shrink:0;line-height:1;margin-top:2px}
.hl-body{flex:1}
.hl-label{display:block;font-size:var(--text-xs);font-weight:700;text-transform:uppercase;
  letter-spacing:.1em;margin-bottom:.4rem}
.hl-green .hl-label{color:var(--color-success)}
.hl-red   .hl-label{color:var(--color-danger)}
.hl-text{font-size:var(--text-sm);line-height:1.75;margin:0}
.hl-green .hl-text{color:rgba(167,243,208,1)}
.hl-red   .hl-text{color:rgba(252,165,165,1)}
.hl-text strong{font-weight:700;color:inherit}

/* ═══════════════════════════════════════════ PROS / CONS */
.pros-cons-wrap{margin:0}
.pros-cons-wrap .eyebrow{margin-bottom:.5rem}
.pros-cons-wrap h2{margin-bottom:1.5rem}
.pros-cons-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.pros-box,.cons-box{background:var(--color-surface);border:1px solid var(--color-border);
  border-radius:var(--radius-xl);padding:1.5rem;border-top-width:3px}
.pros-box{border-top-color:var(--color-success)}
.cons-box{border-top-color:var(--color-danger)}
.box-heading{font-size:var(--text-xs);font-weight:700;margin-bottom:1rem;margin-top:0;
  text-transform:uppercase;letter-spacing:.06em;border:none!important;padding:0!important}
.pros-box .box-heading{color:var(--color-success)}
.cons-box .box-heading{color:var(--color-danger)}
.pros-box ul,.cons-box ul{display:flex;flex-direction:column;gap:.6rem}
.pros-box li,.cons-box li{font-size:var(--text-sm);line-height:1.65;
  padding-left:1.25rem;position:relative;color:var(--color-text-muted)}
.pros-box li::before{content:'✓';position:absolute;left:0;font-weight:700;color:var(--color-success)}
.cons-box li::before{content:'✗';position:absolute;left:0;font-weight:700;color:var(--color-danger)}

/* ═══════════════════════════════════════════ FIT BLOCKS */
.fit-wrap{margin:0}
.fit-wrap .eyebrow{margin-bottom:.5rem}
.fit-wrap h2{margin-bottom:1.25rem}
.fit-matrix{display:flex;flex-direction:column;gap:.75rem;margin-bottom:2rem}
.fit-item{background:var(--color-surface);border:1px solid var(--color-border);
  border-left:4px solid var(--color-success);border-radius:var(--radius-lg);
  padding:1rem 1.25rem;font-size:var(--text-sm);line-height:1.7;color:var(--color-text-muted)}
.fit-item.not-fit{border-left-color:var(--color-danger)}
.fit-item strong{color:var(--color-text);font-weight:600;display:block;margin-bottom:.25rem}

/* ═══════════════════════════════════════════ COMPARISON TABLES */
.comp-table-wrap{margin:0;border-radius:var(--radius-xl);
  border:1px solid var(--color-border);overflow:auto;box-shadow:var(--shadow-md)}
.comp-table{width:100%;border-collapse:collapse;font-size:var(--text-sm)}
.comp-table thead th{background:var(--color-surface-3);color:var(--color-text);
  padding:.875rem 1rem;text-align:left;font-weight:700;font-size:var(--text-xs);
  text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;
  border-bottom:1px solid var(--color-border)}
.comp-table thead th:first-child{min-width:150px}
.comp-table td{padding:.875rem 1rem;border-bottom:1px solid var(--color-border-subtle);
  vertical-align:top;line-height:1.6;color:var(--color-text-muted)}
.comp-table td:first-child{font-weight:600;color:var(--color-text)}
.comp-table tbody tr:last-child td{border-bottom:none}
.comp-table tbody tr:hover td{background:var(--color-surface-2)}
.comp-table tr:nth-child(even) td{background:rgba(255,255,255,.02)}
.comp-table .winner-row td{background:rgba(16,185,129,.07)!important;
  border-top:1px solid rgba(16,185,129,.25);border-bottom:1px solid rgba(16,185,129,.25)}
.comp-table .winner-row td:first-child{border-left:3px solid var(--color-success);padding-left:.8125rem}
.comp-table .winner{color:var(--color-success);font-weight:700}
.table-label{margin-top:0;margin-bottom:.5rem}
.table-caption{font-size:var(--text-xl);font-weight:700;margin-bottom:1rem;color:var(--color-text)}

/* ═══════════════════════════════════════════ FAQ */
.faq-section{margin:0}
.faq-section .eyebrow{margin-bottom:.5rem}
.faq-section h2{margin-bottom:1.5rem}
.faq-item{background:var(--color-surface);border:1px solid var(--color-border);
  border-radius:var(--radius-xl);margin-bottom:.625rem;overflow:hidden;
  transition:border-color var(--transition-base)}
.faq-item:hover,.faq-item[open]{border-color:rgba(59,130,246,.4)}
.faq-question{font-weight:600;font-size:var(--text-base);padding:1.125rem 1.5rem;
  background:var(--color-surface);color:var(--color-text);cursor:pointer;
  list-style:none;display:flex;justify-content:space-between;align-items:center;
  gap:1rem;transition:background var(--transition-base);line-height:1.4}
.faq-question::-webkit-details-marker{display:none}
.faq-question::marker{display:none}
.faq-question:hover{background:var(--color-surface-2)}
.faq-question::after{content:'+';display:inline-flex;align-items:center;
  justify-content:center;min-width:28px;height:28px;border-radius:var(--radius-full);
  border:2px solid var(--color-accent);color:var(--color-accent);
  font-size:1.125rem;font-weight:700;flex-shrink:0;transition:all var(--transition-base)}
.faq-item[open] .faq-question{background:rgba(59,130,246,.06);color:var(--color-accent)}
.faq-item[open] .faq-question::after{content:'−';background:var(--color-accent);
  color:#fff;border-color:var(--color-accent)}
.faq-answer{padding:1.125rem 1.5rem 1.25rem;color:var(--color-text-muted);
  line-height:1.8;font-size:var(--text-base);
  border-top:1px solid var(--color-border-subtle);background:var(--color-surface-2)}
.faq-answer p{margin-bottom:0;color:var(--color-text-muted)}

/* ═══════════════════════════════════════════ CTA BLOCKS */
.cta-block{background:linear-gradient(135deg,var(--color-surface) 0%,var(--color-bg) 100%);
  border:1px solid var(--color-border);border-radius:var(--radius-2xl);
  padding:3rem 2.5rem;text-align:center;position:relative;overflow:hidden}
.cta-block::before{content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse at center,rgba(59,130,246,.06) 0%,transparent 60%);
  pointer-events:none}
.cta-block h2{color:var(--color-text);border:none!important;padding:0!important;
  margin-bottom:.75rem;position:relative}
.cta-block p{color:var(--color-text-muted);margin-bottom:1.75rem;
  font-size:var(--text-lg);line-height:1.65;position:relative}
.cta-block .btn{position:relative}
.cta-block--secondary{background:var(--color-surface-2);border-color:var(--color-border-subtle)}
.cta-block--secondary h2{font-size:var(--text-2xl)}

/* ═══════════════════════════════════════════ RELATED LINKS */
.related-links{background:var(--color-surface);border:1px solid var(--color-border);
  border-left:4px solid var(--color-accent);border-radius:var(--radius-xl);
  padding:1.5rem 1.75rem}
.related-links h3{font-size:var(--text-xs);font-weight:700;text-transform:uppercase;
  letter-spacing:.06em;color:var(--color-text-subtle);margin-bottom:1rem;margin-top:0;
  border:none!important;padding:0!important}
.related-links ul{display:flex;flex-direction:column;gap:.5rem}
.related-links li{display:flex;align-items:baseline;gap:.5rem;font-size:var(--text-sm)}
.related-links li::before{content:'→';color:var(--color-cta);font-weight:700;flex-shrink:0}
.related-links a{color:var(--color-text-muted);font-weight:500;
  transition:color var(--transition-base)}
.related-links a:hover{color:var(--color-text)}

/* ═══════════════════════════════════════════ EXPLORE-MORE GRID */
.infinite-loop{}
.infinite-loop h2{font-size:var(--text-sm);font-weight:700;color:var(--color-text-subtle);
  text-transform:uppercase;letter-spacing:.06em;margin-bottom:1.25rem;border:none!important;padding:0!important}
.loop-grid{display:grid;grid-template-columns:1fr 1fr;gap:.875rem}
.loop-item{background:var(--color-surface);border:1px solid var(--color-border);
  border-radius:var(--radius-lg);padding:1rem 1.25rem;
  transition:all var(--transition-slow)}
.loop-item:hover{border-color:var(--color-accent);background:var(--color-surface-2);
  transform:translateY(-2px)}
.loop-item a{color:var(--color-text-muted);font-size:var(--text-sm);font-weight:600;
  display:flex;align-items:center;gap:.5rem;line-height:1.4;text-decoration:none}
.loop-item a::before{content:'↗';color:var(--color-accent);font-size:.75rem;flex-shrink:0}
.loop-item a:hover{color:var(--color-text)}

/* ═══════════════════════════════════════════ FOOTER */
.site-footer{background:var(--color-surface);border-top:1px solid var(--color-border);
  padding-top:4rem;margin-top:0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2.5rem;
  padding-bottom:2.5rem;border-bottom:1px solid var(--color-border-subtle);
  max-width:1200px;margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.footer-brand-logo{height:38px;width:auto;display:block}
.footer-tagline{font-size:var(--text-sm);color:var(--color-text-muted);
  line-height:1.65;max-width:280px;margin-top:.75rem;margin-bottom:0}
.footer-social{display:flex;gap:.75rem;margin-top:.75rem}
.footer-social a{color:var(--color-text-muted);font-size:var(--text-sm);
  font-weight:500;transition:color var(--transition-base);text-decoration:none}
.footer-social a:hover{color:var(--color-accent)}
.footer-col__title{font-size:var(--text-xs);font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;color:var(--color-text-subtle);margin-bottom:1rem;display:block}
.footer-col__links{display:flex;flex-direction:column;gap:.5rem}
.footer-col__link{font-size:var(--text-sm);color:var(--color-text-muted);
  text-decoration:none;transition:color var(--transition-base)}
.footer-col__link:hover{color:var(--color-text)}
.footer-bottom{max-width:1200px;margin:0 auto;padding:1.5rem var(--gutter);
  display:flex;align-items:center;justify-content:space-between;
  font-size:var(--text-xs);color:var(--color-text-subtle);gap:1rem;flex-wrap:wrap}
.footer-bottom a{color:var(--color-text-subtle);text-decoration:none}
.footer-bottom a:hover{color:var(--color-text)}

/* ═══════════════════════════════════════════ SCROLL REVEAL */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .5s ease,transform .5s ease}
.reveal.is-visible{opacity:1;transform:translateY(0)}

/* ═══════════════════════════════════════════ SCROLL-TO-TOP */
.scroll-top{position:fixed;bottom:2rem;right:2rem;width:44px;height:44px;
  background:var(--color-surface-2);border:1px solid var(--color-border);
  border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;
  cursor:pointer;opacity:0;visibility:hidden;transition:all var(--transition-base);
  z-index:500;color:var(--color-text-muted)}
.scroll-top.visible{opacity:1;visibility:visible}
.scroll-top:hover{background:var(--color-surface-3);border-color:var(--color-accent);
  color:var(--color-accent);transform:translateY(-2px)}
.scroll-top svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}

/* ═══════════════════════════════════════════ RESPONSIVE */
@media(max-width:1024px){.footer-grid{grid-template-columns:1fr 1fr;gap:2rem}}
@media(max-width:768px){
  :root{--gutter:20px}
  .nav-menu,.nav-cta{display:none}
  .pros-cons-grid{grid-template-columns:1fr}
  .loop-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .comp-table{font-size:var(--text-xs)}
  .comp-table thead th,.comp-table td{padding:.625rem .75rem}
  .page-hero{padding:4rem 0 2.5rem}
  .cta-block{padding:2rem 1.5rem}
  .section{padding:2.5rem 0}
}
@media(max-width:480px){.footer-grid{grid-template-columns:1fr}}
</style>
</head>
<body <?php body_class(); ?>>
<?php
if ( have_posts() ) {
    the_post();
    global $post;
    // Strip <style> from content — all CSS lives in this template
    $content = $post->post_content;
    $content = preg_replace( '/<style[\s\S]*?<\/style>/i', '', $content );
    echo $content;
}
?>
<script>
(function(){
  var els=document.querySelectorAll('.reveal');
  if('IntersectionObserver' in window){
    var obs=new IntersectionObserver(function(entries){
      entries.forEach(function(e){if(e.isIntersecting){e.target.classList.add('is-visible');obs.unobserve(e.target);}});
    },{threshold:.1,rootMargin:'0px 0px -40px 0px'});
    els.forEach(function(el){obs.observe(el);});
  } else { els.forEach(function(el){el.classList.add('is-visible');}); }

  var hdr=document.getElementById('site-header');
  if(hdr){
    window.addEventListener('scroll',function(){
      hdr.style.background=window.scrollY>80?'rgba(7,9,15,.97)':'rgba(7,9,15,.92)';
    },{passive:true});
  }

  var btn=document.createElement('button');
  btn.className='scroll-top';btn.setAttribute('aria-label','Back to top');
  btn.innerHTML='<svg viewBox="0 0 24 24"><polyline points="18 15 12 9 6 15"/></svg>';
  document.body.appendChild(btn);
  window.addEventListener('scroll',function(){btn.classList.toggle('visible',window.scrollY>600);},{passive:true});
  btn.addEventListener('click',function(){window.scrollTo({top:0,behavior:'smooth'});});
})();
</script>
<?php wp_footer(); ?>
</body>
</html>
