/* ═══════════════════════════════════════════════════════════════════════════
   Subpage components (contact, mcp, blog, articles, product maps, early
   adopters, 404, legal). Builds on ns.css. Prefix .p-.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page header ──────────────────────────────────────────────────────── */
.p-head { padding: 72px 0 56px; }
.p-head-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 56px; }
.p-head-copy { flex: 1 1 640px; max-width: 900px; display: flex; flex-direction: column; gap: 22px; }
.p-head .ns-h1 { font-size: 88px; letter-spacing: -3.8px; }
.p-head-side { flex: 0 1 360px; display: flex; flex-direction: column; gap: 20px; padding-bottom: 8px; }
.p-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ns-muted-2); }
.p-crumb a { color: var(--ns-muted-2) !important; text-decoration: none; }
.p-crumb a:hover { color: var(--ns-ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.p-crumb li + li::before { content: "/"; margin-right: 6px; color: #B9B5AC; }
.p-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ns-body-2); background: #fff; border: 1px solid var(--ns-line); border-radius: 999px; padding: 5px 12px; }
.p-tag--gold { color: var(--ns-gold-ink); background: var(--ns-gold-soft); border-color: transparent; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.p-sec { padding: 96px 0; }
.p-sec--tight { padding: 56px 0; }
.p-sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 40px; }
.p-sec-head--center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.p-sec-head .ns-h2 { font-size: 52px; letter-spacing: -2px; line-height: 1.04; }

/* ── Cards and grids ──────────────────────────────────────────────────── */
.p-grid { display: grid; gap: 16px; }
.p-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-card { display: flex; flex-direction: column; gap: 12px; padding: 30px; background: #fff; border: 1px solid var(--ns-line); border-radius: 22px; box-sizing: border-box; }
.p-card--link { text-decoration: none; color: var(--ns-ink) !important; transition: border-color var(--ns-fast) var(--ns-ease-out), box-shadow var(--ns-base) var(--ns-ease-out), transform .1s var(--ns-ease-out); }
.p-card--link:active { transform: scale(.99); }
.p-card--link:hover { border-color: rgba(20,20,20,.3); box-shadow: 0 18px 40px rgba(20,20,20,.07); }
.p-card-label { font-size: 13px; color: var(--ns-muted-2); }
.p-card h2, .p-card h3 { margin: 0; font-family: var(--ns-display); font-weight: 400; font-size: 26px; letter-spacing: -.6px; line-height: 1.15; }
.p-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ns-body-2); }
.p-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ns-paper); border: 1px solid var(--ns-line); display: flex; align-items: center; justify-content: center; color: var(--ns-ink); }
.p-rows { display: flex; flex-direction: column; }
.p-rows > * { padding: 14px 0; border-top: 1px solid var(--ns-line-2); }
.p-rows > *:first-child { border-top: 0; }
.p-k { display: block; font-size: 13px; color: var(--ns-muted-2); margin-bottom: 2px; }
.p-v { font-size: 16px; color: var(--ns-ink) !important; text-decoration: none; }
a.p-v:hover { text-decoration: underline; text-underline-offset: 4px; }
.p-more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 500; align-self: flex-start; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(20,20,20,.3); }
.p-card--link:hover .p-more { text-decoration-color: var(--ns-ink); }

/* ── CTA band (inset with document pages behind a glass card) ─────────── */
.p-cta { position: relative; overflow: clip; min-height: 480px; }
.p-cta-docs { position: absolute; inset: 0; z-index: 0; }
.p-cta-inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.p-cta-card { max-width: 600px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.p-cta-card .ns-h2 { font-size: 48px; letter-spacing: -1.8px; line-height: 1.04; }
.p-cta-card .ns-lead { font-size: 17px; }
.p-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Prose (articles, legal pages) ────────────────────────────────────── */
.p-prose { font-size: 17.5px; line-height: 1.75; color: #2E2D2A; }
.p-prose > :first-child { margin-top: 0; }
.p-prose h2 { margin: 56px 0 16px; font-family: var(--ns-display); font-weight: 400; font-size: 34px; letter-spacing: -1.1px; line-height: 1.15; color: var(--ns-ink); scroll-margin-top: 110px; }
.p-prose h3 { margin: 36px 0 10px; font-family: var(--ns-sans); font-weight: 600; font-size: 19px; line-height: 1.35; color: var(--ns-ink); scroll-margin-top: 110px; }
.p-prose h4 { margin: 28px 0 8px; font-size: 17px; font-weight: 600; }
.p-prose p { margin: 0 0 18px; }
.p-prose ul, .p-prose ol { margin: 0 0 20px; padding-left: 22px; }
.p-prose li { margin: 6px 0; }
.p-prose li::marker { color: var(--ns-muted-2); }
.p-prose a { color: var(--ns-ink) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.p-prose a:hover { text-decoration-thickness: 2px; }
.p-prose strong { font-weight: 600; color: var(--ns-ink); }
.p-prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--ns-ink); font-family: var(--ns-display); font-weight: 300; font-size: 24px; line-height: 1.4; color: var(--ns-ink); }
.p-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: #F1EFEA; border-radius: 5px; padding: 1px 5px; }
.p-prose hr { border: 0; border-top: 1px solid var(--ns-line); margin: 40px 0; }
.p-prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.p-tscroll { overflow-x: auto; margin: 24px 0; border-radius: 14px; }
.p-tscroll > table { margin: 0; }
.p-prose th, .p-prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--ns-line); }
.p-prose th { font-weight: 600; color: var(--ns-ink); background: #F5F3EE; }
.p-prose img { max-width: 100%; height: auto; border-radius: 14px; }

/* ── Forms on subpages ────────────────────────────────────────────────── */
.p-form { display: flex; flex-direction: column; gap: 16px; padding: 30px; background: #fff; border: 1px solid var(--ns-line); border-radius: 22px; box-shadow: 0 1px 2px rgba(20,20,20,.03), 0 24px 60px rgba(20,20,20,.05); }
.p-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.p-opt { font-weight: 400; color: var(--ns-muted-2); }
.ns-input { width: 100%; box-sizing: border-box; font: 400 15px var(--ns-sans); color: var(--ns-ink); background: #fff; border: 1px solid #D9D5CC; border-radius: 12px; padding: 12px 14px; transition: border-color var(--ns-fast) var(--ns-ease-out), box-shadow var(--ns-fast) var(--ns-ease-out); }
.ns-input::placeholder { color: var(--ns-muted-2); }
.ns-input:focus { outline: 0; border-color: var(--ns-ink); box-shadow: 0 0 0 3px rgba(20,20,20,.12); }
select.ns-input { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 14px no-repeat; }
textarea.ns-input { resize: vertical; min-height: 104px; }
.ns-honey { display: none !important; }
.p-inline { display: flex; gap: 8px; }
.p-inline .ns-input { flex: 1; min-width: 0; }
body.ns .form-status { margin-top: 10px; min-height: 0; padding: 0; text-align: left; font-size: 14px; line-height: 1.5; color: var(--ns-muted); background: none; border: 0; }
body.ns .form-status:empty { margin-top: 0; }
body.ns .form-status.form-status-success { color: var(--ns-ok); background: var(--ns-ok-bg); border-radius: 12px; padding: 10px 14px; font-weight: 500; }
body.ns .form-status.form-status-error { color: var(--ns-danger); background: #FBEDEC; border-radius: 12px; padding: 10px 14px; font-weight: 500; }

/* ── FAQ accordion on subpages (native <details>) ─────────────────────── */
.p-faq { border-top: 1px solid var(--ns-ink); }
.p-faq details { border-bottom: 1px solid #E3E0D8; }
.p-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 19px; line-height: 1.35; letter-spacing: -.2px; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 300; line-height: 1; transition: transform var(--ns-base) var(--ns-ease-out); }
.p-faq details[open] summary::after { transform: rotate(45deg); }
.p-faq details > div { padding: 0 56px 22px 0; font-size: 16px; line-height: 1.65; color: var(--ns-body-2); }
.p-faq details > div p { margin: 0 0 10px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .p-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .p-head { padding: 32px 0 36px; }
  .p-head .ns-h1 { font-size: 52px; letter-spacing: -2px; line-height: 1; }
  .p-sec { padding: 64px 0; }
  .p-sec-head .ns-h2, .p-cta-card .ns-h2 { font-size: 36px; letter-spacing: -1.2px; }
  .p-grid--2 { grid-template-columns: 1fr; }
  .p-card { padding: 22px; }
  .p-cta { min-height: 0; }
  .p-cta-docs { display: none; }
  .p-cta-inner { padding-top: 40px; padding-bottom: 40px; }
  .p-cta-card { padding: 26px; }
  .p-prose { font-size: 16.5px; }
  .p-prose h2 { font-size: 28px; }
  .p-form { padding: 20px; }
  .p-form-row { grid-template-columns: 1fr; }
  .p-inline { flex-direction: column; }
  .p-faq summary { font-size: 17px; }
  .p-faq details > div { padding-right: 0; }
}

/* Legacy style.css styles .newsletter-form inputs for a dark band (white text);
   the redesigned newsletter sits on paper, so restore the ns-input look. */
body.ns .newsletter-form input.ns-input { color: var(--ns-ink); background: #fff; border: 1px solid #D9D5CC; border-radius: 12px; padding: 12px 14px; }
body.ns .newsletter-form input.ns-input::placeholder { color: var(--ns-muted-2); }
body.ns .newsletter-form input.ns-input:focus { outline: 0; background: #fff; border-color: var(--ns-ink); box-shadow: 0 0 0 3px rgba(20,20,20,.12); }

/* Minimum 24px tap targets for standalone text links (WCAG 2.5.8) */
a.p-v, a.pc-guide { display: inline-flex; align-items: center; min-height: 40px; }

/* ── Legal pages (privacy, terms, legal notice) ───────────────────────── */
.legal { padding: 56px 0 96px; }
.legal-inner { max-width: 760px; }
.legal .ns-h1 { font-size: 64px; letter-spacing: -2.6px; margin-bottom: 28px; }
.legal .intro-text { font-size: 19px; line-height: 1.65; color: var(--ns-body-2); }
.legal .legal-meta { font-size: 14px; color: var(--ns-muted-2); margin-top: -4px; }
/* long German compounds (Datenschutzerklärung) must wrap, not overflow */
.legal .ns-h1, .p-head .ns-h1 { overflow-wrap: break-word; }  /* German headings hyphenate via ns.css; English ones never need to */
@media (max-width: 760px) { .legal { padding: 28px 0 64px; } .legal .ns-h1 { font-size: 36px; letter-spacing: -1.2px; } }

/* ── About ────────────────────────────────────────────────────────────── */
.ab-h2 { font-size: 44px; letter-spacing: -1.6px; line-height: 1.06; }
.ab-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.ab-prose p { font-size: 18px; }
@media (max-width: 900px) { .ab-split { grid-template-columns: minmax(0, 1fr); gap: 20px; } .ab-h2 { font-size: 34px; letter-spacing: -1px; } }
