/* AICheck native app styling — only applies when native-shell.js has confirmed a
   Capacitor build and set html.is-native. The public website is unaffected. */

html.is-native,
html.is-native body { height: 100%; overflow: hidden; }
html.is-native .page { height: 100%; min-height: 0; }

/* Hide every web-page tell. */
html.is-native .nav,
html.is-native > body footer,
html.is-native .pricing { display: none !important; }

/* ---- native header ---- */
.nx-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 10px calc(16px + env(safe-area-inset-left));
  background: rgba(242, 249, 255, .96);
  border-bottom: 1px solid var(--border-soft);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.nx-brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.nx-brand b { font-weight: 800; }
.nx-mark { width: 27px; height: 27px; display: grid; place-items: center; }
.nx-mark svg { width: 27px; height: 27px; }
.nx-pro {
  min-height: 44px; padding: 9px 17px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent); background: var(--accent-dim);
  font-weight: 750; font-size: 15px; cursor: pointer;
}
.nx-pro:active { transform: scale(.97); }

/* ---- scrollable content ---- */
html.is-native .section {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px calc(16px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
html.is-native .section::-webkit-scrollbar { display: none; }
.nx-pane[hidden] { display: none; }

html.is-native .detector-head { text-align: left; max-width: none; margin: 4px 0 16px; }
html.is-native .detector-head .eyebrow { margin-bottom: 8px; }
html.is-native .detector-head h1 { font-size: 27px; line-height: 1.1; margin: 0 0 8px; }
html.is-native .detector-head p.sub { font-size: 16px; margin: 0 0 8px; }
html.is-native .detector-head p.caveat { font-size: 15px; }
html.is-native .detector-head .learn-link { min-height: 44px; font-size: 15px; }
html.is-native .scan-steps { margin: 0 0 12px; }
html.is-native .card { max-width: none; }
html.is-native textarea { min-height: 160px; }
html.is-native .how,
html.is-native .faq { max-width: none; margin: 26px 0 0; }
html.is-native .how h2,
html.is-native .faq h2 { font-size: 21px; }

.nx-links { margin: 26px 0 6px; text-align: center; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; }
.nx-links a { display:inline-flex;align-items:center;min-height:44px;color: var(--muted); font-size: 15px; text-decoration: none; }
.nx-links a:active { color: var(--text); }
.nx-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.nx-link-button:active { color: var(--text); }
.nx-copy { margin: 0 0 4px; text-align: center; color: var(--muted-dim); font-size: 15px; }

/* ---- bottom tab bar ---- */
.nx-tabs {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 7px calc(24px + env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left));
  background: rgba(255,255,255,.95);
  border-top: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
}
.nx-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 7px 4px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted-dim);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.nx-tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nx-tab.is-active { color: var(--accent); }
.nx-tab.is-active svg { stroke: var(--accent); }
.nx-tab:active { transform: scale(.97); }
