
/* FINAL OVERRIDE: never show the full NB logo as a page/banner image */
body > img,
main > img,
section > img,
.hero > img,
.hero-copy > img,
.full-brand-logo,
img[src*="nb-app-studio-logo"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* Keep only the small NB mark in the header/phone/footer */
.brand-mark-img,
.footer-brand img,
.app-logo-image {
  display: block !important;
}

@media (max-width: 520px) {
  .site-header { position: sticky !important; top: 0 !important; }
  .hero { padding-top: 48px !important; }
  .hero-grid { gap: 18px !important; }
  .hero-card { min-height: 235px !important; }
  .phone-frame { width: min(200px, 56vw) !important; height: 285px !important; }
}

:root {
  --navy: #081a33;
  --navy-2: #0d274a;
  --blue: #1d74ff;
  --blue-soft: #d9eaff;
  --sky: #67b7ff;
  --white: #ffffff;
  --off-white: #f6f9ff;
  --text: #11213a;
  --muted: #62718a;
  --card: rgba(255, 255, 255, 0.88);
  --border: rgba(29, 116, 255, 0.16);
  --shadow: 0 24px 70px rgba(8, 26, 51, 0.14);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 249, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(8, 26, 51, 0.08);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(29, 116, 255, 0.28);
  letter-spacing: -1px;
}

.brand-text {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #253b5c;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-button {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(8, 26, 51, 0.08);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px auto;
}

.section {
  padding: 92px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 110px;
  background:
    radial-gradient(circle at top left, rgba(103, 183, 255, 0.42), transparent 34%),
    radial-gradient(circle at right, rgba(29, 116, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(29, 116, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 116, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h3 {
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 650px;
  color: #445774;
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #0057d9);
  box-shadow: 0 16px 30px rgba(29, 116, 255, 0.28);
}

.button.secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
}

.small-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: min(320px, 82vw);
  height: 620px;
  padding: 16px;
  border-radius: 44px;
  background: linear-gradient(145deg, #07162b, #123c73);
  box-shadow: var(--shadow);
}

.phone-screen {
  height: 100%;
  padding: 28px 22px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(103, 183, 255, 0.34), transparent 42%),
    linear-gradient(180deg, #102f5a, #081a33);
  color: var(--white);
  overflow: hidden;
}

.app-topbar {
  display: flex;
  gap: 6px;
  margin-bottom: 42px;
}

.app-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.app-logo {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.phone-screen h2 {
  margin: 28px 0 8px;
  color: var(--white);
  font-size: 2rem;
}

.phone-screen p {
  color: rgba(255, 255, 255, 0.72);
}

.mini-card {
  height: 72px;
  margin-top: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.mini-card.short {
  width: 76%;
  height: 58px;
  margin-top: 14px;
}

.mini-row {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.mini-row span {
  flex: 1;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.tech-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(29, 116, 255, 0.2);
}

.ring-one {
  width: 470px;
  height: 470px;
}

.ring-two {
  width: 610px;
  height: 610px;
  opacity: 0.6;
}

.about-section,
.values-section {
  background: var(--white);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.section-text {
  color: var(--muted);
  font-size: 1.1rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.centered p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.app-card,
.value-card,
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 50px rgba(8, 26, 51, 0.08);
}

.app-card {
  padding: 24px;
}

.app-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  background: linear-gradient(135deg, #ffffff, #eef6ff);
}

.app-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 22px;
  color: var(--white);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.app-icon.scripture {
  background: linear-gradient(135deg, #07162b, #1d74ff);
}

.app-icon.notes {
  background: linear-gradient(135deg, #255b8f, #67b7ff);
}

.app-icon.dash {
  background: linear-gradient(135deg, #102f5a, #8fcfff);
}

.status {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 116, 255, 0.1);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.status.muted {
  color: #48627f;
  background: rgba(8, 26, 51, 0.08);
}

.app-content p,
.app-content li,
.value-card p,
.contact-card p {
  color: var(--muted);
}

.app-content ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

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

.value-card {
  padding: 28px;
}

.value-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.contact-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.contact-card h2,
.contact-card p {
  color: var(--white);
}

.contact-card p {
  max-width: 660px;
  opacity: 0.78;
}

.footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #061326;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--white);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
    border-radius: 14px;
  }

  .hero-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 76px;
  }

  .hero-card {
    min-height: 480px;
  }

  .phone-frame {
    height: 500px;
  }

  .app-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .app-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .contact-card,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 68px 0;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .contact-card {
    padding: 28px;
  }
}

/* --- NB App Studio polish update --- */
.brand-mark-img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(29, 116, 255, 0.22);
  background: var(--white);
}

.app-logo-image {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.full-brand-logo {
  display: block;
  width: min(360px, 100%);
  margin: 0 0 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(8, 26, 51, 0.08);
}

.brand-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(8, 26, 51, 0.06);
}

.app-icon-img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(8, 26, 51, 0.22);
  background: var(--navy);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--white);
}

.footer-brand strong {
  display: block;
  color: var(--white);
  line-height: 1.2;
}

.footer-brand p {
  margin: 2px 0 0;
}

.page-section {
  min-height: 70vh;
  background:
    radial-gradient(circle at top left, rgba(103, 183, 255, 0.32), transparent 34%),
    linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}

.narrow-page {
  max-width: 840px;
}

.narrow-page h1 {
  font-size: clamp(3rem, 7vw, 5rem);
}

.narrow-page p {
  color: var(--muted);
  font-size: 1.08rem;
}

.simple-card {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(8, 26, 51, 0.06);
}

.simple-card h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.simple-card a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero-grid {
    gap: 24px;
  }

  .hero-card {
    min-height: 360px;
  }

  .phone-frame {
    width: min(260px, 72vw);
    height: 430px;
    border-radius: 36px;
  }

  .phone-screen {
    padding: 22px 18px;
    border-radius: 26px;
  }

  .app-topbar {
    margin-bottom: 26px;
  }

  .app-logo-image {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .phone-screen h2 {
    font-size: 1.55rem;
  }

  .mini-card {
    height: 56px;
    margin-top: 18px;
  }

  .mini-card.short {
    height: 46px;
  }

  .mini-row {
    margin-top: 22px;
  }

  .mini-row span {
    height: 38px;
  }

  .ring-one {
    width: 340px;
    height: 340px;
  }

  .ring-two {
    width: 440px;
    height: 440px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 72px;
  }

  .hero-card {
    min-height: 315px;
  }

  .phone-frame {
    width: min(230px, 68vw);
    height: 360px;
    padding: 12px;
  }

  .phone-screen h2 {
    margin-top: 20px;
    font-size: 1.35rem;
  }

  .phone-screen p {
    font-size: 0.9rem;
  }

  .app-logo-image {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .app-icon-img {
    width: 82px;
    height: 82px;
    border-radius: 22px;
  }

  .full-brand-logo {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}


/* Emergency mobile polish: prevents brand images from taking over the page */
.site-header img,
.brand img,
.brand-mark-img {
  max-width: 46px !important;
  max-height: 46px !important;
}

img.full-brand-logo {
  max-width: 220px !important;
  height: auto !important;
  margin: 0 auto 22px !important;
}

@media (max-width: 520px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(3.05rem, 15vw, 4.55rem);
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .hero-card {
    min-height: 260px !important;
    margin-top: 16px;
  }

  .phone-frame {
    width: min(215px, 62vw) !important;
    height: 320px !important;
  }

  .apps-grid {
    gap: 22px;
  }
}


/* --- Mobile logo/hero final polish --- */
.brand-mark-img,
.footer-brand img {
  object-fit: contain !important;
  padding: 5px !important;
  background: #ffffff !important;
}

.app-logo-image {
  object-fit: contain !important;
  padding: 8px !important;
  background: #ffffff !important;
}

.app-icon-img {
  object-fit: cover !important;
}

@media (min-width: 901px) {
  .brand-mark-img {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    border-radius: 16px;
  }

  .nav {
    min-height: 86px;
  }
}

@media (max-width: 520px) {
  .nav {
    min-height: 66px;
  }

  .brand-mark-img {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    border-radius: 16px;
    padding: 4px !important;
  }

  .brand-text {
    font-size: 1.02rem;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-card {
    min-height: 245px !important;
    margin-top: 10px;
  }

  .phone-frame {
    width: min(205px, 58vw) !important;
    height: 295px !important;
    padding: 11px !important;
  }

  .phone-screen {
    padding: 18px 15px !important;
  }

  .app-logo-image {
    width: 54px !important;
    height: 54px !important;
    border-radius: 16px;
    padding: 6px !important;
  }

  .phone-screen h2 {
    font-size: 1.22rem;
    margin-top: 17px;
  }

  .mini-card {
    height: 44px;
    margin-top: 14px;
  }

  .mini-card.short {
    height: 36px;
  }

  .ring-one {
    width: 285px;
    height: 285px;
  }

  .ring-two {
    width: 360px;
    height: 360px;
  }

  .full-brand-logo,
  img[src*="nb-app-studio-logo"] {
    display: none !important;
  }
}


/* --- Last mobile polish: header spacing + smaller phone preview --- */
main,
.section,
#top,
#about,
#apps,
#values,
#contact {
  scroll-margin-top: 92px;
}

@media (max-width: 520px) {
  .site-header {
    position: sticky !important;
    top: 0 !important;
  }

  .nav {
    min-height: 64px !important;
  }

  .hero {
    padding-top: 50px !important;
    padding-bottom: 44px !important;
  }

  .hero-grid {
    gap: 14px !important;
  }

  .eyebrow {
    font-size: 0.68rem !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 10px !important;
  }

  h1 {
    font-size: clamp(2.75rem, 13.6vw, 4.1rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.072em !important;
    margin-bottom: 20px !important;
  }

  .hero-subtitle {
    font-size: 1.04rem !important;
    line-height: 1.58 !important;
  }

  .hero-actions {
    margin-top: 26px !important;
    margin-bottom: 16px !important;
  }

  .small-note {
    margin-bottom: 0 !important;
  }

  .hero-card {
    min-height: 222px !important;
    margin-top: 8px !important;
    overflow: visible !important;
  }

  .phone-frame {
    width: min(188px, 54vw) !important;
    height: 268px !important;
    padding: 10px !important;
    border-radius: 32px !important;
  }

  .phone-screen {
    padding: 15px 13px !important;
    border-radius: 24px !important;
  }

  .app-topbar {
    gap: 5px !important;
    margin-bottom: 18px !important;
  }

  .app-topbar span {
    width: 7px !important;
    height: 7px !important;
  }

  .app-logo-image {
    width: 48px !important;
    height: 48px !important;
    border-radius: 15px !important;
    padding: 5px !important;
  }

  .phone-screen h2 {
    font-size: 1.08rem !important;
    margin: 14px 0 5px !important;
  }

  .phone-screen p {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  .mini-card {
    height: 36px !important;
    margin-top: 12px !important;
    border-radius: 14px !important;
  }

  .mini-card.short {
    height: 30px !important;
    margin-top: 9px !important;
  }

  .mini-row {
    margin-top: 14px !important;
    gap: 8px !important;
  }

  .mini-row span {
    height: 24px !important;
    border-radius: 10px !important;
  }

  .ring-one {
    width: 245px !important;
    height: 245px !important;
  }

  .ring-two {
    width: 315px !important;
    height: 315px !important;
  }
}

/* --- Tiny app card polish: give status badges breathing room under icons --- */
.app-card > .app-icon,
.app-card > .app-icon-img {
  margin-bottom: 22px !important;
}

.app-card.featured > .app-icon-img {
  margin-bottom: 0 !important;
}

@media (max-width: 900px) {
  .app-card.featured > .app-icon-img {
    margin-bottom: 22px !important;
  }
}

@media (max-width: 520px) {
  .app-card {
    padding: 28px 24px !important;
  }

  .app-card > .app-icon,
  .app-card > .app-icon-img {
    margin-bottom: 20px !important;
  }

  .status {
    margin-bottom: 16px !important;
  }
}
