/* static/style.css */
:root { --fg:#111827; --muted:#6b7280; --bg:#f3f4f6; --card:#ffffff; --accent:#4f46e5; }
*{box-sizing:border-box}
body{margin:0;font-family:'Segoe UI',system-ui,Roboto,Arial,sans-serif;color:var(--fg);background:var(--bg)}
.container{max-width:1000px;margin:0 auto;padding:1rem}
.topbar{background:var(--card);border-bottom:1px solid #e5e7eb}
.topbar .container{display:flex;align-items:center;justify-content:space-between}
.brand{font-weight:700;color:var(--fg);text-decoration:none}
nav a{margin-left:1rem;color:var(--muted);text-decoration:none}
nav a:hover{color:var(--fg)}
h1{margin:1rem 0}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin-top:1rem}
.card{display:block;background:var(--card);padding:1rem;border-radius:0.75rem;border:1px solid #e5e7eb;text-decoration:none;color:inherit}
.card:hover{border-color:var(--accent)}
footer.footer{margin-top:2rem;padding:1rem 0;color:var(--muted)}

/* Section video container */
.video-wrap{
  background:var(--card);
  border:1px solid #e5e7eb;
  border-radius:.75rem;
  padding:.75rem;
  margin-bottom:1.25rem;
}
.video-wrap video{
  width:100%;
  aspect-ratio:16/9; /* default: landscape 16:9 */
  height:auto;
  border-radius:.5rem;
}

/* Portrait/tall hero videos */
.video-wrap.portrait{
  display:flex;
  justify-content:center;
}
.video-wrap.portrait video{
  width:100%;
  max-width:420px;
  aspect-ratio:9/16;
  height:auto;
  border-radius:.5rem;
  object-fit:cover;
}
@media (min-width:1280px){
  .video-wrap.portrait video{ max-width:480px; }
}

.faq-list{margin-top:1rem}
.faq-item{background:var(--card);border:1px solid #e5e7eb;border-radius:.75rem;margin-bottom:.75rem;overflow:hidden}
.faq-q{width:100%;text-align:left;padding:0.9rem 1rem;background:transparent;border:0;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-weight:600}
.faq-a{max-height:0;overflow:hidden;padding:0 1rem;transition:max-height .25s ease}
.faq-item.open .faq-a{padding:0 1rem 1rem}
.faq-item.open .chev{transform:rotate(180deg)}
.faq-a p{margin-top:1rem}
.faq-a img,.faq-video{max-width:100%;height:auto;border-radius:.5rem;margin-top:1rem}
.caption{color:var(--muted);font-size:.9rem}
pre.code{background:#0b1020;color:#d6e7ff;padding:1rem;border-radius:.5rem;overflow:auto;margin-top:1rem}
.copy-btn{margin-top:.5rem;padding:.4rem .7rem;border:1px solid #e5e7eb;border-radius:.4rem;background:#fff;cursor:pointer}

/* Homepage video */
.home-hero { display:flex; justify-content:center; margin:1.25rem 0 1.75rem; }
.home-hero video {
  width:90%; max-width:900px; aspect-ratio:16 / 9; height:auto; border-radius:0.75rem;
  object-fit:cover; box-shadow:0 3px 14px rgba(0,0,0,.15);
}

/* Optional overlay styles for homepage video */
.video-wrapper{ position:relative; width:min(100%,900px); border-radius:.75rem; overflow:hidden; box-shadow:0 3px 14px rgba(0,0,0,.15); }
.video-wrapper video{ width:100%; height:auto; display:block; border-radius:0.75rem; object-fit:cover; }
.video-overlay{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; pointer-events:none; background:rgba(0,0,0,.25); }
.video-overlay h2{ color:#fff; font-size:2rem; font-weight:600; text-shadow:0 2px 10px rgba(0,0,0,.7); letter-spacing:.5px; }

/* === Credential card styles === */
.cred-card{ background:var(--card); border:1px solid #e5e7eb; border-radius:.75rem; padding:1rem; margin:1rem 0 1.25rem; }
.cred-card h3{ margin:0 0 .25rem; }
.cred-card .muted{ color:var(--muted); margin:.25rem 0 .75rem; }
.cred-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:.6rem; }
.label{ display:block; font-size:.85rem; color:var(--muted); margin-bottom:.25rem; }
.mono{ font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace; background:#f8fafc; border:1px solid #e5e7eb; border-radius:.5rem; padding:.5rem .6rem; }
.mono.wrap{ word-break: break-all; }

/* === Centered login page layout === */
body.login-page{ display:flex; flex-direction:column; min-height:100vh; background:linear-gradient(180deg,#f9fafb 0%,#f3f4f6 100%); }
.login-container{ flex:1; display:flex; justify-content:center; align-items:center; }
.login-card{ background:var(--card); border:1px solid #e5e7eb; border-radius:.75rem; padding:2rem; max-width:440px; width:100%; box-shadow:0 8px 20px rgba(0,0,0,.08); }
footer.footer{ margin-top:auto; }

/* === Gallery / carousel (for UHF resolution PNGs, etc.) === */
.gallery{ position:relative; margin-top:1rem; }
.gal-slides{ position:relative; }
.gal-slide{ display:none; width:100%; height:auto; border-radius:.5rem; }
.gal-slide.active{ display:block; }
.gal-btn{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  background:#fff; border:1px solid #e5e7eb; border-radius:.5rem; width:36px; height:36px;
  display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.gal-btn.prev{ left:8px; }
.gal-btn.next{ right:8px; }
.gal-dots{ display:flex; gap:6px; justify-content:center; margin-top:.5rem; }
.gal-dots .dot{ width:8px; height:8px; border-radius:999px; background:#d1d5db; cursor:pointer; }
.gal-dots .dot.on{ background:var(--accent); }
/* Make all FAQ body text the same gray + size */
.faq-a,
.faq-a * {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
/* (Optional) keep bold text darker like older cards */
.faq-a strong { color: var(--fg); }
