:root{
  --bg:#eef1f5;
  --card:#ffffff;
  --text:#101828;
  --muted:#667085;
  --line:#e4e7ec;
  --shadow: 0 12px 28px rgba(16,24,40,.12);
  --blue:#2563eb;
  --blue2:#1d4ed8;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* Top bar */
.topbar{
  height:54px;
  display:flex;
  align-items:center;
  padding:0 18px;
  color:#fff;
  font-weight:700;
  letter-spacing:.5px;
  background:linear-gradient(#3a3a3a,#1f1f1f);
}

.wrap{
  max-width:1120px;
  margin:26px auto 40px;
  padding:0 18px;
}

.hero{
  text-align:center;
  margin:6px 0 18px;
}

.hero h1{
  margin:0 0 8px;
  font-size:30px;
  font-weight:800;
}

.hero p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.panel{
  background:var(--card);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:18px;
}

/* Goal tabs */
.tabs{
  display:flex;
  gap:12px;
  padding:6px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid var(--line);
}

.tab{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px;
  border-radius:10px;
  border:1px solid #d0d5dd;
  background:#fff;
  cursor:pointer;
  font-weight:700;
  white-space:nowrap;
}

.tab.active{
  background:linear-gradient(#2f6feb,#1f57d6);
  border-color:#1f57d6;
  color:#fff;
  box-shadow:0 6px 18px rgba(37,99,235,.28);
}

.stephead{
  display:flex;
  align-items:center;
  gap:14px;
  margin:18px 0 10px;
  font-weight:800;
}

.stephead .line{
  height:1px;
  background:var(--line);
  flex:1;
}

.grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
}

.box{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:16px;
}

.formrow{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.field label{
  font-size:13px;
  font-weight:700;
  color:#344054;
}

.field input,
.field select{
  border:1px solid #d0d5dd;
  border-radius:10px;
  padding:11px 12px;
  font-size:14px;
}

.full{ grid-column:1 / -1; }

.qrCard{ text-align:center; }

.primaryBtn{
  width:100%;
  border:none;
  border-radius:12px;
  padding:14px;
  font-weight:900;
  font-size:16px;
  color:#fff;
  background:linear-gradient(#2f6feb,#1f57d6);
  cursor:pointer;
  box-shadow:0 10px 22px rgba(37,99,235,.28);
}

.qrPreview{
  margin:16px auto 10px;
  width: 100%;
  max-width: 300px;

  border-radius:12px;
  background:#fff;
  border:1px solid var(--line);

  display:flex;
  flex-direction: column;
  align-items: center;

  padding: 12px 10px 10px;
}


.watermark{
  position:absolute;
  bottom:0;
  width:100%;
  padding:7px;
  font-size:11px;
  background:rgba(248,250,252,.9);
  border-top:1px solid var(--line);
}

.stats{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fafc;
  padding:12px;
  font-size:14px;
  font-weight:800;
}

.stats small{
  display:block;
  margin-top:6px;
  color:var(--muted);
}

.status{
  margin-top:10px;
  padding:10px;
  border-radius:10px;
  border:1px solid var(--line);
  display:none;
  font-size:13px;
}

.status.ok{
  display:block;
  background:#f6fffb;
  border-color:#a6f4c5;
  color:#027a48;
}

.status.error{
  display:block;
  background:#fffbfa;
  border-color:#fda29b;
  color:#b42318;
}

.footerBrand{
  text-align:center;
  margin-top:18px;
  color:#475467;
  font-size:13px;
  font-weight:700;
}

.footerBrand span{
  color:#2563eb;
}

@media (max-width:980px){
  .grid{ grid-template-columns:1fr; }
  .tabs{ flex-wrap:wrap; }
  .tab{ flex:1 1 calc(50% - 12px); }
}
.mainNav{
  background:#ffffff;
  border-bottom:1px solid #e4e7ec;
}

.navInner{
  max-width:1120px;
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  font-weight:900;
  font-size:18px;
  color:#111;
  text-decoration:none;
}

.navLinks a{
  margin-left:20px;
  font-size:14px;
  font-weight:700;
  color:#475467;
  text-decoration:none;
}

.navLinks a:hover{
  color:#2563eb;
}

@media(max-width:720px){
  .navLinks{ display:none; }
}
.infoSection.alt{
  background:#f8fafc;
  padding:60px 18px;
}

.articles{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  max-width:1120px;
  margin:0 auto;
}

.article{
  background:#fff;
  padding:20px;
  border-radius:12px;
  font-weight:800;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

@media(max-width:900px){
  .articles{ grid-template-columns:1fr; }
}
.testimonials{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
  max-width:900px;
  margin:0 auto;
}

blockquote{
  background:#fff;
  padding:24px;
  border-radius:14px;
  font-weight:700;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

blockquote span{
  display:block;
  margin-top:10px;
  font-size:13px;
  color:#555;
}

@media(max-width:900px){
  .testimonials{ grid-template-columns:1fr; }
}
/* ============================= */
/* INFO SECTIONS (POST-PRODUCT) */
/* ============================= */

.infoSection {
  padding: 80px 20px;
  background: #f8fafc;
}

.infoSection.alt {
  background: #ffffff;
}
@media (min-width: 981px) {
  .infoSection {
    padding: 48px 20px;
  }
}


.infoSection h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 40px;
  color: #101828;
}

/* Centered content container */
.infoSection > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================= */
/* HOW IT WORKS */
/* ============================= */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 22px;
  box-shadow: 0 10px 24px rgba(16,24,40,.08);
  text-align: center;
}

.step span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 12px;
}

.step h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.step p {
  font-size: 14px;
  color: #667085;
}

/* ============================= */
/* ARTICLES */
/* ============================= */

.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(16,24,40,.08);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.article:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(16,24,40,.14);
}

/* ============================= */
/* TESTIMONIALS */
/* ============================= */

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonials blockquote {
  background: #ffffff;
  border-radius: 14px;
  padding: 26px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(16,24,40,.08);
}

.testimonials span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #667085;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 900px) {
  .steps,
  .articles {
    grid-template-columns: 1fr;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }
}
/* ============================= */
/* ANALYTICS UI v1 */
/* ============================= */

.analytics {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
}

.analyticsHeader h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.analyticsHeader p {
  margin: 4px 0 14px;
  font-size: 13px;
  color: #667085;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.metric {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 3px 8px rgba(16,24,40,.04);
}

.metric .label {
  font-size: 11px;
  font-weight: 700;
  color: #667085;
  text-transform: uppercase;
}

.metric .value {
  font-size: 26px;
  font-weight: 900;
  color: #101828;
}

.metric.highlight .value {
  color: #2563eb;
}

.analyticsFooter {
  margin-top: 14px;
  text-align: center;
}

.successBadge {
  font-size: 14px;
  font-weight: 700;
  color: #027a48;
  margin-bottom: 6px;
}

.upgradeHint {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 6px;
  opacity: .6;
}

#stats-note {
  font-size: 12px;
  color: #667085;
  font-weight: 600;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.faqList {
  max-width: 820px;
  margin: 0 auto;
}

.faqItem {
  margin-bottom: 22px;
}

.faqItem h4 {
  margin-bottom: 6px;
}


  font-size: 14px;
  font-weight: 500;
  color: #333;

  cursor: pointer;
  transition: all 0.2s ease;
}

.secondaryBtn:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.45);
}

.secondaryBtn:active {
  transform: scale(0.98);
}
/* Secondary action: Create New QR */
.secondaryBtn {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;

  background: rgba(47, 107, 255, 0.05);
  border: 1px dashed rgba(47, 107, 255, 0.35);
  border-radius: 12px;

  font-size: 14px;
  font-weight: 500;
  color: #2F6BFF;

  cursor: pointer;
  transition: all 0.2s ease;
}

.secondaryBtn:hover {
  background: rgba(47, 107, 255, 0.10);
  border-color: rgba(47, 107, 255, 0.6);
}

.secondaryBtn:active {
  transform: scale(0.985);
}

.helperText {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #666;
  text-align: center;
}
/* QR permanent link emphasis */
.qrAccessNote {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f0f6ff;
  border-left: 4px solid #2563eb;
  border-radius: 6px;
  font-size: 13px;
  color: #1e3a8a;
}

/* QR destination URL row — layout fix */
.qrUrlRow {
  display: flex;
  gap: 10px;
  align-items: center;
}

.qrUrlRow input {
  flex: 1;
  min-width: 0;
}

.qrUrlRow button {
  white-space: nowrap;
}

.qrAccessNote strong {
  font-weight: 600;
}

.qrLinkHelper,
.newQrHelper {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280; /* neutral gray */
  text-align: center;
}
/* Create New QR reassurance */
.qrSafetyNote {
  margin-top: 6px;
  font-size: 13px;
  color: #475569;
  text-align: center;
}

.qrSafetyNote strong {
  color: #0f172a;
  font-weight: 500;
}
/* QR reliability – DO NOT REMOVE */
#qr,
#qr * {
  transform: none !important;
}

#qr canvas,
#qr img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.qrPreview,
.qrBox,
.qrContainer {
  transform: none !important;
  scale: 1 !important;
}

/* 🔒 QR SCAN SAFETY — DO NOT REMOVE */
#qr,
#qr img {
  transform: none !important;
  filter: none !important;
}

.qrPreview {
  transform: none !important;
  scale: 1 !important;
}

/* Ensure watermark NEVER overlays QR */
.qrPreview .watermark {
  position: relative;
  margin-top: 10px;
}
/* ===================================================== */
/* ✅ MOBILE SAFE-AREA + TAP FIX (FINAL, CLEAN)          */
/* ===================================================== */

/* Ensure content does not sit under iOS Safari UI */
.wrap {
  padding-bottom: 120px; /* fallback */
}

@supports (padding: env(safe-area-inset-bottom)) {
  .wrap {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }
}

/* Improve tap reliability (no interference) */
button,
.tab,
.primaryBtn,
.secondaryBtn {
  touch-action: manipulation;
}

/* ========================================= */
/* FINAL MOBILE UX POLISH — V1 LOCKED        */
/* ========================================= */

@media (max-width: 480px) {

  /* ============================== */
  /* 1️⃣ QR MOMENT — MOBILE HERO    */
  /* ============================== */

  .qrPreview {
    display: flex;
    flex-direction: column;
    align-items: center;

    height: auto;
    width: 100%;
    max-width: 92%;
    margin: 12px auto 8px;
    padding: 14px 12px 8px;

    border-radius: 14px;

    /* softened one notch to reduce “boxed” feel */
    box-shadow: 0 4px 12px rgba(16,24,40,.05);
  }

  .qrPreview img {
    width: 220px !important;
    height: 220px !important;
    max-width: 100%;          /* 🔒 defensive — prevents overflow */
    padding: 8px !important;
    margin-bottom: 8px;

    background: #ffffff;
    border-radius: 10px;
  }

  /* ============================== */
  /* 2️⃣ WATERMARK — BOUND + CALM   */
  /* ============================== */

  .qrPreview .watermark {
    position: static;
    margin-top: 4px;

    padding: 0;
    background: transparent;
    border: none;

    font-size: 11px;
    text-align: center;
    color: #667085;

    opacity: 0.85;
    letter-spacing: 0.1px;
  }

  /* ============================== */
  /* 3️⃣ ACTION AREA — QUIETER      */
  /* ============================== */

  .primaryBtn {
    padding: 12px;
    font-size: 15px;
  }

  .secondaryBtn {
    padding: 10px;
    font-size: 13px;
    margin-top: 8px;
  }

  .qrSafetyNote {
    margin-top: 4px;
    font-size: 12px;
    color: #475569;
  }

  /* ============================== */
  /* 4️⃣ PERMANENT LINK — BREATHING */
  /* ============================== */

  .qrAccessNote {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;

    font-size: 13px;
    line-height: 1.4;
  }

  /* tightened selector set (no behavior change) */
  .qr-url-row,
  .qrDestination {
    gap: 8px;
  }

  .qr-url-row input {
    font-size: 13px;
  }

  /* 📱 Mobile — QR Destination URL ergonomics */
  .qrUrlRow {
    gap: 12px;
  }

  .qrUrlRow input {
    font-size: 14px;
    padding: 10px 12px;
  }

  .qrUrlRow button {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 10px;
  }


  /* ============================== */
  /* 5️⃣ ANALYTICS — FLAT RHYTHM    */
  /* ============================== */

  .analytics {
    margin-top: 12px;
  }

  .stats {
    gap: 8px;
    padding: 10px;
  }

  .metric {
    padding: 10px;
    border-radius: 14px;

    /* calm, trustworthy elevation */
    box-shadow: 0 4px 10px rgba(16,24,40,.05);
  }

  .metric .label {
    color: #7a8699;
    letter-spacing: 0.4px;
  }

  .metric .value {
    font-size: 22px;
    line-height: 1.1;
  }
}

  /* ============================== */
  /* 6 FOOTER HEADER BLOCK  */
  /* ============================== */
.staticFooterNav {
  border-top: 1px solid #e4e7ec;
  background: #f8fafc;
  margin-top: 48px;
}

.staticFooterInner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;     /* ✅ center horizontally */
  text-align: center;      /* ✅ center text */
  gap: 12px;
}

.staticLogo {
  font-weight: 900;
  font-size: 16px;
  color: #101828;
  text-decoration: none;
}

.staticFooterLinks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center; /* ✅ center links row */
}

.staticFooterLinks a {
  font-size: 14px;
  font-weight: 700;
  color: #475467;
  text-decoration: none;
}

.staticFooterLinks a:hover {
  color: #2563eb;
}

  /* ============================== */
  /* 7 SCAN FLOW BLOCK  */
  /* ============================== */

.scanFlow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  color: #101828;
}

.scanFlow div {
  font-size: 14px;
}

.scanFlowNote {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #667085;
}

@media (max-width: 480px) {
  .scanFlow {
    gap: 6px;
    font-size: 13px;
  }
}

.trustNote.small {
  margin-top: 6px;
  font-size: 12px;
  color: #667085;
  text-align: center;
}

