/* ===== Global theme ===== */
:root{
  --bg:#0b0f0e;
  --card:#0f1e18;
  --text:#e7f7ee;
  --muted:#9ed8bf;
  --accent:#17a069;
  --accent-2:#12c08a;
  --shadow:0 20px 50px rgba(0,0,0,.35);
  --header-h:60px;
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial;
  color:var(--text);
  /* Dark radial background from the original design */
  background:
    radial-gradient(1200px 600px at 20% -10%, #13573a 0%, transparent 60%),
    radial-gradient(1000px 600px at 120% 10%, #0a3d28 0%, transparent 60%),
    var(--bg);
}
.container{ max-width:1000px; margin:0 auto; padding:24px; }

/* ===== Header (sticky) ===== */
.site-header{
  position:sticky; top:0; z-index:1000;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  height:var(--header-h);
  background:rgba(15,30,24,.85);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:saturate(180%) blur(8px);
  padding:8px 0;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text); }
.brand img{ width:40px; height:40px; border-radius:10px; }
.brand strong{ font-size:18px; letter-spacing:.2px; }
header nav a{ color:var(--muted); text-decoration:none; margin-left:14px; font-weight:600; }
header nav a:hover{ color:var(--text); }

/* Hamburger */
.menu-toggle{ display:none; background:transparent; border:1px solid rgba(255,255,255,.2); border-radius:10px; padding:8px 10px; color:var(--text); }
.menu-toggle:focus-visible{ outline:2px solid var(--accent-2); outline-offset:2px; }
.hamburger{ position:relative; display:inline-block; width:24px; height:18px; }
.hamburger span{ position:absolute; left:0; right:0; height:2px; background:var(--text); border-radius:1px; transition:.2s ease; transform-origin:center; }
.hamburger span:nth-child(1){ top:0; }
.hamburger span:nth-child(2){ top:8px; }
.hamburger span:nth-child(3){ top:16px; }
.site-header.open .hamburger span:nth-child(1){ top:8px; transform:rotate(45deg); }
.site-header.open .hamburger span:nth-child(2){ opacity:0; }
.site-header.open .hamburger span:nth-child(3){ top:8px; transform:rotate(-45deg); }

/* Mobile nav */
@media (max-width:720px){
  .menu-toggle{ display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
  .site-header nav{
    display:none; position:absolute; top:100%; left:16px; right:16px; z-index:1001;
    background:var(--card); border:1px solid rgba(255,255,255,.12);
    border-radius:12px; padding:12px; box-shadow:var(--shadow);
  }
  .site-header.open nav{ display:block; }
  .site-header nav a{ display:block; padding:10px 8px; margin:0; }
  header nav a{ margin-left:0; }
}

/* ===== Hero / buttons / cards ===== */
.hero{
  margin-top:40px;
  background:linear-gradient(180deg, rgba(23,160,105,0.18), rgba(23,160,105,0.05));
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:40px 28px;
  box-shadow:var(--shadow);
  text-align:center; /* center heading + paragraph */
}
.hero h1{ font-size:clamp(28px,4vw,44px); margin:0 0 10px; }
.hero p{ margin:0 0 22px; color:var(--muted); max-width:60ch; margin-left:auto; margin-right:auto; }

.cta{ display:flex; flex-wrap:wrap; gap:12px; margin:18px 0 0; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 18px; border-radius:12px;
  border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(180deg, var(--accent), var(--accent-2));
  color:#042016; text-decoration:none; font-weight:800; letter-spacing:.2px;
  box-shadow:0 10px 30px rgba(18,192,138,.35);
}
.btn.secondary{ background:transparent; color:var(--text); border-color:rgba(255,255,255,.18); }
.btn[disabled]{ opacity:.7; cursor:not-allowed; }

.features{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:16px;
  margin-top:28px;
}
.card{ background:var(--card); border:1px solid rgba(255,255,255,.08); border-radius:18px; padding:18px; box-shadow:var(--shadow); }
.card h3{ margin:0 0 6px; font-size:18px; }
.card p{ margin:0; color:var(--muted); }

.release-notes{
  width:100%;
  max-width:960px;
  display:flex;
  flex-direction:column;
  gap:12px;
  line-height:1.6;
}
.release-notes .release-intro{
  color:var(--muted);
  font-size:.96em;
}
.release-notes .release-version{
  padding:12px 0 10px;
  border-top:1px solid rgba(255,255,255,.08);
}
.release-notes .release-version:first-of-type{
  border-top:0;
  padding-top:0;
}
.release-notes h2,
.release-notes h3{
  margin:0 0 8px;
  font-size:20px;
}
.release-notes ul{
  margin:8px 0 0;
  padding-left:1.2em;
  display:grid;
  gap:8px;
}
.release-notes li{ margin:0; }
.release-notes p{ margin:0; max-width:70ch; }
@media (max-width:640px){
  .release-notes{ max-width:100%; }
  .release-notes ul{ padding-left:1em; }
}

/* Detailed bullets */
.feature-bullets{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  gap:14px 24px;
  margin:26px 0 0;
}
.feature-bullets li{ margin-left:1.2em; }

.feature-groups{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px 24px;
  margin:20px 0 0;
}
.feature-group h4{
  margin:0 0 8px;
  font-size:17px;
  color:var(--text);
}
.feature-group ul{
  margin:0;
  padding-left:1.1em;
  color:var(--muted);
  display:grid;
  gap:6px;
}
.feature-group li{ margin-left:0; }
@media (max-width:720px){
  .feature-groups{ grid-template-columns:1fr; }
}

@media (min-width: 624px) and (max-width: 919px){
  .features > .card:nth-child(3){
    grid-column: 1 / -1;
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width:480px){
  .features{ gap:12px; }
}

/* Store badges stack + size */
.cta.store-badges{ display:flex; flex-direction:column; align-items:center; gap:12px; width:100%; }
.store-badge img{ display:block; height:56px; }
@media (max-width:480px){ .store-badge img{ height:48px; } }

/* ===== Footer (grid, centered social) ===== */
.footer{
  position:sticky; bottom:0; z-index:900;
  background:rgba(15,30,24,.85);
  border-top:1px solid rgba(255,255,255,.08);
  backdrop-filter:saturate(180%) blur(8px);
  padding:10px 12px; margin:40px 0 10px;
  color:var(--muted); font-size:14px;
  border-radius:12px;

  /* 3-column layout */
  display:grid; grid-template-columns:1fr auto 1fr;
  align-items:center; gap:12px;
}
.footer a{ color:var(--muted); text-decoration:none; }
.footer a:hover{ color:var(--text); }

.footer .left{ justify-self:start; }
.footer .center{ justify-self:center; display:flex; align-items:center; gap:12px; }
.footer .right{ justify-self:end; }

/* Social icon + badge */
.footer .social{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  color:var(--muted); text-decoration:none;
}
.footer .social:hover{ color:var(--text); border-color:rgba(255,255,255,.25); transform:translateY(-1px); }
.footer .social svg{ width:18px; height:18px; display:block; fill:currentColor; }

.fb-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  color:var(--text); text-decoration:none; background:transparent;
  font-weight:600; font-size:14px;
}
.fb-badge:hover{ border-color:rgba(255,255,255,.25); transform:translateY(-1px); }
.fb-badge svg{ width:16px; height:16px; fill:currentColor; }

/* a11y helper */
.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Mobile footer stack */
@media (max-width:520px){
  .footer{ grid-template-columns:1fr; row-gap:8px; text-align:center; }
  .footer .left, .footer .right, .footer .center{ justify-self:center; }
}

/* ===== Cookie banner ===== */
#cookie-banner{
  position:fixed; left:0; right:0; bottom:0; z-index:9999;
  background:var(--card);
  border-top:1px solid rgba(255,255,255,.12);
  border-radius:12px 12px 0 0;
  box-shadow:0 -12px 30px rgba(0,0,0,.35);
  padding:10px 12px; display:none; align-items:center; gap:10px;
  width:100%; margin:0;
}
#cookie-banner p{
  margin:0; color:var(--muted); font-size:14px; line-height:1.3; flex:1;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
#cookie-banner .btns{ display:flex; gap:8px; flex-shrink:0; }
#cookie-banner button{ border:1px solid rgba(255,255,255,.2); border-radius:10px; padding:8px 12px; cursor:pointer; font-size:14px; }
#cookie-banner .accept{ background:linear-gradient(180deg, var(--accent), var(--accent-2)); color:#042016; font-weight:800; }
#cookie-banner .decline{ background:transparent; color:var(--text); }

/* iOS safe area for the banner */
@supports (padding: max(0px)){
  #cookie-banner{ padding-bottom:max(10px, env(safe-area-inset-bottom)); }
}
@media (max-width:360px){
  #cookie-banner{ flex-wrap:wrap; }
  #cookie-banner .btns{ width:100%; justify-content:flex-end; }
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.screenshot-grid figure { margin: 0; }
.screenshot-grid figcaption {
  margin-top: 6px;
  font-size: .95rem;
  color: var(--muted);
  text-align: center;
}
.button-link { text-decoration: underline; }
.shot figure { margin: 0; }
.shot-img { width: 100%; height: auto; border-radius: 12px; display: block; }
.shot figcaption { margin-top: 6px; text-align: center; color: var(--muted); font-size: .95rem; }

/* Screenshot lightbox */
.screenshot-lightbox{
  position:fixed; inset:0; z-index:3000;
  background:rgba(0,0,0,.82);
  display:flex; align-items:center; justify-content:center;
  padding:18px;
}
.screenshot-lightbox.is-hidden{
  display:none;
  visibility:hidden;
  pointer-events:none;
}
.screenshot-lightbox .lightbox-inner{
  background:#0f1e18;
  border:1px solid rgba(255,255,255,.15);
  border-radius:14px;
  box-shadow:0 20px 50px rgba(0,0,0,.45);
  max-width:95vw; max-height:90vh;
  padding:14px; display:flex; flex-direction:column; gap:10px; align-items:center;
}
.screenshot-lightbox img{
  max-width:95vw; max-height:80vh;
  object-fit:contain; border-radius:12px; display:block;
}
.screenshot-lightbox .lightbox-caption{
  color:var(--muted); text-align:center; margin:0; font-size:15px;
}
.screenshot-lightbox .lightbox-close{
  align-self:flex-end;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:8px;
  color:var(--text);
  cursor:pointer;
  padding:6px 10px;
  font-size:14px;
}
