/*
 * NordTracer website — built on the Nordis design system (NordisDesignSystem,
 * packages/ui/styles.css and app/landing). Token values are copied verbatim from
 * the design system; when they change there, change them here.
 */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: var(--font-sans);
  --font-mono: "Space Mono", ui-monospace, monospace;

  --background: #F8FCFF;
  --foreground: #142D3E;
  --card: #FFFFFF;
  --card-foreground: #142D3E;
  --popover: #FFFFFF;
  --surface: #FFFFFF;
  --primary: #0A324D;
  --primary-foreground: #FFFFFF;
  --secondary: #EDF5FA;
  --muted: #EDF5FA;
  --muted-foreground: #5B7383;
  --accent-surface: #EDF5FA;
  --accent-surface-muted: #F8FCFF;
  --border: rgb(10 50 77 / 15%);
  --border-strong: rgb(10 50 77 / 20%);
  --ring: #0A324D;

  --affirmative: #17A25F;
  --affirmative-muted: #DCFCEC;
  --affirmative-foreground: #176440;
  --affirmative-border: #87EEBB;
  --destructive-muted: #FEDDDD;
  --destructive-foreground: #A52222;
  --destructive-border: #FBB9B9;
  --warning-muted: #FDF7CF;
  --warning-foreground: #954C12;
  --warning-border: #F9DE57;
  --informational: #1575B9;
  --informational-muted: #E0F2FE;
  --informational-foreground: #15507C;
  --informational-border: #8EC9F0;

  --logo-symbol: #0A324D;
  --logo-wordmark: #0A324D;
  --brand-secondary: #F27024;
  --brand-secondary-foreground: #9A3D08;
  --brand-secondary-background: rgb(242 112 36 / 15%);

  --shadow-xs: 0 1px 2px 0 rgb(10 50 77 / 5%);
  --shadow-sm: 0 1px 3px 0 rgb(10 50 77 / 10%), 0 1px 2px -1px rgb(10 50 77 / 10%);
  --shadow-md: 0 4px 6px -1px rgb(10 50 77 / 10%), 0 2px 4px -2px rgb(10 50 77 / 10%);
  --shadow-2xl: 0 25px 50px -12px rgb(10 50 77 / 25%);

  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-md: 150ms;
  --duration-xl: 300ms;

  --header-height: 80px;
}

.dark {
  --background: #071827;
  --foreground: #FCFCFC;
  --card: #0C2235;
  --card-foreground: #FCFCFC;
  --popover: #112C42;
  --surface: #112C42;
  --primary: #A9C4D6;
  --primary-foreground: #071827;
  --secondary: #112C42;
  --muted: #112C42;
  --muted-foreground: #9EB4C5;
  --accent-surface: #1C3D55;
  --accent-surface-muted: #17364C;
  --border: rgb(202 226 243 / 15%);
  --border-strong: rgb(202 226 243 / 20%);
  --ring: #BDD6E7;

  --affirmative-muted: #132F2C;
  --affirmative-foreground: #8AD9B3;
  --affirmative-border: #305C4D;
  --destructive-muted: #30232F;
  --destructive-foreground: #F2A1AD;
  --destructive-border: #73444D;
  --warning-muted: #302B24;
  --warning-foreground: #EBC379;
  --warning-border: #665436;
  --informational-muted: #152F43;
  --informational-foreground: #96D0F2;
  --informational-border: #365F79;

  --logo-symbol: #8ECFF5;
  --logo-wordmark: #EAF6FF;
  --brand-secondary-foreground: #F2B080;
  --brand-secondary-background: #4A3023;

  --shadow-xs: 0 1px 2px 0 rgb(2 9 18 / 15%);
  --shadow-2xl: 0 25px 50px -12px rgb(2 9 18 / 55%);

  color-scheme: dark;
  color: var(--foreground);
  background-color: var(--background);
}

/* Brighter action surfaces in dark mode (design system: `.dark .group/button`). */
.dark .btn {
  --primary: #8ECFF5;
  --primary-foreground: #071827;
  --border-strong: #4A7897;
  --muted: #214E6E;
  --ring: #8ECFF5;
}

/* ------------------------------------------------------------------ base -- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--ring) 50%, transparent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--informational) 25%, transparent); }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }
.icon-info { color: var(--informational-foreground); }
.icon-ok { color: var(--affirmative-foreground); }
.icon-symbol { color: var(--logo-symbol); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -48px; z-index: 100; padding: 8px 12px; border-radius: var(--radius-lg); background: var(--primary); color: var(--primary-foreground); transition: top var(--duration-md) var(--ease-standard); }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
.container-narrow { width: 100%; max-width: 1152px; margin-inline: auto; padding-inline: 24px; }
@media (min-width: 1024px) { .container { padding-inline: 32px; } }

.muted { color: var(--muted-foreground); }
.tabular { font-variant-numeric: tabular-nums; }
.accent-orange { color: var(--brand-secondary); }

/* Typography scale — design system "Typography" (Figma node 12653:46733). */
.text-display-1 { font-family: var(--font-heading); font-weight: 600; font-size: 36px; line-height: 40px; letter-spacing: -0.8px; }
.text-heading-h1 { font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 32px; letter-spacing: -0.4px; }
.text-heading-h2 { font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 28px; }
.text-heading-h3 { font-weight: 600; font-size: 18px; line-height: 28px; }
.text-heading-h4 { font-weight: 600; font-size: 16px; line-height: 24px; }
.text-heading-h5 { font-weight: 600; font-size: 14px; line-height: 20px; }
.text-body-large { font-weight: 400; font-size: 18px; line-height: 28px; }
.text-body-base { font-weight: 400; font-size: 16px; line-height: 24px; }
.text-body-small { font-weight: 400; font-size: 14px; line-height: 20px; }
.text-label-base { font-weight: 500; font-size: 14px; line-height: 20px; }
.text-label-small { font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: 0.4px; }
.text-caption { font-weight: 400; font-size: 12px; line-height: 16px; letter-spacing: 0.4px; }
.text-mono-sm { font-family: var(--font-mono); font-weight: 400; font-size: 12px; line-height: 18px; }

/* ------------------------------------------------------------ components -- */
/* Button — design system buttonVariants. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
  height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--radius-lg);
  background: transparent; background-clip: padding-box;
  font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap;
  transition: background-color var(--duration-md) var(--ease-standard), color var(--duration-md) var(--ease-standard), border-color var(--duration-md) var(--ease-standard);
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent); }
.btn-sm { height: 36px; padding: 0 12px; }
.btn-lg { height: 44px; padding: 0 32px; }
.btn-icon-sm { width: 36px; height: 36px; padding: 0; }
.btn-icon-sm .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 90%, transparent); }
.btn-outline { border: 0.5px solid var(--border-strong); color: var(--foreground); }
.btn-outline:hover, .btn-ghost:hover { background: var(--muted); }
.btn-ghost { color: var(--foreground); }
.btn-link { height: auto; padding: 0; color: var(--primary); text-underline-offset: 4px; }
.btn-link:hover { text-decoration: underline; }
.btn-link:active { transform: none; }

/* Badge — design system badgeVariants. */
.badge {
  display: inline-flex; align-items: center; gap: 4px; width: fit-content;
  padding: 4px 10px; border: 0.5px solid transparent; border-radius: 9999px;
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
}
.badge-outline { border-color: var(--border-strong); color: var(--foreground); }
.badge-brand { background: var(--brand-secondary-background); color: var(--brand-secondary-foreground); }
.badge-info { border-color: color-mix(in srgb, var(--informational-foreground) 30%, transparent); color: var(--informational-foreground); }
.badge-dot { width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: currentColor; }

/* Card — design system Card (rounded-xl, ring-1 ring-foreground/10). */
.card {
  display: flex; flex-direction: column;
  background: var(--card); color: var(--card-foreground);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 10%, transparent), var(--shadow-xs);
  font-size: 14px;
}

/* Input + label — design system Input / Label. */
.label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1; }
.input {
  width: 100%; min-width: 0; height: 40px; padding: 8px 12px;
  border: 0.5px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--foreground); font-size: 14px;
  transition: border-color var(--duration-md) var(--ease-standard), box-shadow var(--duration-md) var(--ease-standard);
}
.input::placeholder { color: var(--muted-foreground); }
.input:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent); }
.input-lg { height: 44px; background: var(--card); }

.progress { height: 4px; overflow: hidden; border-radius: 9999px; background: var(--muted); }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--informational-foreground); }

/* Navy surface with the ice-blue glow used by the template's dark sections. */
.glow { background-image: radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--logo-symbol) 18%, transparent), transparent 55%); }

.eyebrow { font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: 0.4px; color: var(--brand-secondary-foreground); }
.section-title { margin-top: 12px; }
.check-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 8px; font-size: 14px; line-height: 20px; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px;
  background: var(--affirmative-foreground);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------------------------------------------------------------- header -- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  background-color: transparent; border-bottom: 1px solid transparent;
  transition: background-color 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}
.site-header[data-scrolled], .site-header[data-menu-open] {
  background-color: color-mix(in srgb, var(--background) 92%, transparent);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--background) 18%, transparent);
}
.site-header:not([data-scrolled]):not([data-menu-open]) { background-image: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-height); }
.brand { display: inline-flex; border-radius: var(--radius-lg); }
.brand-logo { width: auto; height: 28px; overflow: visible; }
.brand-logo-symbol { fill: var(--logo-symbol); }
.brand-logo-word { fill: var(--logo-wordmark); }
/* The header logo stays still: one turn on load, half a turn on hover/focus. */
.brand-orbit { transform-box: view-box; transform-origin: 362px 504px; transition: transform 700ms var(--ease-emphasized); animation: brand-settle 1200ms var(--ease-emphasized) 200ms backwards; }
.brand:hover .brand-orbit, .brand:focus-visible .brand-orbit { transform: rotate(180deg); }
@keyframes brand-settle { from { transform: rotate(-360deg); } to { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .brand-orbit { animation: none; transition: none; } .brand:hover .brand-orbit, .brand:focus-visible .brand-orbit { transform: none; } }
.desktop-nav { display: none; align-items: center; gap: 24px; }
.desktop-nav a { color: var(--muted-foreground); transition: color var(--duration-md) var(--ease-standard); }
.desktop-nav a:hover { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.language-select { position: relative; display: none; align-items: center; }
.language-select select {
  height: 36px; padding: 0 30px 0 12px; appearance: none; cursor: pointer;
  border: 0.5px solid var(--border-strong); border-radius: var(--radius-lg);
  background: transparent; color: var(--foreground); font-size: 14px; font-weight: 500;
}
.language-select select option { color: #142D3E; background: #FFFFFF; }
.language-select .icon { position: absolute; right: 10px; pointer-events: none; color: var(--muted-foreground); }
.login-link, .header-demo { display: none; }
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { display: grid; gap: 16px; padding: 20px 24px 24px; border-top: 1px solid var(--border); }
.mobile-menu[hidden] { display: none; }
.mobile-menu > a { font-size: 16px; font-weight: 500; }
.mobile-language-row { display: flex; align-items: center; justify-content: space-between; color: var(--muted-foreground); }
.mobile-language-row .language-select { display: inline-flex; }
@media (min-width: 640px) {
  .header-demo { display: inline-flex; }
  .header-actions > .language-select { display: inline-flex; }
}
@media (min-width: 1024px) { .login-link { display: inline-flex; } }
@media (min-width: 1280px) {
  .desktop-nav { display: flex; }
  .menu-button, .mobile-menu { display: none !important; }
}

/* ------------------------------------------------------------------ hero -- */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; min-height: 100dvh; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -25% -10%; pointer-events: none;
  background: radial-gradient(ellipse at 75% 35%, color-mix(in srgb, var(--logo-symbol) 9%, transparent), transparent 55%);
  translate: 0 var(--depth-glow, 0px);
}
.hero-layout { position: relative; display: grid; align-items: center; gap: 48px; min-height: inherit; padding-top: 160px; padding-bottom: 80px; }
.hero-copy { translate: 0 var(--depth-copy, 0px); }
.headline { margin-top: 28px; font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -0.045em; font-weight: 600; }
.headline > span { display: block; }
.headline-accent { color: var(--logo-symbol); }
.hero-lead { max-width: 32rem; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
@media (min-width: 1024px) {
  .hero-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 192px; padding-bottom: 112px; padding-inline: 32px; }
}

/* Radar — design system ScanRadar, scaled 3× as in the landing template.
   Decorative idle state: motion never implies an active network scan. */
.radar-stage { position: relative; isolation: isolate; min-width: 0; padding-top: 320px; }
.radar-slot {
  position: absolute; z-index: -1; top: 264px; left: 64%;
  width: 176px; height: 176px; pointer-events: none;
  transform: translate(-50%, -50%) perspective(1000px) rotateX(var(--radar-tilt-x, 0deg)) rotateY(var(--radar-tilt-y, 0deg)) scale(3);
  translate: 0 var(--depth-radar, 0px);
}
.radar { --radar-ink: var(--informational-foreground); --radar-glow: var(--logo-symbol); position: relative; isolation: isolate; width: 176px; height: 176px; }
.radar-halo { position: absolute; inset: -40px; border-radius: 50%; pointer-events: none; animation: radar-breathe 6s ease-in-out infinite;
  background: radial-gradient(circle, color-mix(in srgb, var(--radar-glow) 14%, transparent), color-mix(in srgb, var(--informational-muted) 45%, transparent) 40%, transparent 70%); }
.radar-face { position: absolute; inset: 0; overflow: hidden; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--radar-ink) 22%, transparent);
  background: radial-gradient(circle, var(--background) 18%, color-mix(in srgb, var(--informational-muted) 50%, var(--background)) 100%);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--radar-glow) 8%, transparent), 0 0 24px color-mix(in srgb, var(--radar-glow) 8%, transparent); }
.radar-grid { position: absolute; inset: 0; opacity: .45;
  background:
    linear-gradient(transparent calc(50% - .5px), color-mix(in srgb, var(--radar-ink) 18%, transparent) 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), color-mix(in srgb, var(--radar-ink) 18%, transparent) 50%, transparent calc(50% + .5px)); }
.radar-ring { position: absolute; border: 1px solid color-mix(in srgb, var(--radar-ink) 14%, transparent); border-radius: 50%; }
.radar-ring-inner { inset: 43px; }
.radar-ring-middle { inset: 19px; }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; animation: radar-sweep 6s linear infinite; will-change: transform;
  background: conic-gradient(from 0deg, transparent 0deg 270deg, color-mix(in srgb, var(--radar-glow) 5%, transparent) 300deg, color-mix(in srgb, var(--radar-ink) 22%, transparent) 359deg, transparent 360deg); }
.radar-beam { position: absolute; left: calc(50% - .5px); top: 0; width: 1px; height: 50%; opacity: .65;
  background: linear-gradient(var(--radar-ink), color-mix(in srgb, var(--radar-glow) 50%, transparent));
  box-shadow: 0 0 7px color-mix(in srgb, var(--radar-glow) 65%, transparent); }
.radar-core { position: absolute; inset: 53px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--radar-ink) 18%, transparent); background: var(--background);
  box-shadow: 0 0 20px color-mix(in srgb, var(--radar-glow) 15%, transparent); }
.radar-core img { width: 48px; height: 48px; }
.radar-pulse { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--radar-ink) 25%, transparent);
  animation: radar-pulse 16s linear infinite; }
.radar-pulse-echo { animation-delay: -8s; }
.radar-signal { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--radar-ink);
  box-shadow: 0 0 8px color-mix(in srgb, var(--radar-glow) 65%, transparent); animation: radar-signal 6s linear infinite; }
.radar-signal::after { content: ""; position: absolute; inset: -4px; border: 1px solid color-mix(in srgb, var(--radar-ink) 35%, transparent); border-radius: 50%; }
.radar-signal-1 { top: 23%; left: 76%; animation-delay: -5.25s; }
.radar-signal-2 { top: 74%; left: 65%; animation-delay: -3.6s; }
.radar-signal-3 { top: 57%; left: 13%; animation-delay: -1.3s; }
.radar-tick { position: absolute; border-radius: 1px; background: color-mix(in srgb, var(--radar-ink) 35%, transparent); }
.radar-tick-n, .radar-tick-s { width: 1px; height: 5px; left: calc(50% - .5px); }
.radar-tick-n { top: -3px; }
.radar-tick-s { bottom: -3px; }
.radar-tick-w, .radar-tick-e { width: 5px; height: 1px; top: calc(50% - .5px); }
.radar-tick-w { left: -3px; }
.radar-tick-e { right: -3px; }
@keyframes radar-sweep { to { transform: rotate(360deg); } }
@keyframes radar-breathe { 0%, 100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes radar-pulse { 0% { opacity: 0; transform: scale(1); } 15% { opacity: .55; } 75%, 100% { opacity: 0; transform: scale(1.9); } }
@keyframes radar-signal { 0%, 4% { opacity: 1; transform: scale(1.1); } 30%, 100% { opacity: .18; transform: scale(.8); } }

/* Glass console — design system SecurityConsole inside the template's glass card. */
.glass-console {
  position: relative; overflow: hidden;
  transform: perspective(1100px) rotateX(var(--console-tilt-x, 0deg)) rotateY(var(--console-tilt-y, 0deg));
  translate: 0 var(--depth-console, 0px);
  border: 1px solid color-mix(in srgb, var(--logo-symbol) 25%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--logo-symbol) 8%, transparent), transparent 65%), color-mix(in srgb, var(--card) 48%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--logo-wordmark) 14%, transparent), 0 24px 60px color-mix(in srgb, var(--background) 45%, transparent);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass-console { background-color: color-mix(in srgb, var(--card) 88%, transparent); }
}
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.console-lights { display: flex; gap: 6px; }
.console-lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-secondary); }
.console-lights i:nth-child(2) { background: var(--warning-foreground); }
.console-lights i:nth-child(3) { background: var(--affirmative-foreground); }
.console-body { display: grid; gap: 16px; padding: 20px 16px; }
.console-meta { display: flex; justify-content: space-between; }
.console-meta > span:first-child { display: flex; align-items: center; gap: 6px; }
.console-state { width: 6px; height: 6px; border-radius: 50%; background: var(--informational-foreground); }
.console-state[data-done] { background: var(--affirmative-foreground); }
.console-command { min-height: 40px; overflow-wrap: anywhere; color: var(--informational-foreground); }
.console-cursor { animation: console-cursor 1.2s steps(2, end) infinite; }
.console-stages { display: grid; gap: 16px; padding: 0; list-style: none; }
.console-stages li { display: flex; align-items: center; gap: 12px; color: var(--muted-foreground); transition: color 500ms var(--ease-standard); }
.console-stages li[data-state="active"], .console-stages li[data-state="done"] { color: var(--foreground); }
.console-stages li > span:first-child { font-family: var(--font-sans); font-size: 12px; letter-spacing: .4px; color: var(--muted-foreground); }
.console-stages li[data-state="active"] > span:first-child { color: var(--informational-foreground); }
.console-stages li > span:nth-child(2) { flex: 1; min-width: 0; }
.console-stages .icon { width: 16px; height: 16px; }
.console-stages .stage-done { color: var(--affirmative-foreground); }
.console-stages .stage-active { color: var(--informational-foreground); animation: console-spin 1.6s linear infinite; }
.console-stages .stage-idle { width: 6px; height: 6px; margin-right: 4px; border: 1px solid color-mix(in srgb, var(--muted-foreground) 50%, transparent); border-radius: 50%; }
.console-footer { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.console-log { min-height: 40px; font-family: var(--font-sans); }
.console-progress-row { display: flex; justify-content: space-between; font-family: var(--font-sans); }
.console-progress-row > span:first-child { color: var(--informational-foreground); }
.console-progress-row[data-done] > span:first-child { color: var(--affirmative-foreground); }
@keyframes console-cursor { 50% { opacity: 0; } }
@keyframes console-spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- strip -- */
.strip { border-bottom: 1px solid var(--border); background: var(--card); }
.strip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 36px; }
.strip-item { display: flex; align-items: center; gap: 12px; }
.strip-item .icon { width: 28px; height: 28px; }
/* Long compound words (fi: päätelaiteinventaario, de) must break inside the 2-column phone grid. */
.strip-item > div { min-width: 0; }
.strip-item h2, .strip-item p { overflow-wrap: anywhere; hyphens: auto; }
@media (min-width: 1024px) { .strip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ band -- */
.band { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--accent-surface-muted) 50%, transparent); }
.band-layout { display: grid; align-items: center; gap: 32px; padding-block: 48px; }
.band-title { margin: 16px 0 12px; }
.band-form { display: grid; gap: 12px; }
.band-field { display: flex; flex-direction: column; gap: 8px; }
.btn-field { height: 44px; }
@media (min-width: 640px) { .band-field { flex-direction: row; } }
@media (min-width: 1024px) { .band-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* -------------------------------------------------------------- sections -- */
.section { padding-block: 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-lead { max-width: 24rem; }
.tinted { background: color-mix(in srgb, var(--accent-surface-muted) 50%, transparent); }

/* Capability explorer */
.capability-layout { display: grid; gap: 16px; }
.capability-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.capability-tab {
  display: grid; grid-template-columns: 28px 1fr; gap: 2px 8px; padding: 16px; text-align: left;
  border: 0; border-radius: var(--radius-xl); background: transparent; color: var(--muted-foreground);
  box-shadow: 0 0 0 1px transparent;
  transition: background-color var(--duration-md) var(--ease-standard), box-shadow var(--duration-md) var(--ease-standard);
}
.capability-tab > span { grid-row: 1 / span 2; padding-top: 1px; color: var(--muted-foreground); }
.capability-tab strong { color: var(--foreground); font-size: 16px; line-height: 24px; font-weight: 600; }
.capability-tab small { font-size: 12px; line-height: 16px; letter-spacing: .4px; }
.capability-tab:hover { background: var(--muted); }
.capability-tab.active { background: var(--card); box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 10%, transparent), var(--shadow-xs); }
.capability-tab.active > span { color: var(--brand-secondary-foreground); }
.capability-display { display: grid; gap: 24px; padding: 24px; }
.capability-copy { display: grid; align-content: center; gap: 16px; }
.capability-copy .check-list { margin-top: 4px; }
@media (min-width: 768px) {
  .capability-display { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 420px; padding: 32px; }
}
@media (min-width: 1024px) {
  .capability-layout { grid-template-columns: 320px 1fr; gap: 24px; }
  .capability-nav { grid-template-columns: 1fr; align-content: start; }
}

/* Product preview panels (markup generated by content.js) */
.product-panel { min-width: 0; align-self: center; padding: 20px; border-radius: var(--radius-xl); background: var(--accent-surface); color: var(--foreground); font-size: 12px; }
.preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.preview-heading strong { font-size: 14px; font-weight: 600; line-height: 20px; }
.preview-heading small { color: var(--muted-foreground); font-size: 12px; text-align: right; }
.inventory-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.inventory-row:last-child { border-bottom: 0; padding-bottom: 0; }
.inventory-row strong { display: block; font-weight: 500; overflow-wrap: anywhere; }
.inventory-row small { display: block; margin-top: 4px; color: var(--muted-foreground); font: 11px/1.4 var(--font-mono); }
.inventory-row > span { justify-self: end; text-align: right; }
.inventory-label { padding: 12px 0; color: var(--muted-foreground); }
.inventory-label > span:first-child { justify-self: start; text-align: left; }
.label-orange { padding: 4px 8px; border-radius: 9999px; background: var(--brand-secondary-background); color: var(--brand-secondary-foreground); font-weight: 500; }
.priority-list { padding: 0; list-style: none; }
.priority-list li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.priority-list li:last-child { border: 0; padding-bottom: 0; }
.priority-list strong { display: block; font-size: 13px; font-weight: 500; }
.priority-list small { display: block; margin-top: 4px; color: var(--muted-foreground); }
.rank { padding-top: 1px; color: var(--muted-foreground); font: 11px var(--font-mono); }
.priority-dot { flex-shrink: 0; width: 8px; height: 8px; margin: 5px 0 0 auto; border-radius: 50%; background: var(--brand-secondary); box-shadow: 0 0 0 4px var(--brand-secondary-background); }
.work-owner { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--informational-muted); color: var(--informational-foreground); font: 11px var(--font-mono); }
.work-owner strong { display: block; font-size: 13px; }
.work-owner small { display: block; margin-top: 2px; color: var(--muted-foreground); }
.task-timeline { display: grid; gap: 4px; padding: 0; list-style: none; }
.task-timeline li { display: flex; align-items: center; gap: 12px; min-height: 40px; color: var(--muted-foreground); }
.task-timeline li > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); font: 10px var(--font-mono); }
.task-timeline li strong { font-weight: 500; }
.task-timeline .done { color: var(--foreground); }
.task-timeline .done > span { border-color: transparent; background: var(--affirmative-muted); color: var(--affirmative-foreground); }
.task-timeline .current { color: var(--foreground); }
.task-timeline .current > span { border-color: var(--informational-foreground); color: var(--informational-foreground); }
.report-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 16px 0; }
.report-metrics div { padding: 12px; border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 8%, transparent); }
.report-metrics strong { display: block; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.4px; }
.report-metrics span { color: var(--muted-foreground); }
.report-outline { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.report-outline > span { color: var(--muted-foreground); font-family: var(--font-mono); }
.report-outline strong { font-weight: 500; }
.report-outline p { grid-column: 2; color: var(--muted-foreground); }
.report-formats { display: flex; gap: 8px; }
.report-formats span { padding: 4px 10px; border: 0.5px solid var(--border-strong); border-radius: 9999px; font-family: var(--font-mono); font-size: 11px; }

/* Need cards */
.card-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.need-card { gap: 12px; padding: 16px; transition: box-shadow var(--duration-md) var(--ease-standard); }
.need-card:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--informational-foreground) 40%, transparent), var(--shadow-xs); }
.need-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.icon-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-xl); background: var(--informational-muted); color: var(--informational-foreground); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.need-preview { margin-top: auto; align-self: stretch; }
.need-card > p { flex-grow: 0; }
.need-card .tag-row { margin-bottom: 8px; }

/* Modules + deployment */
.module-card { gap: 12px; padding: 16px; }
.module-card:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--informational-foreground) 40%, transparent), var(--shadow-xs); }
.deployment { border-top: 1px solid var(--border); }
.deploy-layout { display: grid; gap: 40px; padding-block: 80px; }
.deploy-lead { max-width: 28rem; margin-top: 16px; }
.deploy-grid { display: grid; gap: 24px; }
.deploy-item { display: flex; gap: 16px; }
.deploy-item .icon-tile { flex-shrink: 0; }
.deploy-item p { margin-top: 4px; }
@media (min-width: 768px) { .deploy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .deploy-layout { grid-template-columns: .8fr 1.2fr; align-items: start; } }

/* Contact */
.contact-layout { display: grid; gap: 40px; border-top: 1px solid var(--border); }
.contact-text { max-width: 28rem; margin-top: 16px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.office-grid { display: grid; gap: 16px; align-content: start; }
.office-card { gap: 8px; padding: 20px; }
.office-card address { font-style: normal; }
@media (min-width: 640px) { .office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: .8fr 1.2fr; } }

/* Trust */
.trust-layout { display: grid; align-items: center; gap: 48px; padding-block: 80px; }
.trust-text { margin-top: 24px; }
.evidence-list { display: grid; gap: 16px; margin-top: 24px; padding: 0; list-style: none; }
.evidence-list li { display: flex; gap: 10px; }
.evidence-list .icon { margin-top: 2px; }
.trust-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.feature-panel { display: grid; gap: 28px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-3xl); }
.feature-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.feature-heading { display: flex; align-items: center; gap: 20px; }
.feature-number { font-size: clamp(3.5rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.06em; font-weight: 600; }
.agenda { position: relative; display: grid; gap: 20px; padding: 0; list-style: none; }
.agenda::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 63px; width: 1px; background: linear-gradient(var(--logo-symbol), color-mix(in srgb, var(--logo-symbol) 10%, transparent)); opacity: .5; }
.agenda li { position: relative; display: grid; grid-template-columns: 44px 28px 1fr; align-items: start; gap: 12px; }
.agenda-time { padding-top: 5px; color: var(--muted-foreground); }
.agenda-dot { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--informational-muted); color: var(--informational-foreground); box-shadow: 0 0 0 4px var(--background); }
.agenda-dot .icon { width: 14px; height: 14px; }
.agenda li p { margin-top: 2px; }
.feature-note { padding-top: 20px; border-top: 1px solid var(--border); }
@media (min-width: 1024px) { .trust-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* CTA */
.cta-wrap { padding: 64px 24px; }
.cta-panel { position: relative; overflow: hidden; max-width: 1152px; margin-inline: auto; padding: 64px 24px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-3xl); }
.cta-panel > .icon { margin: 0 auto 24px; }
.cta-panel h2 { max-width: 40rem; margin-inline: auto; }
.cta-panel p { max-width: 42rem; margin: 20px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* FAQ — native <details>, styled as the design system Accordion. */
.faq-layout { display: grid; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.faq-layout .section-title { margin-top: 20px; }
.faq-layout .section-title + p { margin-top: 20px; }
.faq-cta { margin-top: 24px; }
.faq-list { display: grid; gap: 12px; align-content: start; }
.faq-item { padding: 8px 20px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); }
.faq-item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover > span { text-decoration: underline; }
.faq-item summary .icon { margin-top: 2px; transition: transform var(--duration-xl) var(--ease-emphasized); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding: 8px 0 10px; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: .8fr 1.2fr; } }

/* Radar band — the previous nordtracer.com "Section 5", rebuilt from its own
   SVGs: #09172B ground, three blurred glows, 600px circle lines and the
   twin-wedge radar turning once every 10s. Measured on the live old site at
   1440px: the radar centre sits on the band's bottom edge (y = 425 of 430), so
   only the upper half shows; title at y = 178, logo at y = 224. Decorative only. */
.radar-band { position: relative; height: 430px; overflow: hidden; isolation: isolate; background: #09172B; }
.radar-band-glow span, .radar-band-circle, .radar-band-loop { position: absolute; z-index: -1; left: 50%; pointer-events: none; }
.radar-band-glow span { border-radius: 50%; translate: -50% 0; }
.radar-band-glow span:nth-child(1) { top: 200px; width: 432px; height: 432px; background: rgb(98 29 237 / 50%); filter: blur(98px); }
.radar-band-glow span:nth-child(2) { top: 299px; width: 234px; height: 234px; background: rgb(29 237 94); filter: blur(78px); }
.radar-band-glow span:nth-child(3) { top: 345px; width: 142px; height: 142px; background: rgb(31 197 219); filter: blur(78px); }
.radar-band-circle, .radar-band-loop { top: 125px; width: 600px; height: 600px; margin-left: -300px; }
.radar-band-loop { animation: radar-band-turn 10s linear infinite; will-change: transform; }
@keyframes radar-band-turn { to { transform: rotate(360deg); } }
.radar-band-content { position: absolute; inset: 178px 0 auto; display: grid; justify-items: center; gap: 25px; padding-inline: 24px; text-align: center; }
.radar-band-content > p { color: #FFFFFF; font-size: 20.8px; line-height: 21px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .radar-band-loop { animation: none; transform: rotate(152deg); } }
.radar-logo { width: min(301px, 80vw); height: auto; overflow: visible; }
.radar-logo-symbol { fill: #FFFFFF; }
.radar-logo-word { fill: #FFFFFF; }
/* Symbol centre in the logo's viewBox: the outer arcs orbit it, the N breathes. */
.logo-orbit { transform-box: view-box; transform-origin: 362px 504px; animation: radar-sweep 14s linear infinite reverse; }
.logo-core { transform-box: view-box; transform-origin: 362px 504px; animation: logo-breathe 4.2s ease-in-out infinite; }
@keyframes logo-breathe { 0%, 100% { opacity: .85; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.03); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--logo-symbol) 60%, transparent)); } }
.radar-logo-word path { transition: opacity 600ms var(--ease-emphasized), translate 600ms var(--ease-emphasized); }
.radar-logo-word path:nth-child(2) { transition-delay: 40ms; } .radar-logo-word path:nth-child(3) { transition-delay: 80ms; }
.radar-logo-word path:nth-child(4) { transition-delay: 120ms; } .radar-logo-word path:nth-child(5) { transition-delay: 160ms; }
.radar-logo-word path:nth-child(6) { transition-delay: 200ms; } .radar-logo-word path:nth-child(7) { transition-delay: 240ms; }
.radar-logo-word path:nth-child(8) { transition-delay: 280ms; } .radar-logo-word path:nth-child(9) { transition-delay: 320ms; }
.radar-logo-word path:nth-child(10) { transition-delay: 360ms; }
.radar-band-content[data-scroll-state="waiting"] { opacity: 1; translate: none; }
.radar-band-content[data-scroll-state="waiting"] .radar-logo-word path { opacity: 0; translate: 0 18px; }
@media (prefers-reduced-motion: reduce) { .logo-orbit, .logo-core { animation: none; } }

/* ---------------------------------------------------------------- footer -- */
.site-footer { border-top: 1px solid var(--border); }
.footer-main { display: grid; gap: 48px; padding-block: 64px; }
.footer-main img { width: auto; height: 28px; }
.footer-text { max-width: 28rem; margin-top: 24px; }
.footer-cta { margin-top: 24px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-links > div { display: grid; align-content: start; justify-items: start; gap: 12px; }
.footer-links h2 { margin-bottom: 8px; }
.footer-links a, .footer-links button { padding: 0; border: 0; background: none; color: var(--muted-foreground); font-size: 14px; line-height: 20px; text-align: left; transition: color var(--duration-md) var(--ease-standard); }
.footer-links a:hover, .footer-links button:hover { color: var(--foreground); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid var(--border); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom a:hover { color: var(--foreground); }
@media (min-width: 1024px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Analytics consent banner */
.consent-banner { position: fixed; z-index: 60; right: 16px; bottom: 16px; left: 16px; display: grid; gap: 8px; max-width: 26rem; padding: 16px; margin-left: auto; box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 10%, transparent), var(--shadow-2xl); }
.consent-banner[hidden] { display: none; }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.footer-text-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; }
.footer-text-button:hover { color: var(--foreground); }

/* --------------------------------------------------------------- dialogs -- */
.dialog {
  width: calc(100% - 2rem); max-width: 24rem; padding: 16px; margin: auto;
  border: 0; border-radius: var(--radius-xl);
  background: var(--popover); color: var(--foreground);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 10%, transparent), var(--shadow-2xl);
  font-size: 14px;
}
.dialog[open] { display: grid; gap: 16px; animation: dialog-in 100ms var(--ease-standard); }
.dialog::backdrop { background: rgb(0 0 0 / 10%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.report-dialog { max-width: 36rem; }
.dialog-close { position: absolute; top: 8px; right: 8px; }
.dialog-header { display: grid; gap: 8px; padding-right: 32px; }
.dialog-title { font-size: 16px; font-weight: 500; line-height: 1.25; }
.dialog-description { color: var(--muted-foreground); }
.demo-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.dialog-footer { display: flex; flex-direction: column-reverse; gap: 8px; margin: 0 -16px -16px; padding: 16px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-xl) var(--radius-xl); background: color-mix(in srgb, var(--muted) 50%, transparent); }
@media (min-width: 640px) { .dialog-footer { flex-direction: row; justify-content: flex-end; } }
.dialog-success { display: grid; justify-items: start; gap: 12px; padding: 20px; border-radius: var(--radius-xl); background: var(--affirmative-muted); color: var(--affirmative-foreground); }
.dialog-success[hidden] { display: none; }
@keyframes dialog-in { from { opacity: 0; transform: scale(.95); } }

/* ------------------------------------------------------ PHP2Shell check -- */
/* php2shell.html. Built from the site's existing pieces (card, input, badge,
   faq-item, cta-panel); status tones map to the design system's status tokens. */
.p2s-page .header-actions > .language-select { display: inline-flex; }
/* Homepage hero link to the page. */
.p2s-home-link { gap: 8px; margin-top: 20px; padding: 6px 12px; white-space: normal; border-color: var(--destructive-border); background: var(--destructive-muted); color: var(--destructive-foreground); font-size: 13px; line-height: 18px; transition: border-color var(--duration-md) var(--ease-standard); }
.p2s-home-link:hover { border-color: var(--destructive-foreground); }
.p2s-home-link span { text-decoration: underline; text-underline-offset: 3px; }
.p2s-hero { padding-top: calc(var(--header-height) + 40px); padding-bottom: 64px; }
.p2s-hero-layout { display: grid; gap: 40px; align-items: start; }
.p2s-hero-copy, .p2s-check { min-width: 0; }
.p2s-title { margin-top: 24px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.04em; font-weight: 600; overflow-wrap: anywhere; }
.p2s-title > span { display: block; }
.p2s-lead { max-width: 36rem; margin-top: 20px; }
.p2s-facts { display: grid; gap: 16px; margin-top: 28px; }
.p2s-facts > div { display: grid; gap: 8px; }
.p2s-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p2s-chips .badge { font-family: var(--font-mono); }
.p2s-unsupported { margin-top: 16px; }
.p2s-check { gap: 20px; padding: 24px; }
.p2s-check-head { display: grid; gap: 4px; }
.p2s-form { display: grid; gap: 12px; }
.p2s-fieldset { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.p2s-fieldset:disabled .input, .p2s-fieldset:disabled .btn { opacity: .6; cursor: not-allowed; }
.p2s-field { display: grid; gap: 8px; }
.input[aria-invalid="true"] { border-color: var(--destructive-foreground); }
.p2s-field-error { color: var(--destructive-foreground); }
.p2s-field-error[hidden] { display: none; }
.p2s-captcha-wrap { min-width: 0; }
.p2s-captcha { min-height: 65px; }
.p2s-captcha[hidden] { display: none; }
.p2s-submit { width: 100%; }
.p2s-submit:disabled { opacity: .6; cursor: not-allowed; }
.p2s-spinner { animation: console-spin 1s linear infinite; }
.p2s-spinner[hidden] { display: none; }
.p2s-status:empty { display: none; }
.p2s-authorise { padding-top: 12px; border-top: 1px solid var(--border); }

/* Status tones: alert boxes and result cards. */
.p2s-tone-critical { --tone-bg: var(--destructive-muted); --tone-fg: var(--destructive-foreground); --tone-border: var(--destructive-border); }
.p2s-tone-warning { --tone-bg: var(--warning-muted); --tone-fg: var(--warning-foreground); --tone-border: var(--warning-border); }
.p2s-tone-ok { --tone-bg: var(--affirmative-muted); --tone-fg: var(--affirmative-foreground); --tone-border: var(--affirmative-border); }
.p2s-tone-info { --tone-bg: var(--informational-muted); --tone-fg: var(--informational-foreground); --tone-border: var(--informational-border); }
.p2s-tone-neutral { --tone-bg: var(--muted); --tone-fg: var(--foreground); --tone-border: var(--border-strong); }
.p2s-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 14px; border: 1px solid var(--tone-border); border-radius: var(--radius-lg); background: var(--tone-bg); color: var(--tone-fg); }
.p2s-alert[hidden] { display: none; }
.p2s-alert > .icon { margin-top: 2px; }
.p2s-alert-body { display: grid; gap: 4px; min-width: 0; }
.p2s-alert-action { justify-self: start; margin-top: 8px; }
.p2s-alert:focus-visible { outline: 2px solid color-mix(in srgb, var(--ring) 50%, transparent); outline-offset: 2px; }

.p2s-result-section { padding-block: 48px; scroll-margin-top: var(--header-height); }
.p2s-result-section[hidden] { display: none; }
.p2s-result { gap: 20px; padding: 24px; border-top: 4px solid var(--tone-border); }
/* Result + action panel: the panel comes first in the DOM (above the result on
   narrow screens) and sits in the side column on desktop. */
.p2s-result-layout { display: grid; gap: 24px; align-items: start; }
.p2s-result-slot, .p2s-panel-slot { min-width: 0; }
.p2s-panel { gap: 16px; padding: 24px; border-top: 4px solid var(--tone-border); }
.p2s-panel-heading { color: var(--tone-fg); font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.4px; overflow-wrap: anywhere; }
.p2s-panel-subtitle { padding-top: 16px; border-top: 1px solid var(--border); }
.p2s-panel-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.p2s-panel-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.p2s-panel-steps p { padding-top: 6px; overflow-wrap: anywhere; }
.p2s-panel-actions { display: grid; gap: 8px; padding-top: 8px; }
.p2s-panel-actions .btn { width: 100%; height: auto; min-height: 44px; white-space: normal; text-align: center; }
.p2s-status-badge-lg { gap: 6px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.p2s-status-badge-lg .icon { width: 16px; height: 16px; }
@media (min-width: 1024px) {
  .p2s-result-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
  .p2s-result-slot { grid-column: 1; grid-row: 1; }
  .p2s-panel-slot { grid-column: 2; grid-row: 1; }
  .p2s-panel-heading { font-size: 36px; line-height: 40px; letter-spacing: -0.8px; }
}
.p2s-result-head { display: grid; justify-items: start; gap: 12px; }
.p2s-result-head h2:focus { outline: none; }
.p2s-result-head h2:focus-visible { outline: 2px solid color-mix(in srgb, var(--ring) 50%, transparent); outline-offset: 4px; }
.p2s-status-badge { background: var(--tone-bg); color: var(--tone-fg); border-color: var(--tone-border); white-space: normal; }
.p2s-status-badge .icon { width: 14px; height: 14px; }
.p2s-result-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 16px; padding: 16px 0; border-block: 1px solid var(--border); }
.p2s-result-facts > div { display: grid; gap: 4px; min-width: 0; }
.p2s-result-facts dd { overflow-wrap: anywhere; }
.p2s-note { display: flex; gap: 8px; }
.p2s-note .icon { margin-top: 2px; }
.p2s-details { background: var(--accent-surface-muted); }
.p2s-technical { display: grid; gap: 6px; padding: 4px 0 12px; }
.p2s-technical dd { margin-bottom: 8px; overflow-wrap: anywhere; }
.p2s-evidence { margin: 0; padding: 12px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.p2s-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Content sections */
.p2s-split { display: grid; gap: 40px; align-items: start; }
.p2s-split > * { min-width: 0; }
.p2s-copy { max-width: 36rem; margin-top: 20px; }
.p2s-table-card { overflow: hidden; }
.p2s-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p2s-table caption { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.p2s-table th, .p2s-table td { padding: 12px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.p2s-table thead th { font-weight: 500; background: var(--accent-surface-muted); }
.p2s-table tbody tr:last-child > * { border-bottom: 0; }
.p2s-table tbody th { font-weight: 400; white-space: nowrap; }
.p2s-unsupported-cell { color: var(--warning-foreground); }
.p2s-steps { display: grid; gap: 20px; margin-top: 28px; padding: 0; list-style: none; }
.p2s-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.p2s-step-no { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--informational-muted); color: var(--informational-foreground); }
.p2s-steps p { padding-top: 4px; overflow-wrap: anywhere; }
.p2s-mitigation { gap: 20px; padding: 24px; }
/* "Verify on your server": spans both remediation columns. */
.p2s-verify { display: grid; gap: 24px; padding: 24px; }
.p2s-verify-main, .p2s-verify-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.p2s-cmd-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.p2s-cmd { display: grid; gap: 6px; min-width: 0; }
.p2s-cmd-row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.p2s-cmd-row code { flex: 1; min-width: 0; min-height: 36px; padding: 9px 12px; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--accent-surface-muted); color: var(--foreground); }
.p2s-copy-btn { flex-shrink: 0; }
.p2s-backport { padding-top: 16px; border-top: 1px solid var(--border); color: var(--warning-foreground); }
.p2s-verify-cta { justify-self: start; height: auto; min-height: 40px; white-space: normal; text-align: left; }
.p2s-mitigation .check-list li { overflow-wrap: anywhere; }
.p2s-mitigation .p2s-note { padding-top: 16px; border-top: 1px solid var(--border); color: var(--warning-foreground); }
.evidence-list li > p { min-width: 0; }
.p2s-limits { gap: 12px; padding: 24px; box-shadow: 0 0 0 1px var(--warning-border), var(--shadow-xs); background: var(--warning-muted); color: var(--warning-foreground); }
.p2s-limits-title { display: flex; align-items: center; gap: 8px; }
.p2s-sources { display: grid; gap: 16px; padding-top: 0; }
.p2s-source-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.p2s-source-list li { display: flex; gap: 8px; font-size: 14px; line-height: 20px; }
.p2s-source-list .icon { margin-top: 2px; }
.p2s-source-list a { min-width: 0; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .p2s-hero { padding-top: calc(var(--header-height) + 72px); padding-bottom: 96px; }
  .p2s-hero-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; }
  .p2s-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .p2s-verify { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; padding: 32px; }
  .p2s-result { padding: 32px; }
}
@media (max-width: 559px) {
  .p2s-page .container { padding-inline: 16px; }
  .p2s-check, .p2s-result, .p2s-panel, .p2s-mitigation, .p2s-limits, .p2s-verify { padding: 20px 16px; }
  .p2s-verify-cta { justify-self: stretch; }
  .p2s-table th, .p2s-table td, .p2s-table caption { padding-inline: 12px; }
  .p2s-table tbody th { white-space: normal; }
  .p2s-result-actions .btn:not(.btn-link) { width: 100%; }
  .p2s-page .cta-actions .btn { min-width: 0; width: 100%; white-space: normal; height: auto; min-height: 44px; }
}

/* ---------------------------------------------------------------- mobile -- */
.product-panel small, .product-panel .rank, .task-timeline li > span { font-size: 11px; }
.btn-link { min-height: 44px; }
.footer-bottom-links { flex-wrap: wrap; column-gap: 16px; row-gap: 8px; }
.footer-bottom-links > * { white-space: nowrap; }
.cta-actions .btn { min-width: 220px; }
@media (max-width: 559px) {
  .capability-nav { grid-template-columns: 1fr; gap: 4px; }
  .capability-tab { padding: 12px 16px; }
  .feature-panel { padding: 24px 20px; gap: 24px; }
  .feature-top { flex-direction: column-reverse; gap: 12px; }
  .feature-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
  .agenda li { grid-template-columns: 40px 28px 1fr; gap: 10px; }
  .agenda::before { left: 59px; }
  .cta-panel { padding: 48px 20px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------------------------------------------------------------- motion -- */
/* Native scrolling with a gentle, once-only entrance for each section. */
[data-scroll-state] { transition: opacity 800ms cubic-bezier(.22, 1, .36, 1), translate 800ms cubic-bezier(.22, 1, .36, 1); transition-delay: var(--reveal-delay, 0ms); }
[data-scroll-state="waiting"] { opacity: 0; translate: 0 28px; }
[data-scroll-state="visible"] { opacity: 1; translate: 0 0; }

@media (hover: none), (pointer: coarse) {
  .radar-slot { transform: translate(-50%, -50%) scale(3); }
  .glass-console { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .radar-pulse { display: none; }
  .radar-sweep { transform: rotate(45deg); opacity: .6; }
  .radar-signal { opacity: .65; }
  .console-cursor { display: none; }
  .radar-slot { transform: translate(-50%, -50%) scale(3); }
  .glass-console { transform: none; }
  .hero::before, .hero-copy, .radar-slot, .glass-console { translate: none; }
  [data-scroll-state] { opacity: 1; translate: none; }
}
@media print {
  [data-scroll-state] { opacity: 1; translate: none; transition: none; }
  .site-header { position: static; }
}
