/* Art. 50 cockpit card for the localized checklists (/fr/…, /sv/…). Loaded after shell.css, home.css and guides.css.
   Surfaces #181818 #1F1F1F #272727, #313131 borders, one accent #10B981 on the single filled button. */
.a50 {
  display: grid; gap: 14px; min-width: 0; margin-top: 4px; padding: 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--s1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px -32px rgba(16, 185, 129, 0.35);
}
@media (min-width: 641px) { .a50 { padding: 20px; gap: 16px; } }
.a50 > * { min-width: 0; }
.a50-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide .a50 .a50-title { margin: 0; padding: 0; box-shadow: none; font-size: 1rem; line-height: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.a50-live {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 2px 9px; border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.38); color: #6EE7B7; font: 500 0.6875rem/1rem var(--mono);
}
.a50-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #10B981; box-shadow: 0 0 8px #10B981; }
.guide .a50 .a50-k { margin: 0; color: var(--ink-3); font: 500 0.6875rem/1rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* 1. Scan bar */
.a50-scan { display: grid; gap: 8px; }
@media (min-width: 641px) { .a50-scan { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.a50-scan input {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 14px; border-radius: 9999px;
  border: 1px solid var(--line); background: #000000; color: var(--ink); font: 400 1rem/1.5rem var(--font);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.a50-scan input::placeholder { color: var(--ink-3); opacity: 1; }
.a50-scan input:focus-visible { outline: none; border-color: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.a50-scan input[aria-invalid="true"] { border-color: #F87171; }
.a50-scan .btn { min-height: 44px; }
.a50-scan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
@media (min-width: 641px) { .a50-scan-foot { grid-column: 1 / -1; } }
.guide .a50 .a50-hint { margin: 0; color: #FCA5A5; font: 500 0.75rem/1rem var(--mono); }
.guide .a50 .a50-sub { margin: 0; color: var(--ink-3); font: 500 0.75rem/1rem var(--mono); }
.guide .a50 a.a50-report { font: 600 0.8125rem/1.25rem var(--font); color: var(--ink); white-space: nowrap; }

/* 2. Live badge.js preview */
.a50-stage {
  display: grid; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 100%, rgba(16, 185, 129, 0.10), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255, 255, 255, 0.025) 23px 24px),
    #0A0A0A;
}
/* badge.js renders inline on one line where it fits; on narrow screens the pill wraps (flex-wrap in badge.js)
   so "EU AI Act Art. 50" and the "Art. 50 · Spurvik" link both stay visible. The scroller is only a safety net. */
.a50-badge-scroll { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.a50-badge-scroll::-webkit-scrollbar { display: none; }
.a50-badge { max-width: 100%; min-height: 30px; }
.guide .a50 .a50-exact { margin: 0; font-size: 0.8125rem; line-height: 1.25rem; color: var(--ink-3); }
.a50-exact q { color: #6EE7B7; font-weight: 600; overflow-wrap: anywhere; }

/* 3. Free / Pro toggle */
.a50-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: #000000; border: 1px solid var(--line); }
.a50-seg button {
  min-width: 0; min-height: 44px; padding: 6px 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; cursor: pointer;
  color: var(--ink-2); font: 600 0.8125rem/1.125rem var(--font); text-align: center; overflow-wrap: anywhere;
  transition: color 300ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.a50-seg button:hover { color: var(--ink); }
.a50-seg button:active { transform: scale(0.97); }
.a50-seg button:focus-visible { outline: 2px solid #10B981; outline-offset: 2px; }
.a50-seg button[aria-pressed="true"] { color: var(--ink); background: var(--s3); border-color: var(--line); }
.a50-seg button[data-a50-plan="pro"][aria-pressed="true"] { background: rgba(16, 185, 129, 0.13); border-color: rgba(16, 185, 129, 0.55); }

/* 4. Copyable tag */
.a50-code { min-width: 0; border-radius: 12px; border: 1px solid var(--line); background: #000000; overflow: hidden; }
.a50-code-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; background: var(--s2); border-bottom: 1px solid var(--line); color: var(--ink-3); font: 500 0.75rem/1rem var(--mono); }
.a50-copy {
  flex: none; min-height: 32px; padding: 4px 12px; border-radius: 9999px; border: 1px solid var(--line); background: var(--s1); cursor: pointer;
  color: var(--ink); font: 600 0.75rem/1rem var(--mono); transition: border-color 300ms var(--ease), color 300ms var(--ease);
}
.a50-copy:hover { border-color: var(--ink-2); }
.a50-copy[data-copied] { border-color: #10B981; color: #6EE7B7; }
.a50-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; font: 400 0.75rem/1.125rem var(--mono); color: #CFE8F7; white-space: pre; }

/* 5. Upgrade CTAs */
.a50-ctas { display: grid; gap: 8px; }
.guide .a50 .plan-line { margin: 0; font-size: 0.75rem; line-height: 1.125rem; }
@media (min-width: 641px) { .a50-ctas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guide .a50 .a50-ctas .btn { min-height: 44px; white-space: normal; text-align: center; font-size: 0.9375rem; line-height: 1.25rem; }
.guide .a50 a.a50-dfy { color: var(--ink); border-color: rgba(16, 185, 129, 0.55); background: rgba(16, 185, 129, 0.08); }
.guide .a50 a.a50-dfy:hover { background: rgba(16, 185, 129, 0.16); }
.a50[data-plan="pro"] a.a50-pro { border-color: #10B981; }

.a50-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .a50-scan input, .a50-seg button, .a50-copy { transition: none; }
  .a50-seg button:active { transform: none; }
}

/* Mobile hero: keep the scan bar above the 844px fold on 390px phones */
@media (max-width: 640px) {
  .guide.guide-a50 { padding-top: 104px; }
  .guide.guide-a50 h1 { font-size: 1.75rem; line-height: 2.125rem; margin-bottom: 0; }
  .guide.guide-a50 article { gap: 12px; }
  .guide.guide-a50 p.lead { font-size: 1rem; line-height: 1.5rem; }
}

/* Desktop hero: both upgrade CTAs (€199, €19/mo) end above the fold on a 1440x960 screen */
@media (min-width: 641px) {
  .guide.guide-a50 { padding-top: 96px; }
  .guide.guide-a50 article { gap: 12px; }
  .guide.guide-a50 h1 { font-size: 2.5rem; line-height: 1.12; margin-bottom: 0; }
  .guide.guide-a50 p.lead { font-size: 1.0625rem; line-height: 1.55rem; }
  .guide.guide-a50 .a50 { padding: 16px 18px; gap: 12px; }
}
