/* Virtual Screen Cleaners, "Playground" design.
   Layout: a chunky tablet bezel holds the player beside the headline; cleaners sit below as bright tiles. */
:root {
  --bg: #eef5ff; --surface: #ffffff; --ink: #14213d; --muted: #52607a;
  --pink: #ff4f87; --pink-ink: #c8155a; --yellow: #ffcf33; --sky: #4aa8ff; --line: #d3e2f7;
  --bezel: #14213d; --ad: #f6f9fe;
  --display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1626; --surface: #17223a; --ink: #eef3ff; --muted: #a5b2cc;
    --pink: #ff6b9b; --pink-ink: #ff8db3; --yellow: #ffd659; --sky: #66b6ff; --line: #2a3a5c; --bezel: #050a14; --ad: #121c31;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
p a, li a { color: var(--pink-ink); font-weight: 700; }
h1, h2, h3, .logo { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo i { width: 34px; height: 34px; border-radius: 50%; background: var(--pink); display: inline-grid; place-items: center; font-style: normal; color: #fff; font-size: 1.1rem; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a { text-decoration: none; font-weight: 700; font-size: .92rem; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Hero: player + pitch */
.hero { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; padding-block: 8px 24px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 20px; } }
@media (horizontal-viewport-segments: 2) {
  .hero { grid-template-columns: env(viewport-segment-width 0 0, 1fr) 1fr;
    column-gap: calc(env(viewport-segment-left 1 0, 0px) - env(viewport-segment-right 0 0, 0px)); }
}
@media (vertical-viewport-segments: 2) {
  .hero { grid-template-columns: 1fr; row-gap: calc(env(viewport-segment-top 0 1, 0px) - env(viewport-segment-bottom 0 0, 0px)); }
}

.bezel { background: var(--bezel); border-radius: clamp(16px, 3vw, 28px); padding: clamp(8px, 1.4vw, 14px); box-shadow: 0 18px 40px -18px rgba(20,33,61,.55); }
.player { position: relative; aspect-ratio: 16 / 9; max-height: 72vh; max-height: 72dvh; width: 100%; border-radius: clamp(10px, 2vw, 18px); overflow: hidden; background: #000; }
.player video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.player:fullscreen { max-height: none; border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.player:-webkit-full-screen { max-height: none; border-radius: 0; width: 100vw; height: 100vh; }
.player .tap { position: absolute; right: 12px; bottom: 12px; border: 0; border-radius: 999px; padding: 10px 14px; font: 800 .9rem/1 var(--body); background: rgba(20,33,61,.78); color: #fff; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.player .tap svg { width: 18px; height: 18px; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 16px;
  background: radial-gradient(120% 90% at 30% 20%, #ff7aa6 0%, #7b5cff 55%, #233a7a 100%); }
.ph strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 5vw, 3rem); }
.ph small { opacity: .9; font-size: .9rem; }

.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn { font: 700 .95rem/1 var(--body); cursor: pointer; padding: 12px 16px; min-height: 44px; border-radius: 14px; background: var(--surface); color: var(--ink); border: 2px solid var(--line); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn.sun { background: var(--yellow); color: #14213d; border-color: var(--yellow); }
.btn[aria-pressed="true"].toggle { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.pitch .eyebrow { display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-ink); margin-bottom: 8px; }
.pitch h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
.pitch p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }

/* Ads: always reserved, never beside the player controls */
.ad { background: var(--ad); border-radius: 14px; overflow: hidden; text-align: center; }
.ad::before { content: "Advertisement"; display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.ad.wide { min-height: 130px; margin-block: 32px 28px; }
.ad.box { min-height: 274px; display: grid; align-content: start; justify-items: center; }
.ad.inline { min-height: 130px; margin-block: 28px; }
.ad ins { display: block; }

/* Tiles */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.section-head span { color: var(--muted); }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.tile { text-decoration: none; border-radius: 22px; padding: 18px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; border: 3px solid transparent; transition: transform .15s ease; color: #14213d; }
.tile:hover { transform: translateY(-3px) rotate(-.6deg); }
.tile[aria-current="page"] { border-color: var(--ink); }
.tile h3 { font-size: 1.5rem; }
.tile span { font-size: .9rem; font-weight: 700; opacity: .85; }
.tile .now { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.t-cat { background: #ffd6e4; } .t-pug { background: #ffe9a8; } .t-doodle { background: #c9e6ff; } .t-bikini { background: #c7f0dc; }
.t-tool { background: #14213d; color: #fff; } .t-guide { background: #e9dcff; }
.tile.soon { background: var(--surface); color: var(--muted); border: 3px dashed var(--line); }

/* Copy blocks */
.copy { display: grid; gap: 24px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); padding-block: 36px; }
.copy h2 { font-size: 1.5rem; margin-bottom: 6px; }
.copy p { color: var(--muted); margin: 0 0 10px; max-width: 62ch; }

/* Article pages (guide, about, privacy) */
.article { max-width: 72ch; padding-block: 12px 40px; }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.article h2 { font-size: 1.6rem; margin: 32px 0 8px; }
.article h3 { font-size: 1.2rem; margin: 22px 0 6px; }
.article p, .article li { color: var(--ink); }
.article .lede { font-size: 1.15rem; color: var(--muted); }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: 6px; }
.callout { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.picks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-block: 12px; }
.picks a { display: block; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 700; }
.picks small { display: block; color: var(--muted); font-weight: 400; }
.disclosure { font-size: .85rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Screen cleaning mode */
.modes { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 16px; }
.cleanmode { position: fixed; inset: 0; z-index: 50; cursor: none; touch-action: none; display: grid; place-items: end center; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.cleanmode .hint { font: 700 .85rem/1.4 var(--body); padding: 8px 14px; border-radius: 999px; opacity: .7; transition: opacity 1s ease; }
.cleanmode.quiet .hint { opacity: 0; }
.cleanmode.black { background: #000; } .cleanmode.black .hint { background: #222; color: #ccc; }
.cleanmode.white { background: #fff; } .cleanmode.white .hint { background: #eee; color: #333; }

footer.site { border-top: 2px solid var(--line); padding-block: 20px 32px; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 700; z-index: 60; max-width: calc(100% - 32px); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }
