/* =========================================
   NanoSoft site styles (every page)
   Loaded after style.css. Classes are
   prefixed ns- and reuse its :root tokens.
   ========================================= */

/* ---- Type helpers ---- */
.ns-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.ns-heading {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: 16px;
}
.ns-intro { font-size: 1.125rem; line-height: 1.6; }
.ns-lead { font-size: 1.2rem; line-height: 1.6; max-width: 560px; }

/* ---- Sections ---- */
/* clip, not hidden, so slide-in animations can't widen the page and sticky sidebars still work */
.ns-section { padding: 104px 0; overflow-x: clip; }
.ns-section-gray {
  background: var(--light-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ns-section-head { max-width: 640px; margin-bottom: 48px; }

/* ---- Hero (home and product pages) ---- */
.ns-hero {
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  padding: 96px 0 88px;
}
.ns-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 24px;
}
.ns-hero .ns-lead { margin-bottom: 36px; }
.ns-hero-shot { display: flex; justify-content: center; }
.ns-hero-shot img {
  max-height: 560px;
  width: auto;
  filter: drop-shadow(0 30px 40px rgba(15,23,42,.22));
}

/* ---- Page head (About, FAQ, Contact, Privacy) ---- */
.ns-page-head {
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  padding: 88px 0 72px;
}
.ns-page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 760px;
}

/* ---- Buttons ---- */
.ns-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.ns-btn:hover { background: var(--dark-mid); border-color: var(--dark-mid); color: var(--white); }
.ns-btn-outline { background: var(--white); color: var(--dark); border-color: #cbd5e1; }
.ns-btn-outline:hover { background: var(--white); color: var(--dark); border-color: var(--dark); }
.ns-video {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 18px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  font-weight: 600;
}
.ns-video i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}
.ns-video:hover { border-color: var(--primary); color: var(--primary); }

/* ---- Proof strip ---- */
.ns-proof { border-bottom: 1px solid var(--border); }
.ns-proof ul {
  list-style: none;
  margin: 0;
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}
.ns-proof li { font-size: .95rem; color: var(--body-text); }
.ns-proof strong { color: var(--dark); font-weight: 700; margin-right: 8px; }

/* ---- Product cards ---- */
.ns-product {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  transition: box-shadow .25s, transform .25s;
}
.ns-product:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ns-product-head { display: flex; align-items: center; gap: 14px; }
.ns-product-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.ns-product-icon.green { background: #f0fdf4; color: #166534; }
.ns-product-icon.blue  { background: var(--primary-light); color: var(--primary-dark); }
.ns-product h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.ns-product-sub { font-size: .875rem; color: #64748b; margin-top: 2px; }
.ns-product p { font-size: 1rem; line-height: 1.65; }
.ns-product-shot {
  border-radius: 12px;
  background: var(--light-gray);
  display: flex;
  justify-content: center;
  padding: 24px 24px 0;
  overflow: hidden;
}
.ns-product-shot img { max-height: 260px; width: auto; }
.ns-product-link { margin-top: auto; font-weight: 600; padding: 10px 0; }

/* ---- Feature tiles ---- */
.ns-tile {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.ns-tile i {
  display: flex;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.ns-tile h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.ns-tile p { font-size: .95rem; line-height: 1.6; }

/* ---- Feature rows ---- */
.ns-feature-img img {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.ns-feature h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 800;
  margin-bottom: 16px;
}
.ns-feature p { font-size: 1.0625rem; line-height: 1.65; }
.ns-checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ns-checks li { display: flex; gap: 12px; color: #334155; }
.ns-checks i { color: #16a34a; margin-top: 5px; }

/* ---- Testimonials ---- */
.ns-quote {
  height: 100%;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ns-quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.65; color: #334155; }
.ns-quote figcaption { margin-top: auto; font-weight: 600; color: var(--dark); font-size: .95rem; }

/* ---- Download band ---- */
.ns-cta {
  background: var(--dark);
  border-radius: 20px;
  padding: 72px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.ns-cta h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: 12px;
}
.ns-cta p { color: #cbd5e1; font-size: 1.0625rem; }

/* ---- About ---- */
.ns-photos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 440px;
}
.ns-photos > * { min-height: 0; }
.ns-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.ns-photos > :first-child { grid-row: span 2; }
.ns-story p + p { margin-top: 16px; }
.ns-story p { font-size: 1.0625rem; line-height: 1.7; }
.ns-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.ns-facts > div { background: var(--white); padding: 24px 28px; }
.ns-facts dt {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.ns-facts dd { margin: 6px 0 0; font-size: 1.25rem; font-weight: 700; color: var(--dark); }
.ns-logos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 64px;
}
.ns-logos img { height: 32px; width: auto; filter: grayscale(1); opacity: .6; }
.ns-logos-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 32px;
}

/* ---- FAQ ---- */
.ns-faq-group { scroll-margin-top: 96px; }
.ns-faq-group + .ns-faq-group { margin-top: 56px; }
.ns-faq-group h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.ns-faq details { border-bottom: 1px solid var(--border); }
.ns-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}
.ns-faq summary::-webkit-details-marker { display: none; }
.ns-faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
}
.ns-faq details[open] summary::after { content: "\2212"; }
.ns-faq summary:hover { color: var(--primary); }
.ns-faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
.ns-faq details p { margin: 0; padding: 0 0 20px; max-width: 720px; line-height: 1.7; }
.ns-aside {
  position: sticky;
  top: 96px;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.ns-aside h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.ns-aside ul { list-style: none; padding: 0; margin: 0; }
.ns-aside li a { display: block; padding: 8px 0; font-weight: 500; color: var(--dark-mid); }
.ns-aside li a:hover { color: var(--primary); }
.ns-aside hr { border-color: var(--border); opacity: 1; margin: 20px 0; }

/* ---- Contact ---- */
.ns-info { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.ns-info li { display: flex; gap: 16px; align-items: flex-start; }
.ns-info i {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.ns-info h3 {
  margin: 2px 0 4px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.ns-info p { color: var(--dark); font-weight: 500; }
.ns-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.ns-support-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.ns-support-lead { color: #475569; margin-bottom: 8px; }
.ns-support { list-style: none; padding: 0; margin: 0; }
.ns-support li { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.ns-support li:last-child { border-bottom: 0; padding-bottom: 0; }
.ns-support-text { flex: 1; min-width: 0; }
.ns-support h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 2px; color: var(--dark); }
.ns-support p { font-size: .9375rem; color: #64748b; margin: 0; }
.ns-support .ns-btn { flex: none; white-space: nowrap; }
.ns-product-icon.slate { background: #f1f5f9; color: #334155; }
@media (max-width: 575.98px) {
  .ns-support li { flex-wrap: wrap; }
  .ns-support .ns-btn { width: 100%; }
}

/* ---- Privacy ---- */
.ns-prose section { scroll-margin-top: 96px; }
.ns-prose section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border); }
.ns-prose h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.ns-prose h3 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 8px; }
.ns-prose p { font-size: 1.0625rem; line-height: 1.75; }
.ns-prose p + p { margin-top: 16px; }

/* ---- 404 ---- */
.ns-404 { padding: 120px 0; }
.ns-404 h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 20px;
}
.ns-404 .ns-lead { margin-bottom: 36px; }

/* ---- Footer: thumb-sized links and readable labels ---- */
footer .footer-main .block-2 h6 { color: rgba(255,255,255,.65); }
footer .footer-main .block-2 ul li { margin-bottom: 0; }
footer .footer-main .block-2 ul li a,
.footer-bottom small a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-bottom small { color: rgba(255,255,255,.55); }

/* ---- Footer additions ---- */
.ns-footer-tagline {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  line-height: 1.6;
  max-width: 320px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .ns-hero { padding: 72px 0 64px; }
  .ns-hero-shot { margin-top: 48px; }
  .ns-section { padding: 72px 0; }
  .ns-page-head { padding: 64px 0 56px; }
  .ns-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns-aside { position: static; }
}

@media (max-width: 767px) {
  /* Bootstrap's widest gutters overflow the container on phones */
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
  .ns-hero { text-align: center; }
  .ns-hero .ns-lead { margin-left: auto; margin-right: auto; }
  .ns-hero .app-badge,
  .ns-hero .ns-actions { justify-content: center; }
  .ns-product, .ns-card { padding: 28px; }
  .ns-cta { padding: 48px 28px; text-align: center; justify-content: center; }
  .ns-cta .app-badge { justify-content: center; }
  .ns-photos { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px; height: auto; }
  .ns-photos > :first-child { grid-row: auto; grid-column: span 2; }
  .ns-404 { padding: 80px 0; }
}
