/* ScreenWarden for Roku â€” site styles (shared by all pages) */
@font-face{
  font-family:"Montserrat";font-style:normal;font-weight:400 800;font-display:swap;
  src:url("fonts/montserrat-latin-variable.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Palette = the app's own colours. The brand purple (#662D91) is deliberately kept to small
   details; large areas use the deeper #4A1E6A and the lighter #7D3FAD so the page reads as
   ScreenWarden's own look rather than a lookalike of another company's brand. */
:root{
  --purple:#662D91; --purple-light:#7D3FAD; --purple-dark:#4A1E6A;
  --white:#FFFFFF; --grey:#DCDCDC;
  --bg:#0d0d1a; --surface:#1a1a2e; --line:#2a2a4a;
  --radius:14px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{
  font-family:"Montserrat",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--bg);color:var(--grey);line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit}
.wrap{width:min(1180px,100% - 2.5rem);margin-inline:auto}

.skip{position:absolute;left:-999px;top:0;background:var(--white);color:var(--purple-dark);padding:.7rem 1rem;border-radius:0 0 var(--radius) 0;font-weight:700;z-index:50}
.skip:focus{left:0}

/* Focus ring: light grey, offset from the element */
a:focus-visible,button:focus-visible,summary:focus-visible,.shots:focus-visible{
  outline:3px solid var(--grey);outline-offset:3px;border-radius:var(--radius);
}

/* Top bar */
header{
  position:sticky;top:0;z-index:20;
  background:rgba(13,13,26,.92);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.bar{display:flex;align-items:center;justify-content:space-between;height:68px;gap:1rem}
.brand{display:flex;align-items:center;gap:.7rem;font-weight:800;font-size:1.1rem;color:var(--white);text-decoration:none}
.logo{width:38px;height:38px;border-radius:10px;flex:none}
nav{display:flex;gap:.25rem}
nav a{
  text-decoration:none;font-weight:500;font-size:.95rem;color:var(--grey);
  padding:.5rem 1rem;border-radius:999px;transition:background .15s,color .15s;
}
nav a:hover{background:var(--line);color:var(--white)}

/* Hero */
.hero{
  position:relative;padding:clamp(3.5rem,9vw,7rem) 0 clamp(3rem,7vw,5rem);
  background:
    radial-gradient(ellipse 70% 90% at 85% 0%,var(--purple-dark) 0%,transparent 62%),
    radial-gradient(ellipse 60% 70% at 0% 100%,var(--surface) 0%,transparent 65%),
    var(--bg);
}
.hero-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:3rem;align-items:center}
.badge{
  display:inline-block;background:var(--surface);border:1px solid var(--line);
  color:var(--white);font-size:.85rem;font-weight:500;padding:.35rem .9rem;border-radius:999px;margin-bottom:1.4rem;
}
h1{font-size:clamp(2.2rem,5vw,3.9rem);line-height:1.08;font-weight:800;color:var(--white);letter-spacing:-.02em;margin-bottom:1.2rem}
.lead{font-size:clamp(1.05rem,2vw,1.2rem);max-width:34rem;margin-bottom:2rem}
.btn{
  display:inline-flex;align-items:center;gap:.8rem;
  background:var(--white);color:var(--purple-dark);
  font-weight:700;font-size:1.05rem;text-decoration:none;
  padding:1rem 1.7rem;border-radius:var(--radius);
  transition:transform .15s,box-shadow .15s;
}
.btn:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(0,0,0,.45)}
.btn svg{width:22px;height:22px;flex:none}
.note{margin-top:1rem;font-size:.9rem;color:var(--grey);opacity:.85}

/* Screenshot frames */
.frame{
  position:relative;aspect-ratio:1920/1020;border-radius:var(--radius);overflow:hidden;
  background:linear-gradient(145deg,var(--surface),var(--line));
  border:1px solid var(--line);
  display:grid;place-items:center;text-align:center;color:var(--grey);font-size:.9rem;
}
.frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.frame span{padding:1rem;opacity:.7}
.hero .frame{box-shadow:0 30px 70px rgba(0,0,0,.55);border-color:var(--purple-light)}

/* Sections */
section{padding:clamp(3rem,7vw,5.5rem) 0}
section.flush-top{padding-top:0}
h2{font-size:clamp(1.7rem,3.4vw,2.4rem);font-weight:800;color:var(--white);letter-spacing:-.01em;margin-bottom:.6rem}
.sub{max-width:40rem;margin-bottom:2.2rem}

/* Feature tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.2rem}
.tile{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.6rem;transition:transform .18s,border-color .18s;
}
.tile:hover{transform:translateY(-4px);border-color:var(--purple-light)}
.icon{
  width:52px;height:52px;border-radius:13px;margin-bottom:1.1rem;
  background:linear-gradient(135deg,var(--purple-light),var(--purple-dark));
  display:grid;place-items:center;
}
.icon svg{width:26px;height:26px;stroke:var(--white);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tile h3{color:var(--white);font-size:1.1rem;margin-bottom:.4rem}
.tile p{font-size:.95rem}

/* How it works */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.2rem;counter-reset:step}
.step{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem 1.4rem 1.4rem 4rem;position:relative}
.step::before{
  counter-increment:step;content:counter(step);
  position:absolute;left:1.2rem;top:1.3rem;width:2rem;height:2rem;border-radius:50%;
  background:var(--purple-dark);color:var(--white);font-weight:800;display:grid;place-items:center;
}
.step h3{color:var(--white);font-size:1rem;margin-bottom:.25rem}
.step p{font-size:.92rem}

/* Screenshot row */
.gallery{background:var(--surface);border-block:1px solid var(--line)}
.shots{
  display:flex;gap:1.2rem;overflow-x:auto;scroll-snap-type:x mandatory;
  padding:1rem .25rem 1.4rem;margin-inline:-.25rem;
  scrollbar-color:var(--purple-light) var(--line);
}
.shots figure{flex:0 0 min(620px,82%);scroll-snap-align:start}
.shots .frame{border:1px solid var(--line);transition:border-color .18s}
.shots figure:hover .frame{border-color:var(--purple-light)}
.shots figcaption{margin-top:.7rem;font-size:.95rem;color:var(--grey)}

/* FAQ */
.faq{max-width:50rem}
details{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:.8rem;transition:border-color .15s}
details:hover,details[open]{border-color:var(--purple-light)}
summary{
  cursor:pointer;list-style:none;padding:1.15rem 1.4rem;font-weight:700;color:var(--white);
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:1.6rem;line-height:1;color:var(--purple-light);transition:transform .2s}
details[open] summary::after{transform:rotate(45deg)}
details p{padding:0 1.4rem 1.3rem}
details a,.sub a{color:var(--white);text-decoration-color:var(--purple-light);text-underline-offset:3px}

/* Closing call to action */
.cta{
  text-align:center;padding:clamp(3rem,7vw,5rem) 1.5rem;border-radius:22px;
  background:linear-gradient(135deg,var(--purple-dark),var(--surface) 90%);
  border:1px solid var(--line);
}
.cta h2{margin-bottom:.8rem}
.cta p{max-width:32rem;margin:0 auto 1.8rem;color:var(--white)}

/* Footer */
footer{border-top:1px solid var(--line);padding:2rem 0 2.5rem;font-size:.9rem}
.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem}
.foot-links{display:flex;flex-wrap:wrap;gap:1.2rem}
footer a{color:var(--white);font-weight:500}
.disclaimer{margin-top:1.4rem;padding-top:1.2rem;border-top:1px solid var(--line);font-size:.8rem;opacity:.8;max-width:62rem}

/* Legal pages */
.legal{padding:clamp(2.5rem,6vw,4.5rem) 0}
.legal .wrap{max-width:46rem}
.legal h1{font-size:clamp(2rem,4.5vw,2.8rem);margin-bottom:.4rem}
.legal .updated{font-size:.9rem;opacity:.75;margin-bottom:2rem}
.legal h2{font-size:1.3rem;margin:2.2rem 0 .6rem}
.legal p,.legal li{margin-bottom:.8rem}
.legal ul{padding-left:1.4rem;margin-bottom:.8rem}
.legal a{color:var(--white);text-decoration-color:var(--purple-light);text-underline-offset:3px}

/* Responsive */
@media (max-width:860px){
  .hero-grid{grid-template-columns:1fr}
  nav a{padding:.45rem .7rem;font-size:.88rem}
}
@media (max-width:560px){
  .brand span{display:none}
  .btn{width:100%;justify-content:center}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}

/* "Coming Soon" button: same shape as the download button, but not clickable */
.btn-soon{cursor:default;user-select:none}
.btn-soon:hover{transform:none;box-shadow:none}

/* Zoomable screenshots */
.zoom{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:zoom-in;color:inherit;font:inherit}
.zoom:focus-visible{outline-offset:-6px}
.zoom::after{
  content:"";position:absolute;right:.7rem;bottom:.7rem;width:2.2rem;height:2.2rem;border-radius:50%;
  background:rgba(13,13,26,.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center/60% no-repeat;
  border:1px solid var(--line);opacity:.9;transition:opacity .15s,background-color .15s;pointer-events:none;
}
.zoom:hover::after{background-color:var(--purple-dark);opacity:1}

/* Lightbox */
.lightbox{
  position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;
  background:rgba(13,13,26,.96);color:var(--white);overflow:hidden;
}
.lightbox:not([open]){display:none}
.lightbox::backdrop{background:rgba(13,13,26,.96)}
.lb-stage{position:absolute;inset:0 0 3.6rem 0;overflow:auto;display:grid;place-items:center;padding:1rem}
.lb-stage img{max-width:100%;max-height:100%;width:auto;height:auto;cursor:zoom-in;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.lightbox.is-full .lb-stage{display:block}
.lightbox.is-full .lb-stage img{display:block;margin:0 auto;max-width:none;max-height:none;cursor:zoom-out;border-radius:0}
.lb-bar{position:absolute;left:0;right:0;bottom:0;height:3.6rem;display:flex;align-items:center;justify-content:center;gap:1rem;padding:0 1rem;background:var(--surface);border-top:1px solid var(--line)}
.lb-cap{flex:1;min-width:0;text-align:center;font-size:.9rem;color:var(--grey)}
.lb-btn{
  background:var(--surface);color:var(--white);border:1px solid var(--line);border-radius:999px;
  min-width:2.6rem;height:2.6rem;padding:0 1rem;font:inherit;font-weight:700;cursor:pointer;
}
.lb-btn:hover{background:var(--purple-dark);border-color:var(--purple-light)}
.lb-close{position:absolute;top:.8rem;right:.8rem;z-index:2;background:var(--purple-dark)}
@media (max-width:640px){.lb-bar{gap:.5rem;padding:0 .5rem}.lb-cap{display:none}.lb-bar .lb-btn{flex:1}}

/* 404 page */
.notfound{text-align:center;min-height:60vh;display:grid;align-items:center}
.notfound .wrap{max-width:40rem}
.notfound .lead{margin-inline:auto}
.nf-logo{width:120px;height:120px;border-radius:26px;margin:0 auto 1.6rem;box-shadow:0 20px 50px rgba(0,0,0,.55)}

/* Official "Get it from Microsoft" badge (unmodified image, scaled proportionally) */
.store-badge{display:inline-block;line-height:0;border-radius:var(--radius);transition:transform .15s,box-shadow .15s}
.store-badge img{height:56px;width:auto}
.store-badge:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(0,0,0,.45)}

/* Fake login page (wp-login.php) */
.fakelogin{min-height:100vh;display:grid;align-items:center;padding:2rem 0}
.fl-card{max-width:26rem;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:2rem 1.8rem}
.fl-card h1{font-size:1.8rem;margin-bottom:1.2rem}
.fl-card label{display:block;font-weight:600;color:var(--white);font-size:.9rem;margin:1rem 0 .35rem}
.fl-card input{width:100%;font:inherit;color:var(--white);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:.7rem .8rem}
.fl-card input:focus{outline:3px solid var(--grey);outline-offset:2px}
.fl-card .btn{margin-top:1.4rem;width:100%;justify-content:center;border:0;cursor:pointer;font-family:inherit}
.fl-result{margin-top:1.6rem;text-align:center}
.fl-result img{width:100%;height:auto;border-radius:10px;border:1px solid var(--line)}
.fl-result p{margin-top:.8rem;font-weight:800;color:var(--white);font-size:1.2rem}
.fl-result[hidden]{display:none}

/* Feedback form */
.fb-form label{display:block;font-weight:600;color:var(--white);font-size:.92rem;margin:1.2rem 0 .4rem}
.fb-opt{font-weight:400;opacity:.8}
.fb-form input,.fb-form select,.fb-form textarea{width:100%;font:inherit;color:var(--white);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:.75rem .85rem}
.fb-form textarea{resize:vertical;min-height:9rem}
.fb-form input:focus,.fb-form select:focus,.fb-form textarea:focus{outline:3px solid var(--grey);outline-offset:2px}
.fb-hint{font-size:.85rem;opacity:.85;margin-top:.6rem}
.fb-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.fb-status{min-height:1.6rem;margin:1.2rem 0 .4rem;font-weight:600;color:var(--white)}
.fb-status.fb-error{color:var(--white);border-left:4px solid var(--purple-light);padding-left:.7rem}
.fb-form .btn{border:0;cursor:pointer;font-family:inherit}
.fb-form .btn:disabled{opacity:.6;cursor:default;transform:none;box-shadow:none}
.fb-done[hidden]{display:none}
.fb-done{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.6rem}
.fb-done h2{margin-top:0}
