:root{
  --bg: #0b0f19;
  --bg2:#0e1a2d;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --text:#e9eefc;
  --muted: rgba(233,238,252,.72);
  --border: rgba(255,255,255,.12);
  --accent:#5bbcff;
  --accent2:#9b7bff;
  --good:#28d17c;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}

/* =========================================================
   Solid seamless background (no breaks/panels)
   ========================================================= */
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:none;                 /* background painted by ::before */
  min-height:100svh;
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(91,188,255,.22), transparent 60%),
    radial-gradient(900px 500px at 85% 12%, rgba(155,123,255,.18), transparent 55%),
    radial-gradient(900px 500px at 50% 100%, rgba(40,209,124,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center top;
}

/* Ensure wrappers don't paint their own “panel” backgrounds */
main, section, footer,
.container, .content, .wrap, .page, .shell, .inner{
  background: transparent !important;
}

a{color:inherit}
.container{width:100%; max-width:var(--max); margin:0 auto; padding:0 18px}
.small{font-size:.95rem}
.muted{color:var(--muted)}
.kbd{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:.9em;
  padding:.12em .35em;
  border:1px solid var(--border);
  border-radius:10px;
  background:rgba(255,255,255,.05)
}

/* =========================================================
   Topbar/nav (auto-resize, safe-area, no overlap)
   ========================================================= */
.topbar{
  position:sticky; top:0; z-index:50;
  padding-top: env(safe-area-inset-top);
  background:rgba(11,15,25,.55);
  backdrop-filter:saturate(140%) blur(14px);
  -webkit-backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
  min-height:64px;
  flex-wrap:wrap; /* prevents collisions on mobile */
}

.brand{
  display:flex; align-items:center; gap:10px; text-decoration:none;
  font-weight:800; letter-spacing:.2px;
  min-width:0;
}
.brand img{
  width:34px; height:34px; border-radius:10px;
  box-shadow:var(--shadow);
  object-fit:contain;
  flex:0 0 auto;
}

.navlinks{
  display:flex; align-items:center; gap:14px;
  flex-wrap:wrap;
}
.navlinks a{
  opacity:.9; text-decoration:none; padding:8px 10px; border-radius:12px;
  white-space:nowrap;
}
.navlinks a:hover{background:rgba(255,255,255,.06); opacity:1}

.cta{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(135deg, rgba(91,188,255,.18), rgba(155,123,255,.12));
  white-space:nowrap;
}
.cta:hover{transform:translateY(-1px); box-shadow:var(--shadow)}
.cta.primary{
  border:none;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  color:#06101f;
}
.cta.primary:hover{filter:saturate(1.05) brightness(1.02)}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:var(--muted);
  font-size:.9rem;
  white-space:nowrap;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.badge::-webkit-scrollbar{display:none}

/* =========================================================
   Hero (KEEP STYLE, fix auto-resize for header image)
   ========================================================= */
.hero{padding:44px 0 20px}

.heroGrid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:start; /* don't stretch image vertically */
}

/* Right-column hero screenshot sizing (prevents the image from being massive) */
.heroShot{
  width:100%;
  max-width:520px;
  height:auto;
  max-height:min(62svh, 520px);
  object-fit:contain;
  display:block;
  margin:0 auto;
  filter: drop-shadow(0 18px 55px rgba(0,0,0,.55));
}

/* Title */
.hTitle{
  font-size:clamp(2rem, 3.2vw, 3.1rem);
  line-height:1.05;
  margin:.55rem 0 .7rem;
}

/* Restore "Make Smarter Picks!" pop:
   - If your H1 uses <b>/<strong> around the phrase, it will color it.
   - If you have <span class="pop"> it also works.
*/
.hTitle .pop,
.hTitle b,
.hTitle strong{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hLead{
  font-size:1.12rem;
  color:var(--muted);
  line-height:1.55;
  margin:0 0 18px;
}

.pills{display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 22px}
.pill{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(233,238,252,.88);
  font-size:.95rem;
}
.pill i{
  width:10px; height:10px; border-radius:999px; background:var(--good);
  box-shadow:0 0 0 4px rgba(40,209,124,.14);
}

.heroCard{
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

/* ========= Header image auto-resize (the actual fix) =========
   This caps the hero image so it never eats the whole screen.
   It works even if your hero image is a big transparent PNG.
*/
.phoneWrap{
  padding:16px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  height:auto !important;
  min-height:0 !important;
  max-height: min(62svh, 520px);  /* <-- the cap */
  overflow:hidden;               /* <-- prevents gigantic spill */
}

.phone{
  width:100%;
  max-width:420px;               /* keep desktop size */
  height:auto !important;
  min-height:0 !important;
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.25);
  box-shadow:0 14px 50px rgba(0,0,0,.5);
  display:block;
}

.phone img{
  width:100%;
  height:auto !important;
  max-height:100% !important;    /* <-- obey the wrapper cap */
  display:block;
  object-fit:contain;            /* never crop */
}

/* Meta under phone */
.phoneMeta{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px;
  border-top:1px solid rgba(255,255,255,.10);
}
.metaLeft{display:flex; flex-direction:column; gap:2px}
.metaLeft strong{font-size:1.05rem}
.metaLeft span{font-size:.92rem; color:var(--muted)}
.metaRight{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.metaChip{
  font-size:.85rem;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:rgba(233,238,252,.86);
}

/* =========================================================
   Sections/cards
   ========================================================= */
.section{padding:26px 0}
.section h2{margin:0 0 12px; font-size:1.55rem}
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  padding:16px;
}
.card:hover{background:rgba(255,255,255,.07)}
.card h3{margin:0 0 8px; font-size:1.05rem}
.card p{margin:0; color:var(--muted); line-height:1.55}


.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.price{display:flex; flex-direction:column; gap:12px}
.price .big{font-size:2.1rem; font-weight:900}
.hr{height:1px; background:rgba(255,255,255,.10); margin:14px 0}

.footer{
  padding:30px 0 44px;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted);
}
.footer a{color:rgba(233,238,252,.85); text-decoration:none}
.footer a:hover{text-decoration:underline}
.footerRow{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}

.form{display:grid; gap:10px}
.input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
}
textarea{min-height:140px; resize:vertical}

.notice{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  padding:14px;
}
.notice strong{color:rgba(233,238,252,.92)}

/* =========================================================
   Responsive tweaks (nav + hero image sizing)
   ========================================================= */
@media (max-width: 920px){
  .heroGrid{grid-template-columns:1fr}
  .grid3{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .navlinks{gap:6px}

  /* keep hero image from being huge on tablets */
  .phone{max-width:380px}
  .phoneWrap{max-height: min(58svh, 480px)}
}

@media (max-width: 560px){
  .nav{padding:12px 0}
  .navlinks{width:100%}

  /* CTA drops to its own line cleanly */
  .cta{width:100%; justify-content:center}

  /* Mobile hero image size cap */
  .phone{max-width:340px}
  .phoneWrap{max-height: min(52svh, 420px)}
}

/* =========================================================
   Masthead banner sizing fix (image-header.png)
   ========================================================= */

.mastHero{
  width:100%;
  margin: 18px 0 8px;
}

.mastRow{
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}

.mastLogo{
  display:block;
  width:min(100%, 980px);
  height:auto;
  max-height:clamp(96px, 16vw, 180px);
  object-fit:contain;
  margin:0 auto;
}


@media (max-width: 560px){
  .mastLogo{
  display:block;
  width:min(100%, 980px);
  height:auto;
  max-height:clamp(96px, 16vw, 180px);
  object-fit:contain;
  margin:0 auto;
}

}


/* Multiline hero title helper */
.hLine{display:block}

.heroArt img{width:100%; height:auto; display:block; object-fit:contain; max-height:min(70svh, 520px);}

/* =========================================================
   Screenshots carousel v2 (center snap + active scaling + desktop drag)
   ========================================================= */

.screensHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin:0 0 12px;
}

.screensCtrls{
  display:none;
  gap:10px;
}

.shotsWrap{ position:relative; }

/* Base sizes (adjust here if you want bigger/smaller) */
:root{
  --shotW: 260px;
  --shotH: 560px;
  --shotRadius: 22px;
}

/* Centered snap + hidden scrollbar but still scrollable */
.shots{
  display:flex;
  gap:14px;
  overflow-x:auto;
  overflow-y:visible;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;

  padding: 8px 0 14px;
  /* center the snapped item in the viewport */
  scroll-padding-left: calc((100% - var(--shotW)) / 2);
  scroll-padding-right: calc((100% - var(--shotW)) / 2);

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* desktop drag affordance */
  cursor: grab;
  user-select:none;
}
.shots::-webkit-scrollbar{ display:none; }
.shots:active{ cursor: grabbing; }

/* IMPORTANT: allow the first/last item to actually center */
.shots::before,
.shots::after{
  content:"";
  flex: 0 0 calc((100% - var(--shotW)) / 2);
}

.shot{
  flex:0 0 auto;
  width:var(--shotW);
  scroll-snap-align:center;
  scroll-snap-stop: always;
}

/* Image viewport */
.shot img{
  width:100%;
  height:var(--shotH);
  display:block;
  border-radius:var(--shotRadius);
  object-fit:cover;          /* crops padding/white edges */
  background:transparent;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
  will-change: transform;
}

/* Caption below the image (keeps your descriptions) */
.shotCap{
  padding: 10px 2px 0;
  border-top:none;
  color: var(--muted);
  font-size: .92rem;
  line-height:1.35;
  max-width: var(--shotW);
}

/* Center/active item effect like your example */
.shot.is-center img{
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1.03);
  opacity: 1;
}
.shot:not(.is-center) img{
  transform: scale(.94);
  opacity: .78;
}

/* Desktop controls (arrows) */
@media (hover:hover) and (pointer:fine){
  .screensCtrls{ display:flex; }
  .shotsBtn{
    width:42px; height:42px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.06);
    color:var(--text);
    font-size:22px;
    line-height:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
  }
  .shotsBtn:hover{ background:rgba(255,255,255,.10); }
  .shotsBtn:active{ transform: translateY(1px); }
}

/* Mobile sizing: a little bigger, but not massive */
@media (max-width: 560px){
  :root{
    --shotW: 250px;
    --shotH: 540px;
  }
}

/* Hero screenshot (the big one above): keep it prominent but capped */
.heroShot{
  width:100%;
  max-width: 520px;
  height:auto;
  max-height: min(62svh, 520px);
  object-fit: contain;
  display:block;
  margin: 0 auto;
}
@media (max-width: 560px){
  .heroShot{
    max-width: 420px;
    max-height: min(56svh, 460px);
  }
}
/* =========================================================
   Mobile: make FIRST screenshot slightly larger (safe tweak)
   ========================================================= */
@media (max-width: 600px) {
  .shots .shot:first-child img {
    height: calc(100% + 80px);   /* subtle boost, not full-screen */
    max-height: 90svh;           /* hard cap so it never explodes */
    object-fit: contain;         /* keep full phone visible */
  }
}
