:root{
  --bg:#000;
  --white:#fff;
  --muted:#9aa4ad;
  --muted-hover:#dfe7ea;
  --divider: rgba(255,255,255,0.04);
  --glass: rgba(255,255,255,0.03);
  --container:1200px;
  --radius:12px;
  --button-height:56px;
  --nav-width:300px;
  --header-height:64px;

  /* site spacing & brand sizes */
  --site-padding: 28px;   /* page horizontal padding */
  --logo-width: 46px;     /* logo width in header */
  --brand-gap: 12px;      /* gap between logo and brand text */

  /* left gutter of the centered container (can be negative on narrow screens) */
  --site-left-offset: calc((100vw - var(--container)) / 2);

  /* helper to nudge big desktop previews toward the right (positive = move right) */
  --preview-center-nudge: 40px;

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  box-sizing:border-box;
}

/* Reset / base */
*{box-sizing:border-box}
html,body{height:100%;overflow-x:hidden}
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg,var(--bg),#020202 140%);
  color:var(--white);
  line-height:1.45;
}
a{color:var(--muted);text-decoration:none}

/* Prevent page scroll when mobile nav open */
body.nav-open{overflow:hidden}

/* Container (centered by default) */
.container{max-width:var(--container);margin:0 auto;padding:16px var(--site-padding)}

/* Header */
.site-header{
  width:100%;
  height:var(--header-height);
  border-bottom:1px solid var(--divider);
  background:linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  position:sticky;top:0;z-index:1000;backdrop-filter: blur(4px);
}
.header-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:8px var(--site-padding);
  display:flex;
  align-items:center;
  gap:var(--brand-gap);
}
.brand{display:flex;align-items:center;gap:var(--brand-gap);text-decoration:none}
.logo{width:var(--logo-width);height:auto;object-fit:contain}
.brand-text{font-weight:700;color:var(--white);font-size:1.12rem}

/* Primary nav - desktop inline */
nav.primary{display:flex;gap:16px;align-items:center;margin-left:auto}
nav.primary a{color:var(--muted);font-size:0.98rem;padding:8px 0}
nav.primary a:hover{color:var(--muted-hover)}
nav.primary a.active{color:var(--white);font-weight:700;text-decoration:underline;text-underline-offset:6px}

/* Mobile nav toggle (left of logo on small screens) */
.nav-toggle{display:none;background:transparent;border:0;color:var(--white);cursor:pointer;padding:8px;align-items:center;justify-content:center}
.nav-toggle .hamburger{width:22px;height:2px;background:var(--white);display:block;position:relative;transition:all .18s ease}
.nav-toggle .hamburger::before,.nav-toggle .hamburger::after{content:"";position:absolute;left:0;width:22px;height:2px;background:var(--white);transition:all .18s ease}
.nav-toggle .hamburger::before{top:-7px}
.nav-toggle .hamburger::after{top:7px}

/* X state styles (when .open is applied to the button) */
.nav-toggle.open .hamburger{background:transparent}
.nav-toggle.open .hamburger::before{transform:rotate(45deg);top:0}
.nav-toggle.open .hamburger::after{transform:rotate(-45deg);top:0}

/* Main / Hero */
.site-main{flex:1;display:flex;flex-direction:column}
.hero{width:100%;max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:1fr 520px;gap:32px;align-items:start;padding:28px}
.hero-left h1{
  font-size:clamp(30px,5.2vw,54px);
  margin:0 0 12px;
  line-height:1.02;
}
.lead{color:var(--muted);font-size:1.02rem;margin:0 0 14px}
.hero-ctas{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:10px}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;gap:10px;justify-content:center;padding:0 14px;height:44px;border-radius:10px;font-weight:600;color:var(--white);
  background:var(--glass);border:1px solid rgba(255,255,255,0.06);
}
.btn svg{width:14px;height:14px}
.btn:hover{transform:translateY(-3px);box-shadow:0 12px 24px rgba(0,0,0,0.45);background:rgba(255,255,255,0.03)}
.small-note{color:var(--muted);font-size:0.95rem;margin-top:8px}

/* HERO PREVIEWS - base layout (default) */
.hero-media{
  margin-top:18px;
  margin-bottom:8px; /* reduced extra space below previews */
  display:flex;
  gap:28px;
  align-items:flex-start;
  justify-content:center;
  flex-wrap:nowrap;
  width:100%;
  box-sizing:border-box;
}
.screenshot-figure{
  flex: 0 1 48%;
  max-width: 720px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}
.screenshot{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  box-shadow:0 28px 54px rgba(0,0,0,0.7);
  border:1px solid rgba(255,255,255,0.03);
  object-fit:cover; /* default: fills area on desktop */
  background-color:#060606;
}
.screenshot-caption{color:var(--muted);margin-top:8px;margin-bottom:6px;font-size:0.95rem}

/* Cards (What you can do) */
.features{margin-top:30px;padding:0 var(--site-padding)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:980px;margin:0 auto}
.card{padding:18px;border-radius:12px;border:1px solid rgba(255,255,255,0.04);background:linear-gradient(180deg, rgba(255,255,255,0.01), transparent)}
.card h3{Margin:0 0 8px}
.card p{
  margin:0;color:var(--muted);
  white-space:normal;
  word-break:break-word;
  overflow-wrap:break-word;
  hyphens:auto;
}

/* Tablet / mobile base adjustments: make screenshots much smaller and ensure full visible images */
@media (max-width:980px){
  .cards{grid-template-columns:1fr;}
  .hero{grid-template-columns:1fr;gap:20px;padding:20px}

  /* Stack hero previews vertically and make them noticeably smaller */
  .hero-media{
    flex-direction:column;
    align-items:center;
    gap:12px;               /* tightened gap */
    margin-top:12px;
    margin-bottom:8px;      /* minimal extra space below previews */
    padding-left: 8px;
    padding-right: 8px;
  }
  .screenshot-figure{
    flex: 0 1 auto;
    width: 100%;
    max-width: 420px;       /* tablet max width smaller */
  }
  .screenshot{
    border-radius:12px;
    /* Use contain so the full screenshot is visible (no cropping) */
    object-fit:contain;
    max-height:48vh;        /* cap height on tablets to avoid huge screenshots */
    width:100%;
  }
  .screenshot-caption{margin-top:8px}
}

/* Small phones: much smaller so they don't dominate the viewport and full image visible */
@media (max-width:520px){
  .screenshot-figure{max-width:320px} /* reduced so images are compact on phones */
  .hero-media{gap:8px;margin-bottom:6px}
  .screenshot{
    object-fit:contain;   /* ensure full screenshot is visible (no cropping) */
    max-height:40vh;       /* ensure screenshots are readable but not overbearing */
    width:100%;
  }
  .screenshot-caption{font-size:0.92rem}
}

/* Policy (Privacy) and Sources base styling */
.policy-box,
.sources-policy {
  padding:18px;
  border-radius:10px;
  color:var(--white);
  background:transparent;
  border:1px solid rgba(255,255,255,0.03);
}
.policy-updated{color:var(--muted);margin-bottom:12px}

/* Source item lines */
.source-item{padding:12px 0;border-bottom:1px solid rgba(255,255,255,0.04)}
.source-item:last-child{border-bottom:0}
.source-item a{color:var(--white);font-weight:700}
@media (hover: hover){
  .source-item a:hover{text-decoration:underline;color:var(--white)}
}
.source-link a:hover{text-decoration:underline;color:var(--white)}

/* Footer */
.site-footer{width:100%;margin-top:auto;padding:18px 0 28px 0;color:var(--muted)}
.footer-divider{height:1px;background: rgba(255,255,255,0.10);margin:0 0 16px 0}
.footer-grid{max-width:var(--container);margin:0 auto;padding:0 var(--site-padding);display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:nowrap}
.footer-left{order:1}
.footer-center{order:2;display:flex;align-items:center;justify-content:center;gap:20px}
.footer-right{order:3;display:flex;gap:12px;align-items:center}
.footer-left a{color:var(--muted);text-decoration:none;font-weight:500}
.footer-center a img{height:34px;object-fit:contain}
.footer-right a{color:var(--muted);text-decoration:none}
.footer-right a:hover{text-decoration:underline;text-decoration-color:currentColor}

/* Footer stacking on small screens */
@media (max-width:980px){
  .footer-grid{flex-direction:column;align-items:center;gap:8px;padding:0 18px}
  .footer-right{order:1}
  .footer-center{order:2}
  .footer-left{order:3}
}

/* whats-new iframe */
.iframe-wrap{height:calc(100vh - var(--header-height));width:100%}
.iframe-wrap iframe{width:100%;height:100%;border:0;display:block}

/* Mobile nav: left slide panel, toggle left of logo */
@media (max-width:980px){
  .header-inner{padding:8px 18px}
  .nav-toggle{display:flex;order:0;margin-right:8px}
  .brand{order:1}
  nav.primary{
    position:fixed;top:var(--header-height);left:0;background:#070707;width:min(var(--nav-width),80vw);height:calc(100vh - var(--header-height));flex-direction:column;padding:18px;transform:translateX(-100%);transition:transform .22s cubic-bezier(.2,.9,.2,1);box-shadow:12px 0 40px rgba(0,0,0,0.6)
  }
  nav.primary.open{transform:translateX(0)}
  nav.primary a{margin:0 0 12px 0;display:block;padding:8px 0}
  nav.primary a:hover{color:var(--muted)}
}

/* ============================================================
   SOURCES-PAGE SPECIFIC LAYOUT (separate from Privacy)
   - Desktop: left-aligned column pinned to main content left.
   - Tablet/mobile: responsive behavior so content is full-width with comfortable padding.
   ============================================================ */

/* Desktop & tablet default for sources: left-aligned column */
body.page-sources .container {
  /* Left-align the container so its left edge matches main content column */
  max-width: 900px; /* sources page column width on large screens */
  margin-left: calc(var(--site-left-offset) + var(--site-padding)); /* pin to main column left */
  margin-right: 0;
  padding-left: var(--site-padding);
  padding-right: var(--site-padding);
}

/* Sources policy box inside that column */
body.page-sources .sources-policy,
body.page-sources #sources-box {
  width: 100%;
  max-width: 780px;   /* content box width inside the 900px container */
  margin-left: 0;
  box-sizing: border-box;
}

/* MOBILE / TABLET: make sources container responsive and full-width */
@media (max-width:980px){
  body.page-sources .container {
    /* Use normal centered fluid container on smaller screens */
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  body.page-sources .sources-policy,
  body.page-sources #sources-box {
    max-width: none;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* Slightly increase legibility on smaller screens */
  .policy-updated { font-size: 0.98rem; }
  .source-item { font-size: 0.98rem; }
}

/* Very small phones: tighten padding and increase vertical rhythm */
@media (max-width:520px){
  body.page-sources .container { padding-left:12px; padding-right:12px; }
  .policy-updated { font-size: 0.95rem; }
  .source-item { font-size: 0.95rem; }
}

/* Keep Privacy page behavior unchanged (centered) */
body.page-privacy .container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-padding);
  padding-right: var(--site-padding);
}
body.page-privacy .policy-box {
  margin-left: 0;
  max-width: none;
}

/* -----------------------
   Desktop preview sizing and centering (updated)
   - Two mobile screenshots side-by-side on desktop (49/49) but constrained by a centered max-width
   - Stacked on tablet/mobile (see above smaller rules)
   - Slight +2px visual boost applied where requested
   - Shift the preview block slightly to the right using transform on wide screens
   ----------------------- */
@media (min-width:1200px) {
  .hero-media { gap: 56px; max-width: 1400px; margin: 0 auto; }

  .hero-media {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    transform: translateX(var(--preview-center-nudge)); /* move previews slightly right */
  }

  /* Two equal previews side-by-side but slightly smaller than previous "very large" state */
  .screenshot-figure.mobile-preview,
  .screenshot-figure.desktop-preview {
    flex: 0 0 49%;
    max-width: 49%;
    margin: 0;
    min-height: calc(68vh + 2px); /* slight +2px visual bump */
  }

  .screenshot-figure.mobile-preview .screenshot,
  .screenshot-figure.desktop-preview .screenshot {
    width:100%;
    /* reduced desktop cap so images are slightly smaller than before but still prominent */
    max-height: calc(90vh - var(--header-height) + 2px);
    object-fit:cover;
    display:block;
  }
}

/* Extra-scaling for very large screens */
@media (min-width:1600px) {
  .screenshot-figure.mobile-preview,
  .screenshot-figure.desktop-preview {
    max-width: 49%;
  }
  .screenshot-figure.mobile-preview .screenshot,
  .screenshot-figure.desktop-preview .screenshot {
    max-height: calc(96vh - var(--header-height) + 2px);
  }
}

/* Disable hover interactions on touch-only devices */
@media (hover:none){
  nav.primary a:hover{color:inherit}
  .btn:hover{transform:none;box-shadow:none;background:var(--glass)}
}

/* very small screen adjustments */
@media (max-width:420px){
  .logo{width:40px;height:40px}
  .brand-text{font-size:0.98rem}
  .btn{width:100%}
  .container{padding:10px}
}

/* --- Privacy page links: bold white and bold white underline on hover/focus ---
   NOTE: the privacy page HTML you provided doesn't have body.page-privacy class,
   so rules are applied both to .policy-box anchors and body.page-privacy for safety.
*/

/* Make policy-box links bold white by default and remove default underlines */
.policy-box a,
body.page-privacy a,
body.page-privacy .policy-box a {
  color: var(--white) !important;
  font-weight: 700;
  text-decoration: none;
}

/* Hover / focus: white, bold, and underline for clear affordance */
.policy-box a:hover,
.policy-box a:focus,
body.page-privacy a:hover,
body.page-privacy a:focus,
body.page-privacy .policy-box a:hover,
body.page-privacy .policy-box a:focus {
  color: var(--white) !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--white);
}

/* Keyboard focus-visible accessibility */
.policy-box a:focus-visible,
body.page-privacy a:focus-visible,
body.page-privacy .policy-box a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
  border-radius: 4px;
}

.cookie-banner{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(12px);
  z-index: 99999;
  background: #fff; /* was --bg */
  color: #000;      /* was --fg */
  border-radius: 12px; /* was --radius */
  box-shadow: 0 10px 30px rgba(0,0,0,.45); /* was --shadow */
  padding: 0;
  width: min(96%, 1100px); /* fluid responsiveness */
  max-width: 1100px;
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(.2,.9,.3,1), opacity 220ms;
  will-change: transform, opacity;
}

/* Visible state */
.cookie-banner[data-visible="true"]{
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Inner layout: flexible, wraps when needed */
.cookie-content{
  display: flex;
  gap: 12px;      /* was --gap */
  align-items: center;
  padding: 14px;  /* was --pad */
  flex-wrap: wrap; /* ensures responsiveness at any width */
}

/* Message grows to fill space, minimum comfortable width for readability */
.cookie-message{
  margin: 0;
  font-size: clamp(.88rem, 1.6vw, 1rem);
  line-height: 1.3;
  flex: 1 1 220px; /* flexible but won't shrink below ~220px */
  color: #000;
}

/* Links */
.cookie-message a{
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

.cookie-message a:hover {
  color: #9aa4ad;
  font-weight: bold;
  text-decoration: underline;
}

/* Actions: default inline, will become full width via JS when wrapped */
.cookie-actions{
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  align-items: center;
}

/* Buttons */
.cookie-btn{
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  min-width: 88px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Primary button style */
.cookie-btn.primary{
  background: #000; /* was --btn-bg */
  color: #fff;      /* was --btn-fg */
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* When JS adds .fullwidth to .cookie-actions, make it take full row */
.cookie-actions.fullwidth{
  width: 100%;
}
.cookie-actions.fullwidth .cookie-btn.primary{
  width: 100%;
}

/* Focus styles for keyboard users */
.cookie-btn:focus{
  outline: 3px solid #9aa4ad;
  outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .cookie-banner, .cookie-banner[data-visible="true"]{
    transition: none;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}