/* =========================================================
   NUR — Product page styles (fragment, brand guide v1.0)

   Scope & naming:
   - Every selector lives under .nur-page
   - Every custom property is prefixed --nur-
   so nothing collides with the host page.

   Brand tokens (from Nur Brand Guidelines v1.0 · July 2026):
   - Canvas: Ink #0C0E12 · Panel #12151B · Border #232830
   - Text: Mist/primary #E8EBF0 · secondary #8A93A3
   - Primary accent: Slate 500 #6E819D (interactive, selection,
     the brand moment) — never a background wash
   - Highlight: Lumen #7FA9DC (hover glow, focus rings),
     Lumen Bright #A6C6EC (pressed)
   - Editorial: Gold #D1C38D — eyebrows, section labels only.
     Never interactive, never fills.
   - Type: Instrument Sans 400/500/600; IBM Plex Mono for labels,
     uppercase with 0.12em tracking.
   - Dark is the product default; light theme provided via
     [data-nur-theme="light"] with stepped-down accents
     (Slate 600 #57687F, Lumen Deep #41608C, Gold Deep #8C7F4E).
   ========================================================= */

.nur-page {
  /* ---- Static brand palette ---- */
  --nur-slate-100: #E4E8EE;
  --nur-slate-200: #C8D0DB;
  --nur-slate-300: #A9B5C6;
  --nur-slate-400: #8B9BB1;
  --nur-slate-500: #6E819D;
  --nur-slate-600: #57687F;
  --nur-slate-700: #415061;
  --nur-slate-800: #2C3745;
  --nur-slate-900: #191F28;
  --nur-ink: #0C0E12;
  --nur-mist: #EDEFF3;
  --nur-lumen: #7FA9DC;
  --nur-lumen-bright: #A6C6EC;
  --nur-lumen-deep: #41608C;
  --nur-gold: #D1C38D;
  --nur-gold-deep: #8C7F4E;

  /* ---- Theme tokens: DARK (brand default) ---- */
  --nur-surface: #0C0E12;
  --nur-panel: #12151B;
  --nur-border: #232830;
  --nur-text: #E8EBF0;
  --nur-text-2: #8A93A3;
  --nur-accent: var(--nur-slate-500);
  --nur-highlight: var(--nur-lumen);
  --nur-highlight-press: var(--nur-lumen-bright);
  --nur-editorial: var(--nur-gold);
  --nur-selection-wash: #26303F;
  --nur-feature-band: #14181F;   /* alternating feature band: a notch above Panel */
  --nur-credit-plate: #FFFFFF;   /* light plate behind grant logos (logos must not be recoloured) */
  --nur-on-accent: #0C0E12;
  --nur-scrim: linear-gradient(180deg, rgba(12,14,18,0.15) 0%, rgba(12,14,18,0.55) 55%, rgba(12,14,18,0.94) 100%);
  --nur-grid-dot: rgba(110, 129, 157, 0.14);

  /* ---- Type & layout ---- */
  --nur-font: 'Instrument Sans', system-ui, sans-serif;
  --nur-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  --nur-maxw: 1180px;
  --nur-radius-sm: 6px;
  --nur-radius-md: 10px;
  --nur-radius-lg: 16px;

  /* ---- Base ---- */
  background: var(--nur-surface);
  color: var(--nur-text);
  font-family: var(--nur-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: block;
  overflow-x: clip;
}

/* ---- Theme: LIGHT (documentation / bright-studio use) ---- */
@media (prefers-color-scheme: light) {
    .nur-page {
        --nur-surface: #EDEFF3;
        --nur-panel: #FFFFFF;
        --nur-border: #C8D0DB;
        --nur-text: #191F28;
        --nur-text-2: #57687F;
        --nur-accent: var(--nur-slate-600);     /* stepped down for contrast on Mist */
        --nur-highlight: var(--nur-lumen-deep);
        --nur-highlight-press: var(--nur-lumen);
        --nur-editorial: var(--nur-gold-deep);
        --nur-selection-wash: #DCE3EC;
        --nur-feature-band: #E2E7EE;   /* alternating feature band on Mist */
        --nur-credit-plate: #FFFFFF;   /* same plate in light mode — panel white */
        --nur-on-accent: #FFFFFF;
        --nur-scrim: linear-gradient(180deg, rgba(25,31,40,0.10) 0%, rgba(25,31,40,0.40) 55%, rgba(25,31,40,0.90) 100%);
        --nur-grid-dot: rgba(87, 104, 127, 0.12);
    }
}

/* ---- Scoped reset ---- */
.nur-page *, .nur-page *::before, .nur-page *::after { box-sizing: border-box; }
.nur-page h1, .nur-page h2 { margin: 0; font-family: var(--nur-font); font-weight: 600; letter-spacing: -0.01em; color: var(--nur-text); }
.nur-page p { margin: 0; }
.nur-page a { color: inherit; text-decoration: none; }
.nur-page img, .nur-page video { max-width: 100%; display: block; }
.nur-page figure { margin: 0; }
.nur-page ::selection { background: var(--nur-slate-500); color: var(--nur-ink); }
.nur-page :focus-visible {
  outline: 1px solid var(--nur-highlight);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--nur-highlight) 22%, transparent);
  border-radius: 4px;
}

/* ---- Eyebrow: Gold editorial label, mono, uppercase, 0.12em ---- */
.nur-eyebrow {
  font-family: var(--nur-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nur-editorial);
  margin: 0 0 16px;
}
/* Hero wordmark — the drawn logo replaces the text eyebrow.
   Always white: it sits on the hero video/scrim, not the page surface,
   so it must not switch with the light theme.
   Brand guide: one color only, min 64px wide, clearspace ½ wordmark
   height on all sides (covered by the bottom margin + hero padding). */
.nur-hero__logo {
  display: block;
  width: clamp(120px, 14vw, 180px); /* never below the 64px brand minimum */
  height: auto;
  fill: #FFFFFF;
  margin: 0 0 32px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.nur-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--nur-font);
  font-weight: 500; font-size: 14.5px; white-space: nowrap;
  border-radius: var(--nur-radius-sm);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.nur-btn--primary {
  padding: 13px 24px;
  background: var(--nur-accent);
  color: var(--nur-on-accent);
  border: 1px solid transparent;
}
.nur-btn--primary:hover {
  border-color: var(--nur-highlight);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nur-highlight) 22%, transparent);
}
.nur-btn--primary:active { background: var(--nur-highlight-press); color: var(--nur-ink); }
.nur-btn--ghost {
  padding: 13px 24px;
  background: transparent;
  border: 1px solid var(--nur-border);
  color: var(--nur-text);
}
.nur-btn--ghost:hover { border-color: var(--nur-highlight); }
.nur-btn--text { background: none; border: none; color: var(--nur-text); border-bottom: 1px solid transparent; border-radius: 0; padding: 2px 0; }
.nur-btn--text:hover { border-bottom-color: var(--nur-highlight); color: var(--nur-highlight); }

/* =========================================================
   VIEWPORT — media frame (Ink canvas, quiet chrome)
   ========================================================= */
.nur-viewport {
  position: relative;
  border-radius: var(--nur-radius-md);
  border: 1px solid var(--nur-border);
  background:
    radial-gradient(circle at 1px 1px, var(--nur-grid-dot) 1px, transparent 1px) 0 0/20px 20px,
    var(--nur-panel);
  overflow: hidden;
  /* Cursor tilt: --nur-tilt-x/y are set by nur-viewport-tilt.js (-1 to 1) */
  --nur-tilt-x: 0;
  --nur-tilt-y: 0;
  --nur-tilt-max: 4deg; /* max rotation at the edges */
  transform: perspective(800px)
    rotateY(calc(var(--nur-tilt-x) * var(--nur-tilt-max)))
    rotateX(calc(var(--nur-tilt-y) * var(--nur-tilt-max) * -1));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease;
  will-change: transform;
}
.nur-viewport:hover {
  border-color: var(--nur-highlight);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nur-highlight) 14%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.06s linear;
}
.nur-viewport__media { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }
.nur-viewport--video .nur-viewport__media { aspect-ratio: 16/9; background: var(--nur-ink); }
.nur-viewport--gallery .nur-viewport__media { aspect-ratio: 4/5; }

.nur-viewport__badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--nur-mono); font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--nur-slate-300);
  background: color-mix(in srgb, var(--nur-ink) 72%, transparent);
  padding: 5px 10px; border-radius: 4px; border: 1px solid var(--nur-border);
  backdrop-filter: blur(4px);
}
.nur-page[data-nur-theme="light"] .nur-viewport__badge {
  color: var(--nur-slate-600);
  background: color-mix(in srgb, #FFFFFF 78%, transparent);
}

/* =========================================================
   HERO — full-bleed
   ========================================================= */
.nur-hero { position: relative; min-height: 66vh; display: flex; align-items: flex-end; overflow: hidden; }
.nur-hero__media { position: absolute; inset: 0; }
.nur-hero__bg { width: 100%; height: 100%; object-fit: cover; }
.nur-hero__scrim { position: absolute; inset: 0; background: var(--nur-scrim); }
.nur-hero__content {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--nur-maxw); margin: 0 auto; padding: 0 28px 72px;
}
/* All hero copy is theme-independent: it renders over the hero video
   behind a dark scrim in BOTH themes, so it stays white for contrast.
   Note: title/sub are scoped under .nur-page so they outrank the
   .nur-page h1 reset (which uses the theme text token and would
   otherwise turn the title dark in light mode). */
.nur-page .nur-hero__title {
  font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; line-height: 1.06;
  margin-bottom: 34px; color: #FFFFFF;
}
.nur-page .nur-hero__sub { max-width: 520px; font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 44px; }
.nur-hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nur-hero .nur-btn--text { color: #FFFFFF; }
.nur-hero .nur-btn--text:hover { color: var(--nur-lumen-bright); }

/* =========================================================
   FEATURE PILL NAV
   ========================================================= */
.nur-feature-nav {
  display: flex; gap: 10px; overflow-x: auto;
  max-width: var(--nur-maxw); margin: 0 auto; padding: 22px 28px;
  scrollbar-width: none;
}
.nur-feature-nav::-webkit-scrollbar { display: none; }
.nur-feature-nav a {
  flex: none; font-size: 13.5px; font-weight: 500; color: var(--nur-text-2);
  padding: 9px 16px; border: 1px solid var(--nur-border); border-radius: 999px;
  background: var(--nur-panel);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.nur-feature-nav a:hover {
  color: var(--nur-text);
  border-color: var(--nur-highlight);
  background: var(--nur-selection-wash);
}

/* =========================================================
   FEATURE ROWS — alternating
   ========================================================= */
.nur-feature {
  max-width: var(--nur-maxw); margin: 0 auto; padding: 76px 28px;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center;
  scroll-margin-top: 90px;
}
/* Alternating full-bleed background bands — even rows sit on a Panel
   band (subtly lifted from the Ink surface) so each feature reads as
   its own distinct chapter. The box-shadow + clip-path pair stretches
   the band edge-to-edge while the content stays on the 1180px grid. */
.nur-feature:nth-of-type(even) {
  background: var(--nur-feature-band, var(--nur-panel));
  box-shadow: 0 0 0 100vmax var(--nur-feature-band, var(--nur-panel));
  clip-path: inset(0 -100vmax);
  border-top: 1px solid var(--nur-border);
  border-bottom: 1px solid var(--nur-border);
}
.nur-feature:nth-of-type(even) .nur-viewport {
  /* keep the frame distinct from the band behind it */
  background:
    radial-gradient(circle at 1px 1px, var(--nur-grid-dot) 1px, transparent 1px) 0 0/20px 20px,
    var(--nur-surface);
}
.nur-feature--reverse { direction: rtl; }
.nur-feature--reverse > * { direction: ltr; }
.nur-feature__title { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; line-height: 1.08; margin-bottom: 18px; }
.nur-feature__body { color: var(--nur-text-2); font-size: 16px; max-width: 420px; }
.nur-feature__media .nur-viewport { box-shadow: 0 30px 70px -30px rgba(0,0,0,0.5); }

/* =========================================================
   SECTION HEAD (shared)
   ========================================================= */
.nur-section-head { max-width: 640px; margin: 0 auto 48px; padding: 0 28px; text-align: center; }
.nur-section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.nur-section-head__sub { color: var(--nur-text-2); font-size: 15.5px; }

/* =========================================================
   SHOWCASE
   ========================================================= */
.nur-showcase { padding: 96px 28px; max-width: var(--nur-maxw); margin: 0 auto; }
.nur-showcase__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* =========================================================
   VIDEO
   ========================================================= */
.nur-video { padding: 0 28px 96px; max-width: 860px; margin: 0 auto; }

/* =========================================================
   CTA — Panel band, Slate as accent (never a wash)
   ========================================================= */
.nur-cta { padding: 0 28px 96px; max-width: var(--nur-maxw); margin: 0 auto; }
.nur-cta__inner {
  background: var(--nur-panel);
  border: 1px solid var(--nur-border);
  border-top: 2px solid var(--nur-accent);
  border-radius: var(--nur-radius-lg);
  padding: 64px 40px; text-align: center;
}
.nur-cta__inner h2 { font-size: 32px; margin-bottom: 10px; }
.nur-cta__sub { color: var(--nur-text-2); margin-bottom: 28px; }
.nur-cta__buttons { justify-content: center; }

/* =========================================================
   FAQ
   ========================================================= */
.nur-faq { max-width: 760px; margin: 0 auto; padding: 0 28px 120px; }
.nur-faq__list { border-top: 1px solid var(--nur-border); }
.nur-faq__item { border-bottom: 1px solid var(--nur-border); padding: 22px 0; }
.nur-faq__item summary {
  cursor: pointer; list-style: none; font-weight: 500; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--nur-text);
}
.nur-faq__item summary::-webkit-details-marker { display: none; }
.nur-faq__item summary::after {
  content: '+'; font-family: var(--nur-mono); font-size: 18px;
  color: var(--nur-slate-400); transition: transform 0.2s ease, color 0.15s ease;
}
.nur-faq__item summary:hover::after { color: var(--nur-highlight); }
.nur-faq__item[open] summary::after { transform: rotate(45deg); }
.nur-faq__item p { color: var(--nur-text-2); font-size: 14.5px; margin-top: 14px; max-width: 600px; }

/* =========================================================
   CREDITS — financial support / grant logos
   SVG logos sit on a constant light "plate" so full-colour
   funding marks (EU rules: never recolour) stay legible in
   both themes; all chrome around them follows the theme
   tokens, so dark/light switching stays automatic.
   ========================================================= */
.nur-credits { max-width: var(--nur-maxw); margin: 0 auto; padding: 0 28px 120px; }
.nur-credits__list {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px; max-width: 760px;
}
.nur-credits__item { flex: 1 1 260px; max-width: 340px; }
.nur-credits__link {
  display: flex; align-items: center; justify-content: center;
  min-height: 110px; padding: 22px 28px;
  background: var(--nur-credit-plate, #FFFFFF);
  border: 1px solid var(--nur-border);
  border-radius: var(--nur-radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nur-credits__link:hover {
  border-color: var(--nur-highlight);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nur-highlight) 14%, transparent);
}
.nur-credits__logo {
  display: block; width: 100%; height: auto;
  max-height: 64px; object-fit: contain;
}
/* Scoped with .nur-page so its margins beat the `.nur-page p` reset (0,2,0 > 0,1,1) */
.nur-page .nur-credits__disclaimer {
  max-width: 640px; margin: 28px auto 0; text-align: center;
  color: var(--nur-text-2); font-size: 13px; line-height: 1.6;
}

/* =========================================================
   WORKFLOW RAIL — sideways-scrolling cards
   Head stays on the 1180px grid; the track is full-bleed with
   scroll-snap, its inline padding aligning card 1 to the grid
   while later cards run off the viewport edge (Apple-style).
   Scrolls natively by touch/trackpad/keyboard; the arrow
   buttons are a JS enhancement (edge state synced on scroll).
   ========================================================= */
.nur-rail { padding: 96px 0; }
.nur-rail__head {
  max-width: var(--nur-maxw); margin: 0 auto 36px; padding: 0 28px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.nur-rail__title { font-size: clamp(28px, 3.4vw, 38px); }
.nur-rail__controls { display: flex; gap: 10px; flex: none; padding-bottom: 4px; }
.nur-rail--static .nur-rail__controls { display: none; }
.nur-rail__btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; cursor: pointer;
  background: var(--nur-panel); border: 1px solid var(--nur-border); color: var(--nur-text);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.nur-rail__btn:hover:not(:disabled) { border-color: var(--nur-highlight); background: var(--nur-selection-wash); }
.nur-rail__btn:active:not(:disabled) { color: var(--nur-highlight-press); }
.nur-rail__btn:disabled { opacity: 0.35; cursor: default; }

.nur-rail__track {
  display: flex; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  /* align card 1 with the 1180px content grid on wide screens */
  --nur-rail-edge: max(var(--nur-gutter, 28px), calc((100% - var(--nur-maxw)) / 2 + var(--nur-gutter, 28px)));
  padding: 6px var(--nur-rail-edge) 10px;
  scroll-padding-inline: var(--nur-rail-edge);
  scrollbar-width: none;
}
.nur-rail__track::-webkit-scrollbar { display: none; }
.nur-rail__card {
  flex: none; width: clamp(240px, 27vw, 340px);
  scroll-snap-align: start;
}
.nur-rail__media { margin-bottom: 18px; }
.nur-rail__media .nur-viewport__media { aspect-ratio: 4/3; }
.nur-rail__card-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--nur-text); }
.nur-rail__card-body { color: var(--nur-text-2); font-size: 14.5px; }

/* =========================================================
   DEVICE TABS — segmented switcher
   A pill tab bar (Slate = selection, per brand) swaps one
   panel of image + description. Panels are toggled with the
   `hidden` attribute by the tab script; ARIA roles carry the
   semantics, arrow keys move between tabs.
   ========================================================= */
.nur-tabs { max-width: var(--nur-maxw); margin: 0 auto; padding: 0 28px 96px; }
.nur-tabs__bar {
  display: flex; justify-content: center; gap: 4px;
  width: max-content; max-width: 100%; margin: 0 auto 36px; padding: 5px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--nur-panel); border: 1px solid var(--nur-border); border-radius: 999px;
}
.nur-tabs__bar::-webkit-scrollbar { display: none; }
.nur-tabs__tab {
  flex: none; cursor: pointer;
  font-family: var(--nur-font); font-size: 14px; font-weight: 500;
  color: var(--nur-text-2);
  padding: 9px 22px; border: none; border-radius: 999px; background: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}
.nur-tabs__tab:hover { color: var(--nur-text); background: var(--nur-selection-wash); }
.nur-tabs__tab[aria-selected="true"] { color: var(--nur-on-accent); background: var(--nur-accent); }

/* Panels are stacked in a single grid cell, so the container
   keeps the height of the tallest panel — switching never
   reflows the page. The `hidden` attribute (set by the tab
   script) keeps the semantics, while visibility/opacity do
   the visual swap without a restart-from-zero flash. */
/* Panels are stacked in a single grid cell, so the container
   keeps the height of the tallest panel — switching never
   reflows the page. The card chrome lives on the container,
   which never repaints; only the panel content crossfades.
   The `hidden` attribute (set by the tab script) keeps the
   semantics, while visibility/opacity do the visual swap. */
.nur-tabs__panels {
  display: grid;
  background: var(--nur-panel);
  border: 1px solid var(--nur-border);
  border-radius: var(--nur-radius-lg);
}
.nur-tabs__panel {
  grid-area: 1 / 1;
  padding: 40px;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center;
  transition: opacity 0.2s ease;
}
.nur-tabs__panel[hidden] {
  display: grid;             /* stay in layout to hold the height */
  visibility: hidden;        /* out of a11y tree, focus, and hit-testing */
  opacity: 0;
  transition: none;          /* only the entering panel fades */
}
.nur-tabs__panel-title { margin: 0 0 12px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; color: var(--nur-text); }
.nur-tabs__panel-body { color: var(--nur-text-2); font-size: 15.5px; max-width: 400px; }
.nur-tabs__media .nur-viewport__media { aspect-ratio: 16/10; }
/* keep the frame distinct from the panel behind it */
.nur-tabs__panel .nur-viewport {
  background:
    radial-gradient(circle at 1px 1px, var(--nur-grid-dot) 1px, transparent 1px) 0 0/20px 20px,
    var(--nur-surface);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .nur-feature { grid-template-columns: 1fr; gap: 32px; padding: 56px 28px; }
  .nur-feature--reverse { direction: ltr; }
  .nur-feature__body { max-width: none; }
  .nur-showcase__grid { grid-template-columns: repeat(2, 1fr); }
  .nur-tabs__panel { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .nur-tabs__panel-body { max-width: none; }
  .nur-rail__card { width: clamp(240px, 44vw, 320px); }
}

@media (max-width: 720px) {
  .nur-hero { min-height: 76vh; }
  .nur-hero__content { padding: 0 20px 48px; }
  .nur-hero__cta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nur-feature, .nur-showcase, .nur-video, .nur-faq, .nur-cta, .nur-credits, .nur-tabs { padding-left: 20px; padding-right: 20px; }
  .nur-rail { padding: 64px 0; }
  .nur-rail__head { padding: 0 20px; margin-bottom: 28px; }
  .nur-rail__track { --nur-gutter: 20px; }
  .nur-rail__card { width: min(78vw, 300px); }
  .nur-tabs { padding-bottom: 64px; }
  .nur-tabs__tab { padding: 9px 16px; }
  .nur-tabs__panel { padding: 20px; gap: 22px; }
  .nur-tabs__panel-title { font-size: 22px; }
  .nur-credits__item { flex-basis: 100%; max-width: 340px; }
  .nur-credits__link { min-height: 92px; padding: 18px 22px; }
  .nur-showcase__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nur-cta__inner { padding: 48px 24px; }
  .nur-section-head { padding: 0 20px; margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .nur-showcase__grid { grid-template-columns: 1fr; }
  .nur-page .nur-hero__title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .nur-page * { transition-duration: 0.001ms !important; animation: none !important; }
  .nur-page .nur-viewport { transform: none !important; }
}

/* =========================================================
   SAFE AREAS (iPhone notch / Dynamic Island / home indicator)
   Content is padded by max(gutter, inset) so it never sits
   under the sensor housing or rounded corners — while the
   .nur-page surface, hero media/scrim, and the full-bleed
   feature bands keep painting edge-to-edge underneath.
   Requires viewport-fit=cover on the page's viewport meta:
   <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
   ========================================================= */
@supports (padding: max(0px)) {
  .nur-page {
    --nur-safe-l: env(safe-area-inset-left, 0px);
    --nur-safe-r: env(safe-area-inset-right, 0px);
    --nur-safe-b: env(safe-area-inset-bottom, 0px);
    --nur-gutter: 28px;
    /* clear the home indicator after the last section;
       painted with the page surface, so no visible seam */
    padding-bottom: var(--nur-safe-b);
  }

  .nur-page .nur-hero__content,
  .nur-page .nur-feature-nav,
  .nur-page .nur-feature,
  .nur-page .nur-section-head,
  .nur-page .nur-showcase,
  .nur-page .nur-video,
  .nur-page .nur-cta,
  .nur-page .nur-faq,
  .nur-page .nur-credits,
  .nur-page .nur-rail__head,
  .nur-page .nur-tabs {
    padding-left: max(var(--nur-gutter), var(--nur-safe-l));
    padding-right: max(var(--nur-gutter), var(--nur-safe-r));
  }

  /* rail track: fold the safe insets into the full-bleed edge padding */
  .nur-page .nur-rail__track {
    --nur-rail-edge: max(var(--nur-gutter), var(--nur-safe-l), var(--nur-safe-r),
      calc((100% - var(--nur-maxw)) / 2 + var(--nur-gutter)));
  }

  @media (max-width: 720px) {
    .nur-page { --nur-gutter: 20px; }
  }
}
