/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #0b1020;
  --bg-alt:   #0e1528;
  --panel:    #131a30;
  --panel-hi: #1a2340;
  --text:     #e6edf6;
  --muted:    #9cadcc;
  --accent:   #6f90ff;
  --accent-h: #8faaff;
  --success:  #31d0aa;
  --danger:   #ff5f79;
  --warning:  #ffbf5a;
  --radius:   12px;
  --radius-sm: 8px;
  --font: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  --max-w: 1100px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-h); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Utilities ───────────────────────────────────────────────── */
.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }
.muted     { color: var(--muted); }
.accent    { color: var(--accent); }
.success   { color: var(--success); }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Scroll-reveal animation ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

section { animation: fadeUp .7s ease both; }
section:nth-child(2) { animation-delay: .1s; }
section:nth-child(3) { animation-delay: .15s; }
section:nth-child(4) { animation-delay: .2s; }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,16,32,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(111,144,255,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(111,144,255,.18);
  border-radius: 10px;
  background: rgba(111,144,255,.06);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  font-size: .875rem;
  line-height: 1;
  color: var(--muted);
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-login-link {
  justify-content: center;
  min-width: 78px;
  margin-left: 0;
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid rgba(111,144,255,.35);
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(111,144,255,.1);
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.nav-login-link:hover {
  border-color: rgba(111,144,255,.75);
  background: rgba(111,144,255,.18);
  color: #dce5ff;
  transform: translateY(-1px);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5a7ce8);
  color: #fff;
  box-shadow: 0 4px 20px rgba(111,144,255,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(111,144,255,.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(111,144,255,.35);
}
.btn-outline:hover {
  background: rgba(111,144,255,.08);
  border-color: var(--accent);
  color: var(--accent-h);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #28b896);
  color: #071710;
  font-weight: 700;
  box-shadow: none;
}
.btn-success:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #35dbb3, #2ab393);
  box-shadow: none;
  color: #06120d;
}

.btn-block { width: 100%; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(111,144,255,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.add-chrome-btn {
  gap: 10px;
}

.chrome-store-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  background: conic-gradient(
    #ea4335 0deg 110deg,
    #fbbc05 110deg 220deg,
    #34a853 220deg 320deg,
    #4285f4 320deg 360deg
  );
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 10px rgba(255,255,255,.2);
}

.chrome-store-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0b1020;
  border: 2px solid #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.hero-image {
  margin-top: 52px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px -12px rgba(0,0,0,.6), 0 0 40px -8px rgba(111,144,255,.15);
  border: 1px solid rgba(111,144,255,.12);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 16px;
  background: rgba(111,144,255,.1);
  border: 1px solid rgba(111,144,255,.2);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ── Section common ──────────────────────────────────────────── */
.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* ── Features ────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-col {
  background: var(--panel);
  border: 1px solid rgba(111,144,255,.08);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-col:hover {
  border-color: rgba(111,144,255,.2);
  transform: translateY(-4px);
}

.feature-col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.feature-col-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tag-free {
  background: rgba(49,208,170,.12);
  color: var(--success);
}

.tag-pro {
  background: rgba(111,144,255,.12);
  color: var(--accent);
}

.feature-col-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--muted);
  font-size: .95rem;
  border-bottom: 1px solid rgba(111,144,255,.05);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
}

.feature-col:first-child .feature-list li::before {
  background: var(--success);
  box-shadow: 0 0 8px rgba(49,208,170,.4);
}

.feature-col:last-child .feature-list li::before {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(111,144,255,.4);
}

/* ── How It Works ────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  text-align: center;
  background: var(--panel);
  border: 1px solid rgba(111,144,255,.08);
  border-radius: var(--radius);
  padding: 44px 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover {
  border-color: rgba(111,144,255,.2);
  transform: translateY(-4px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(111,144,255,.15), rgba(49,208,170,.1));
  border: 1px solid rgba(111,144,255,.2);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 22px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--muted);
  font-size: .92rem;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(111,144,255,.1);
  border-radius: var(--radius);
  padding: 36px 22px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}

.price-card.popular {
  background: var(--panel);
  border: 1px solid rgba(111,144,255,.45);
  box-shadow: inset 0 0 0 1px rgba(49,208,170,.16);
  position: relative;
}

.price-card.popular::before {
  content: none;
}

.price-card.popular .btn-success:hover {
  box-shadow: none;
}

.price-card.popular:hover {
  box-shadow: inset 0 0 0 1px rgba(49,208,170,.2), 0 16px 48px rgba(0,0,0,.32);
}

.price-card.popular .price-card-name {
  color: #c8d7f2;
}

.price-card.popular .price-period,
.price-card.popular .price-features li {
  color: #c1cee8;
}

.popular-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 20px;
  background: linear-gradient(135deg, var(--accent), var(--success));
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #0b1020;
  white-space: nowrap;
}

.price-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 4px;
}

.price-period {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.price-save {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(49,208,170,.1);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 28px;
}

.price-features {
  flex: 1 1 auto;
  text-align: left;
  margin: 28px 0 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(111,144,255,.08);
}

.price-features li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: .88rem;
  color: var(--muted);
}

.price-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: .85rem;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(111,144,255,.08);
  padding: 24px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.faq-a {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

/* ── Cookie and analytics notice ─────────────────────────────── */
.sa-consent {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 60;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid rgba(111,144,255,.22);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.42);
}

.sa-consent-text {
  flex: 1 1 320px;
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
}

.sa-consent-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.sa-consent .btn {
  padding: 9px 18px;
  font-size: .85rem;
}

@media (max-width: 600px) {
  .sa-consent-actions { width: 100%; }
  /* Keeps the two notice buttons side by side despite the global mobile .btn width. */
  .sa-consent .btn { flex: 1 1 auto; width: auto; max-width: none; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(111,144,255,.08);
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

/* ── Privacy page ────────────────────────────────────────────── */
.privacy-page {
  padding: 120px 0 80px;
  max-width: 720px;
  margin: 0 auto;
  width: 90%;
}

.privacy-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.privacy-page .updated {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 48px;
}

.privacy-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text);
}

.privacy-page p,
.privacy-page li {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}

.privacy-page ul {
  margin: 12px 0 12px 20px;
  list-style: disc;
}

.privacy-page a { color: var(--accent); }

.doc-page {
  max-width: 900px;
}

.doc-section {
  margin-top: 24px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(111,144,255,.14);
  background: var(--panel);
}

.doc-section h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.doc-section p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.72;
}

.doc-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.doc-card {
  border: 1px solid rgba(111,144,255,.14);
  border-radius: 10px;
  background: var(--panel);
  padding: 18px;
}

.doc-card h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--text);
}

.doc-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.66;
}

.doc-list {
  margin: 8px 0 0 18px;
  list-style: disc;
}

.doc-list li {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.64;
}

.doc-list li:last-child {
  margin-bottom: 0;
}

/* ── Changelog ──────────────────────────────────────────────── */
.changelog-page {
  max-width: 920px;
}

.changelog-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 20px;
}

.kpi-card {
  background: var(--panel);
  border: 1px solid rgba(111,144,255,.14);
  border-radius: 10px;
  padding: 14px 16px;
}

.kpi-label {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.kpi-value {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
}

.release-feed {
  display: grid;
  gap: 16px;
}

.release-card {
  background: var(--panel);
  border: 1px solid rgba(111,144,255,.14);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
}

.release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.release-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.release-main h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.release-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.release-block {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(173,191,226,.12);
  border-radius: 10px;
  padding: 12px 12px 10px;
}

.release-block-title {
  margin: 0 0 8px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
}

.release-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(111,144,255,.14);
  border: 1px solid rgba(111,144,255,.35);
  color: var(--accent-h);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.version-date {
  color: var(--muted);
  font-size: .85rem;
}

.release-list li:last-child {
  margin-bottom: 0;
}

.change-pill {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

.pill-added {
  color: #d7fff4;
  background: rgba(49,208,170,.14);
  border-color: rgba(49,208,170,.36);
}

.pill-improved {
  color: #d9e5ff;
  background: rgba(111,144,255,.16);
  border-color: rgba(111,144,255,.35);
}

.pill-updated {
  color: #ffe7bf;
  background: rgba(255,191,90,.16);
  border-color: rgba(255,191,90,.34);
}

.pill-fixed {
  color: #ffd5dc;
  background: rgba(255,95,121,.16);
  border-color: rgba(255,95,121,.34);
}

.pill-initial,
.pill-included {
  color: #cae0ff;
  background: rgba(111,144,255,.14);
  border-color: rgba(111,144,255,.32);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pricing-grid  { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; gap: 24px; }
}

@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps-grid    { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .nav-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0 4px;
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a {
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(111,144,255,.06);
    color: var(--text);
  }
  .nav-login-link {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }
  .changelog-kpis { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 120px 0 70px; }
  .section { padding: 64px 0; }
  .feature-col { padding: 28px 22px; }
  .price-card  { padding: 32px 24px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
  .changelog-kpis { grid-template-columns: 1fr; }
}

/* ── Footer legal row + NXDPRO credit (2026-10-09) ───────────────
   Markup: partials/site-footer.html (.footer-legal). This footer is centred, so the
   legal row is too: (c) line, then the credit to its right on the same baseline.
   Phones (<= 600px): stacked and centred. The credit inherits the row's --muted tone
   (8.4:1 on --bg), so --nxd-credit-dim stays at the kit default of 1.
   .footer-links wraps so all seven links stay on screen on phones (they ran off
   both edges before, hiding "Home" and "Chrome Web Store"). */
.footer-links { flex-wrap: wrap; row-gap: 8px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: .5rem 2rem;
}

@media (max-width: 600px) {
  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: .4rem;
  }
}

/* NXDPRO footer credit v1.1 (2026-10-09). Canonical copy: /home/nxdpro/brand/nxdpro-credit/
   Markup: credit.en.html / credit.el.html. No site colours: the credit inherits the
   footer's text colour. Append this file at the END of the site's stylesheet, so the
   a.nxd-credit rules win over theme rules of the same weight (".footer a{display:block}").
   Optional knobs (set on .nxd-credit or any parent):
   --nxd-credit-dim (text+logo opacity, default 1), --nxd-credit-logo-dim (default .8),
   --nxd-credit-logo (logo height, default 1.2em), --nxd-credit-accent (default #00adee),
   or add class nxd-credit--mono for no blue on hover. */
a.nxd-credit {
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  vertical-align: baseline;
  opacity: var(--nxd-credit-dim, 1);
  transition: opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
a.nxd-credit:hover,
a.nxd-credit:focus {
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  box-shadow: none;
}
/* No theme "external link" icons or animated underlines on the credit. */
a.nxd-credit::before,
a.nxd-credit::after {
  content: none;
}
/* The wordmark's baseline is 27.37% up from the logo's bottom edge: the logo is moved down by
   that much so NXDPRO sits on the text baseline. The negative top margin keeps the logo's
   layout box inside the text's line box, so the credit is exactly 1em tall like a text line.
   inline-block (not block): if a theme rule ever overrides the flex display, the logo still
   stays on the text line with the same baseline. */
.nxd-credit .nxd-credit__logo {
  display: inline-block;
  flex: none;
  vertical-align: baseline;
  width: calc(var(--nxd-credit-logo, 1.2em) * 3.8787);
  height: var(--nxd-credit-logo, 1.2em);
  max-width: none;
  margin: calc(.5em - var(--nxd-credit-logo, 1.2em)) 0 0;
  padding: 0;
  position: relative;
  top: calc(var(--nxd-credit-logo, 1.2em) * .2737);
  opacity: var(--nxd-credit-logo-dim, .8);
  transition: opacity .2s ease;
}
.nxd-credit .nxd-credit__logo path {
  fill: currentColor;
  transition: fill .2s ease;
}
/* Hover only where a real hover exists: on phones a tap would leave the accent stuck on. */
@media (hover: hover) {
  .nxd-credit:hover,
  .nxd-credit:hover .nxd-credit__logo {
    opacity: 1;
  }
  .nxd-credit:hover .nx-a {
    fill: var(--nxd-credit-accent, #00adee);
  }
}
.nxd-credit:focus-visible,
.nxd-credit:focus-visible .nxd-credit__logo {
  opacity: 1;
}
.nxd-credit:focus-visible .nx-a {
  fill: var(--nxd-credit-accent, #00adee);
}
.nxd-credit:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: .35em;
  border-radius: 2px;
}
.nxd-credit--mono {
  --nxd-credit-accent: currentColor;
}
/* Touch screens: 44px tall tap target; the negative margin cancels the padding, so the row does not grow. */
@media (pointer: coarse) {
  a.nxd-credit {
    padding: max(0px, calc(22px - .5em)) 0;
    margin: min(0px, calc(.5em - 22px)) 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  a.nxd-credit,
  .nxd-credit .nxd-credit__logo,
  .nxd-credit .nxd-credit__logo path {
    transition: none;
  }
}
@media (forced-colors: active) {
  .nxd-credit.nxd-credit {
    --nxd-credit-accent: currentColor;
    opacity: 1;
  }
  .nxd-credit .nxd-credit__logo {
    opacity: 1;
  }
}
