/* VelvetNodes — shared base styles for subpages (/studio, /links).
 *
 * Part 1 is copied 1:1 from the <style> block of /index.html (same tokens,
 * values and breakpoints). index.html still carries its own copy, so a change
 * to a token or component must be made in BOTH places until index.html is
 * switched to this file. Selectors that are ids in index.html (#hero, #contact,
 * #contact-form) are classes here (.hero-copy, .contact-section, .vn-form).
 *
 * Part 2 holds the few components the subpages add (language switch,
 * lists, quotes, link buttons) — built only from Part 1 tokens.
 */

/* ═══ Part 1 — copied from index.html ═══════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #09090f;
  --surface:     #111119;
  --surface-2:   #19192a;
  --accent:      #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.22);
  --accent-ring: rgba(139, 92, 246, 0.38);
  --text:        #eeeef8;
  --muted:       #9a9ab8;
  --radius:      10px;
}

html { color-scheme: dark; scroll-behavior: smooth; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { overflow-wrap: break-word; text-wrap: balance; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 400;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ─── Header ──────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(180deg, var(--bg) 60%, transparent 100%);
  backdrop-filter: blur(10px);
  max-width: 100%;
}

.logo {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-decoration: none;
}
.logo b { color: var(--text); font-weight: 800; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }

.header-cta {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 0.8rem;
  min-height: 44px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Shared sections ─────────────────────────────────── */

section[id] { scroll-margin-top: 76px; }

.section-block { padding: 3rem 1.75rem 3.5rem; }

.section-head {
  max-width: 42.5rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.section-head h2,
.section-block h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-head p,
.section-lead {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.75;
}

.section-note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 47.5rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

/* ─── Hero (index: #hero) ─────────────────────────────── */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 14px;
}

.hero-body {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.hero-proof {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* ─── Cards (index: Applications / How it works) ──────── */

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 70rem;
  margin: 0 auto 1.25rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
}

.app-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.app-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 70rem;
  margin: 8px auto 0;
  text-align: left;
}

.step {
  background: var(--surface);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.step h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── CTA buttons ─────────────────────────────────────── */

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  transition: opacity 0.18s, border-color 0.18s, color 0.18s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(139, 92, 246, 0.38);
}

.btn-primary:hover { opacity: 0.82; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ─── Conversion banner ───────────────────────────────── */

.convert-banner {
  margin: 8px 1.75rem 2.5rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: var(--radius);
}

.convert-banner h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.convert-banner p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 18px;
}

/* ─── Footer ──────────────────────────────────────────── */

footer {
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover { text-decoration: underline; }

/* ─── Contact form (index: #contact / #contact-form) ──── */

.contact-section {
  max-width: 32.5rem;
  margin: 0 auto;
  padding: 3rem 1.75rem 5rem;
  text-align: center;
}

.vn-form {
  max-width: none;
  width: 100%;
  margin: 22px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.vn-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
}

.vn-form .opt {
  color: var(--muted);
  font-weight: 400;
}

.vn-form input[type="email"],
.vn-form input[type="text"],
.vn-form select,
.vn-form textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s;
  min-height: 44px;
}

.vn-form select { cursor: pointer; }

.vn-form input[type="email"]:focus,
.vn-form input[type="text"]:focus,
.vn-form select:focus,
.vn-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.vn-form textarea { resize: vertical; min-height: 120px; }

.vn-form button[type="submit"] {
  justify-content: center;
  cursor: pointer;
  border: none;
  min-height: 44px;
  width: 100%;
}

.contact-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.6;
}

.cf-status { font-size: 0.82rem; min-height: 1.2em; line-height: 1.6; }
.cf-status.ok  { color: #4ade80; }
.cf-status.err { color: #f87171; }

/* ─── Responsive (same breakpoints as index) ──────────── */

@media (max-width: 960px) {
  header {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    order: 11;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(139, 92, 246, 0.14);
  }

  header.is-nav-open .site-nav { display: flex; }

  .site-nav a { padding: 10px 0; font-size: 0.9rem; min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 768px) {
  header { padding: 12px 16px; }

  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn-primary,
  .cta-row .btn-secondary,
  .convert-banner .btn-primary { width: 100%; }

  .section-block { padding: 2.5rem 1rem 3rem; }
  .app-grid, .steps { grid-template-columns: 1fr 1fr; }
  .convert-banner { margin: 8px 1rem 2rem; padding: 1.375rem 1rem; }
  .contact-section { padding: 2.5rem 1rem 4rem; }
  footer  { padding: 1.375rem 1rem 2rem; }
}

@media (max-width: 480px) {
  .app-grid,
  .steps { grid-template-columns: 1fr; }
}

/* ═══ Part 2 — subpage additions (built from Part 1 tokens) ═════════════ */

.logo-sub {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.95rem;
  margin-left: 0.35em;
}

/* Language switch EN | PL */
.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.lang-switch button + button { border-left: 1px solid rgba(139, 92, 246, 0.28); }
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--accent-glow); color: var(--text); }
.lang-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Ticked / crossed lists inside cards */
.mark-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mark-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}
.mark-list li strong { color: var(--text); font-weight: 600; }
.mark-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.mark-list.is-cross li::before { content: "✕"; color: var(--muted); }

/* Quotes */
.quote-card {
  background: var(--surface);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote-card blockquote {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text);
}
.quote-card blockquote::before { content: "“"; color: var(--accent); font-weight: 700; margin-right: 2px; }
.quote-card blockquote::after  { content: "”"; color: var(--accent); font-weight: 700; margin-left: 2px; }
.quote-card figcaption { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* Inline text links in body copy */
.text-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.text-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
