/*
 * Calm, minimal component system for the /familienzeitung and /hochzeitszeitung
 * subpages, styled after norish.dev (github.com/norish-recipes/norish): warm
 * off-white surface, near-black ink, a single accent color, generous
 * whitespace, pill nav + pill buttons, rounded-2xl cards with icon-in-tint
 * boxes, numbered steps with a connecting line. Colors are Notaly's own
 * tokens (see familynews/lib/core/app_constants.dart), not norish's green.
 *
 * Scoped to these two pages on purpose — the rest of the site keeps the
 * Fraunces/Nunito v2 system (notaly-v2.css).
 */

:root {
  --ns-bg: #fefcf7;
  --ns-surface: #ffffff;
  --ns-surface-2: #f8f6f0;
  --ns-fg: #1a1a1a;
  --ns-muted: #5a5a5a;
  --ns-border: #e8e2d4;
  --ns-danger: #c62828;

  /* Familienzeitung: warm brand yellow.
     Three separate accent roles, because a light accent cannot do all three:
       --ns-accent      filled surfaces (buttons, badges, step markers)
       --ns-accent-fg   text ON those surfaces
       --ns-accent-ink  accent used AS text/icon on a light background
     Yellow as text on ivory is ~1.9:1, so --ns-accent-ink darkens to the
     deep gold (#856409, >=5.0:1 on both surfaces) instead of reusing --ns-accent. */
  --ns-accent: #f6b800;
  --ns-accent-ink: #856409;
  --ns-accent-deep: #8f6e0b;
  --ns-accent-fg: #1a1a1a;
  --ns-accent-soft: rgba(246, 184, 0, 0.16);
  --ns-accent-soft-strong: rgba(143, 110, 11, 0.26);
  --ns-hairline: transparent;

  --ns-radius-sm: 0.65rem;
  --ns-radius: 1rem;
  --ns-radius-lg: 1.5rem;
  --ns-radius-full: 999px;

  --ns-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ns-shadow-btn: 0 10px 30px -12px var(--ns-accent-soft-strong);
  --ns-shadow-card: 0 30px 60px -34px rgba(26, 26, 26, 0.35);
}

/* Anlasszeitung: same paper as the family page, but a deep bordeaux primary
   with a muted antique-gold hairline. The nobility comes from the accent and
   the hairline detail, not from a different background. */
body.ns-theme-occ {
  --ns-accent: #6e2a3c;
  --ns-accent-ink: #6e2a3c;
  --ns-accent-deep: #4a1a28;
  --ns-accent-fg: #ffffff;
  --ns-accent-soft: rgba(110, 42, 60, 0.09);
  --ns-accent-soft-strong: rgba(110, 42, 60, 0.24);

  /* Muted antique gold. Hairlines and small marks only, never text. */
  --ns-hairline: #c9a227;
}

/* Noble detail: a short gold rule under each section eyebrow, and gold
   hairlines on the panel and the step connector. */
body.ns-theme-occ .ns-eyebrow::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 1px;
  margin-top: 0.55rem;
  background: var(--ns-hairline);
  opacity: 0.75;
}
body.ns-theme-occ .ns-section__head .ns-eyebrow::after {
  margin-inline: auto;
}
body.ns-theme-occ .ns-panel {
  border-top: 2px solid var(--ns-hairline);
}
body.ns-theme-occ .ns-steps__line {
  border-top-color: var(--ns-hairline);
  opacity: 0.6;
}
body.ns-theme-occ .ns-price--featured,
body.ns-theme-occ .ns-frame__card {
  border-color: var(--ns-hairline);
}

.ns-page {
  background: var(--ns-bg);
  color: var(--ns-fg);
  font-family: var(--ns-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.ns-page * {
  box-sizing: border-box;
}

.ns-page img {
  max-width: 100%;
  display: block;
}

.ns-page a {
  color: inherit;
  text-decoration: none;
}

.ns-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ns-container--narrow {
  max-width: 44rem;
}

.ns-container--mid {
  max-width: 58rem;
}

/* ── Skip link ─────────────────────────────────────────────────────────── */
.ns-page .ns-skip,
.ns-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ns-accent);
  color: var(--ns-accent-fg);
  padding: 0.6rem 1rem;
  border-radius: var(--ns-radius-sm);
  z-index: 200;
}
.ns-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
.ns-navwrap {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0.9rem 1rem;
  transition: transform 0.3s ease;
}
.ns-navwrap.is-hidden {
  transform: translateY(-150%);
}

.ns-nav {
  position: relative;
  width: 100%;
  max-width: 62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--ns-border);
  background: color-mix(in srgb, var(--ns-surface) 74%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--ns-radius-full);
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  transition: all 0.3s ease;
}
.ns-nav.is-scrolled {
  background: color-mix(in srgb, var(--ns-surface) 93%, transparent);
  border-color: var(--ns-border);
  box-shadow: 0 8px 30px -18px rgba(26, 26, 26, 0.45);
}

.ns-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  flex-shrink: 0;
}
.ns-nav__brand img {
  height: 24px;
  width: auto;
}

.ns-nav__links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.9rem;
  color: var(--ns-muted);
}
.ns-nav__links a {
  padding: 0.45rem 0.8rem;
  border-radius: var(--ns-radius-full);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.ns-nav__links a:hover {
  background: var(--ns-surface-2);
  color: var(--ns-fg);
}
.ns-nav__links a.is-active {
  color: var(--ns-fg);
  background: var(--ns-surface-2);
  font-weight: 600;
}

@media (min-width: 860px) {
  .ns-nav__links {
    display: flex;
  }
}

.ns-nav__cta {
  display: none;
}
@media (min-width: 480px) {
  .ns-nav__cta {
    display: inline-flex;
  }
}

.ns-nav__toggle {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--ns-radius-full);
  border: 1px solid var(--ns-border);
  background: var(--ns-surface);
  color: var(--ns-fg);
  cursor: pointer;
}
.ns-nav__toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}
@media (min-width: 860px) {
  .ns-nav__toggle {
    display: none;
  }
}

.ns-nav__links.is-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: 1.25rem;
  padding: 0.5rem;
  box-shadow: 0 20px 45px -24px rgba(26, 26, 26, 0.35);
}
.ns-nav__links.is-open a {
  padding: 0.7rem 0.9rem;
}
@media (min-width: 860px) {
  .ns-nav__links.is-open {
    position: static;
    display: flex;
    flex-direction: row;
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
/* Prefixed with .ns-page so these win over the `.ns-page a { color: inherit }`
   link reset, which is (0,1,1) and would otherwise force button labels to the
   body ink colour. Invisible on a light accent, unreadable on a dark one. */
.ns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--ns-radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  height: 2.6rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.ns-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.ns-btn--lg {
  height: 3rem;
  padding: 0 1.7rem;
  font-size: 0.98rem;
}
.ns-page .ns-btn--primary,
.ns-btn--primary {
  background: var(--ns-accent);
  color: var(--ns-accent-fg);
  box-shadow: var(--ns-shadow-btn);
}
.ns-btn--primary:hover {
  transform: translateY(-2px);
}
.ns-page .ns-btn--secondary,
.ns-btn--secondary {
  background: color-mix(in srgb, var(--ns-surface) 72%, transparent);
  border-color: var(--ns-border);
  color: var(--ns-fg);
}
.ns-btn--secondary:hover {
  transform: translateY(-2px);
  background: var(--ns-surface-2);
}

/* ── Eyebrow / headings ────────────────────────────────────────────────── */
.ns-eyebrow {
  color: var(--ns-accent-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.ns-h1 {
  font-size: 2.4rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 1.1rem;
}
.ns-h2 {
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0;
}
.ns-lead {
  font-size: 1.08rem;
  color: var(--ns-muted);
  margin: 0 0 1.6rem;
  max-width: 34rem;
}
@media (min-width: 640px) {
  .ns-h1 {
    font-size: 3rem;
  }
  .ns-h2 {
    font-size: 2.2rem;
  }
}
@media (min-width: 1180px) {
  .ns-h1 {
    font-size: 3.4rem;
  }
}

.ns-muted {
  color: var(--ns-muted);
}
.ns-accent-text {
  color: var(--ns-accent-ink);
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.ns-section {
  padding: 4rem 0;
}
.ns-section--lg {
  padding: 5.5rem 0;
}
.ns-section--alt {
  background: var(--ns-surface-2);
}
.ns-section__head {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}
@media (min-width: 640px) {
  .ns-section {
    padding: 5rem 0;
  }
  .ns-section--lg {
    padding: 7rem 0;
  }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.ns-hero {
  padding: 8.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) {
  .ns-hero {
    padding: 10.5rem 0 5rem;
  }
}
.ns-hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .ns-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}
.ns-hero__copy {
  text-align: center;
}
@media (min-width: 1024px) {
  .ns-hero__copy {
    text-align: left;
  }
  .ns-hero__copy .ns-lead {
    margin-inline: 0;
  }
}
.ns-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.5rem;
}
@media (min-width: 480px) {
  .ns-hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}
@media (min-width: 1024px) {
  .ns-hero__actions {
    justify-content: flex-start;
  }
}
.ns-hero__note {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--ns-muted);
}

.ns-crumb {
  font-size: 0.85rem;
  color: var(--ns-muted);
  margin-bottom: 1.5rem;
}
.ns-crumb a:hover {
  color: var(--ns-fg);
}
.ns-crumb .ns-sep {
  margin: 0 0.4rem;
  opacity: 0.6;
}

/* Photo frame in the hero */
.ns-frame {
  position: relative;
  max-width: 26rem;
  margin: 0 auto;
}
.ns-frame__glow {
  position: absolute;
  inset: -2rem -1.5rem;
  background: var(--ns-accent-soft);
  filter: blur(48px);
  z-index: -1;
  border-radius: var(--ns-radius-lg);
}
.ns-frame__card {
  border: 1px solid var(--ns-border);
  background: var(--ns-surface);
  border-radius: var(--ns-radius-lg);
  overflow: hidden;
  box-shadow: var(--ns-shadow-card);
}
.ns-frame__caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ns-muted);
  margin-top: 0.7rem;
}

/* ── Badges / tags ─────────────────────────────────────────────────────── */
.ns-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  justify-content: center;
}
@media (min-width: 1024px) {
  .ns-badges {
    justify-content: flex-start;
  }
}
.ns-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--ns-border);
  background: color-mix(in srgb, var(--ns-surface) 62%, transparent);
  color: var(--ns-muted);
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--ns-radius-full);
}
.ns-badge svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--ns-accent-ink);
}

/* ── Trust line ────────────────────────────────────────────────────────
 * Plain text for trust claims (price/subscription/hosting facts), not
 * pill chips — those stay for the .ns-badge tag/category use (occasions,
 * "Beliebt"). A row of bordered badges reads as generic SaaS chrome;
 * a quiet inline line reads as a fact stated once, calmly. */
.ns-trustline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ns-muted);
}
@media (min-width: 1024px) {
  .ns-trustline {
    justify-content: flex-start;
  }
}
.ns-trustline span:not(:last-child)::after {
  content: "·";
  margin: 0 0.65rem;
  color: var(--ns-border);
}

/* ── Feature grid ──────────────────────────────────────────────────────── */
.ns-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ns-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .ns-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 640px) {
  .ns-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .ns-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ns-frame-sm {
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius);
  overflow: hidden;
  background: var(--ns-surface);
}
.ns-frame-sm figcaption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ns-muted);
  padding: 0.6rem 0.4rem;
  border-top: 1px solid var(--ns-border);
}

.ns-card {
  border: 1px solid var(--ns-border);
  background: var(--ns-surface);
  border-radius: var(--ns-radius);
  padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.ns-card:hover {
  transform: translateY(-4px);
  border-color: var(--ns-accent);
  box-shadow: 0 20px 40px -28px rgba(26, 26, 26, 0.3);
}
.ns-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: var(--ns-radius-sm);
  background: var(--ns-accent-soft);
  color: var(--ns-accent-ink);
  margin-bottom: 1.15rem;
}
.ns-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.ns-card h3 {
  font-size: 1.08rem;
  font-weight: 650;
  margin: 0 0 0.4rem;
}
.ns-card p {
  font-size: 0.92rem;
  color: var(--ns-muted);
  margin: 0;
}

/* ── Steps (how it works) ─────────────────────────────────────────────
 * A numbered path, not icon-in-a-box tiles: the number both counts the
 * step and stands in for an icon, connected by a dashed route echoing the
 * product's own journey (collect → lay out → mailbox). */
.ns-steps {
  position: relative;
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
@media (min-width: 780px) {
  .ns-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .ns-steps__line {
    position: absolute;
    top: 1.55rem;
    left: 16%;
    right: 16%;
    border-top: 2px dashed color-mix(in srgb, var(--ns-accent-ink) 32%, transparent);
  }
}
.ns-step {
  text-align: center;
  position: relative;
}
.ns-step__num {
  width: 3.1rem;
  height: 3.1rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ns-bg);
  border: 2px solid var(--ns-accent);
  color: var(--ns-accent-ink);
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ns-step h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 650;
}
.ns-step p {
  margin: 0 auto;
  max-width: 19rem;
  font-size: 0.92rem;
  color: var(--ns-muted);
}

/* ── Panel (big bordered block with glow) ─────────────────────────────── */
.ns-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ns-border);
  background: var(--ns-surface);
  border-radius: var(--ns-radius-lg);
  padding: 2rem;
}
@media (min-width: 640px) {
  .ns-panel {
    padding: 2.75rem;
  }
}
@media (min-width: 1024px) {
  .ns-panel {
    padding: 3.5rem;
  }
}
.ns-panel__glow {
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  background: var(--ns-accent-soft);
  filter: blur(70px);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Pricing ───────────────────────────────────────────────────────────── */
.ns-price {
  border: 1px solid var(--ns-border);
  background: var(--ns-surface);
  border-radius: var(--ns-radius);
  padding: 1.5rem;
  text-align: center;
  position: relative;
}
.ns-price--featured {
  border-color: var(--ns-accent);
  box-shadow: 0 20px 45px -30px var(--ns-accent-soft-strong);
}
.ns-price__badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ns-accent);
  color: var(--ns-accent-fg);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--ns-radius-full);
}
.ns-price h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ns-muted);
  margin: 0.4rem 0 0.6rem;
}
.ns-price__amount {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.ns-price__note {
  font-size: 0.82rem;
  color: var(--ns-muted);
  margin: 0.25rem 0 0.5rem;
}
.ns-price__hint {
  font-size: 0.78rem;
  color: var(--ns-muted);
  opacity: 0.8;
  margin: 0;
}

.ns-toggle {
  display: inline-flex;
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius-full);
  padding: 0.2rem;
  gap: 0.2rem;
}
.ns-toggle button {
  border: none;
  background: transparent;
  color: var(--ns-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--ns-radius-full);
  cursor: pointer;
}
.ns-toggle button.is-active {
  background: var(--ns-accent);
  color: var(--ns-accent-fg);
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.ns-faq {
  max-width: 42rem;
  margin: 0 auto;
}
.ns-faq details {
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius);
  background: var(--ns-surface);
  padding: 0;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.ns-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ns-faq summary::-webkit-details-marker {
  display: none;
}
.ns-faq summary .ns-faq__chevron {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ns-muted);
  transition: transform 0.2s ease;
}
.ns-faq details[open] summary .ns-faq__chevron {
  transform: rotate(180deg);
}
.ns-faq__body {
  padding: 0 1.3rem 1.2rem;
  color: var(--ns-muted);
  font-size: 0.92rem;
}

/* ── Compare table ─────────────────────────────────────────────────────── */
.ns-compare-wrap {
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius);
  overflow: auto;
  background: var(--ns-surface);
}
.ns-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 34rem;
}
.ns-compare th,
.ns-compare td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--ns-border);
}
.ns-compare thead th {
  color: var(--ns-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.ns-compare tbody th {
  font-weight: 600;
  color: var(--ns-muted);
  white-space: nowrap;
}
.ns-compare tbody tr:last-child td,
.ns-compare tbody tr:last-child th {
  border-bottom: none;
}

/* ── Cross-link banner ─────────────────────────────────────────────────── */
.ns-crosslink {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--ns-border);
  background: var(--ns-surface-2);
  border-radius: var(--ns-radius);
  padding: 1.5rem;
}
@media (min-width: 720px) {
  .ns-crosslink {
    flex-direction: row;
    align-items: center;
  }
}
.ns-crosslink__icon {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ns-accent-soft);
  color: var(--ns-accent-ink);
}
.ns-crosslink__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}
.ns-crosslink__body {
  flex: 1;
}
.ns-crosslink__k {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ns-accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.3rem;
}
.ns-crosslink p {
  margin: 0;
}

/* ── CTA section ───────────────────────────────────────────────────────── */
.ns-cta {
  text-align: center;
}
.ns-cta .ns-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.ns-footer {
  border-top: 1px solid var(--ns-border);
  padding: 3.2rem 0 2rem;
}
.ns-footer__grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ns-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ns-footer__grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}
.ns-footer__brand {
  display: block;
  height: 22px;
  width: auto;
  margin: 0 0 0.6rem;
}
.ns-footer p {
  color: var(--ns-muted);
  font-size: 0.9rem;
  max-width: 20rem;
}
.ns-footer h3 {
  font-size: 0.85rem;
  font-weight: 650;
  margin: 0 0 0.9rem;
}
.ns-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ns-footer__links a {
  font-size: 0.88rem;
  color: var(--ns-muted);
  transition: color 0.2s ease;
}
.ns-footer__links a:hover {
  color: var(--ns-fg);
}
.ns-footer__bottom {
  border-top: 1px solid var(--ns-border);
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ns-muted);
}
@media (min-width: 640px) {
  .ns-footer__bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* ── Image placeholders (wireframes) ───────────────────────────────────
   Temporary: marks exactly where a real photo goes and what it must show.
   Every one carries an id (IMG-xx) matching MARKETING_IMAGE_BRIEF.md.
   Delete .ns-ph and swap in <img> once the asset exists. */
.ns-ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.25rem;
  border: 2px dashed var(--ns-border);
  border-radius: var(--ns-radius);
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.018) 10px,
      rgba(0, 0, 0, 0.018) 20px
    ),
    var(--ns-surface-2);
  color: var(--ns-muted);
  overflow: hidden;
}
.ns-ph__id {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--ns-accent);
  color: var(--ns-accent-fg);
  opacity: 0.9;
}
.ns-ph__icon {
  width: 2rem;
  height: 2rem;
  opacity: 0.45;
}
.ns-ph__icon svg {
  width: 100%;
  height: 100%;
}
.ns-ph__label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ns-fg);
  max-width: 22rem;
  line-height: 1.35;
}
.ns-ph__hint {
  font-size: 0.72rem;
  max-width: 20rem;
  line-height: 1.4;
}
.ns-ph__ratio {
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius-full);
  padding: 0.1rem 0.5rem;
}
.ns-ph--3x2 { aspect-ratio: 3 / 2; }
.ns-ph--4x3 { aspect-ratio: 4 / 3; }
.ns-ph--1x1 { aspect-ratio: 1 / 1; }
.ns-ph--3x4 { aspect-ratio: 3 / 4; }
.ns-ph--9x16 { aspect-ratio: 9 / 16; }
.ns-ph--16x9 { aspect-ratio: 16 / 9; }

/* ── Split / feature row ───────────────────────────────────────────────── */
.ns-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 940px) {
  .ns-split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
  .ns-split--media-first > :first-child {
    order: 2;
  }
}

/* ── Quote / emotional pull ────────────────────────────────────────────── */
.ns-pull {
  border-left: 3px solid var(--ns-accent);
  padding-left: 1.25rem;
  font-size: 1.15rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ns-fg);
  margin: 0;
}

/* ── Stat / proof row ──────────────────────────────────────────────────── */
.ns-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 780px) {
  .ns-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.ns-stat {
  text-align: center;
  padding: 1.1rem 0.75rem;
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius);
  background: var(--ns-surface);
}
.ns-stat__v {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ns-accent-ink);
  margin: 0;
}
.ns-stat__l {
  font-size: 0.8rem;
  color: var(--ns-muted);
  margin: 0.25rem 0 0;
}

/* ── Reveal-on-scroll ──────────────────────────────────────────────────── */
.ns-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.ns-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .ns-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Utility ───────────────────────────────────────────────────────────── */
.ns-center {
  text-align: center;
}
.ns-mt-lg {
  margin-top: 2.5rem;
}

/* ── Contact form ──────────────────────────────────────────────────────── */
.ns-form {
  display: grid;
  gap: 0.9rem;
}
.ns-form__row {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 620px) {
  .ns-form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.ns-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ns-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ns-fg);
}
.ns-input,
.ns-textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ns-fg);
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ns-textarea {
  resize: vertical;
  min-height: 7rem;
}
.ns-input:focus,
.ns-textarea:focus {
  outline: none;
  border-color: var(--ns-accent);
  box-shadow: 0 0 0 3px var(--ns-accent-soft);
}
.ns-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.ns-alert {
  border-radius: var(--ns-radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  border: 1px solid var(--ns-border);
  background: var(--ns-surface-2);
}
.ns-alert--ok {
  border-color: var(--ns-accent);
  background: var(--ns-accent-soft);
}
.ns-alert--err {
  border-color: var(--ns-danger);
  color: var(--ns-danger);
  background: color-mix(in srgb, var(--ns-danger) 8%, transparent);
}
