/* ===== Site Factory test-uk-002 ===== */
/* Theme: indigo + rose on dark slate. Guide-focused long-form template. */
/* Different from test-uk-001 (emerald+amber light) for footprint diversity. */

:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #c7d2fe;
  --color-accent: #f43f5e;
  --color-accent-dark: #e11d48;
  --color-bg: #0f172a;
  --color-bg-elevated: #1e293b;
  --color-bg-card: #1e293b;
  --color-text: #cbd5e1;
  --color-text-strong: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: #334155;
  --color-success: #10b981;
  --color-danger: #f43f5e;
  --color-warning: #f59e0b;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --radius: 6px;
  --radius-lg: 10px;
  --font-serif: "Charter", "Iowan Old Style", "Source Serif Pro", "Apple Garamond", "Bitstream Charter", "Sitka Text", Cambria, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
a:hover {
  color: white;
  border-bottom-color: var(--color-primary-light);
}

h1, h2, h3, h4 {
  color: var(--color-text-strong);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  letter-spacing: -0.015em;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-top: 3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  margin-top: 2rem;
  color: var(--color-primary-light);
}

h4 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  color: var(--color-text-strong);
  font-weight: 600;
}

p { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.5rem; }

strong { color: var(--color-text-strong); font-weight: 600; }

img { max-width: 100%; height: auto; }

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-text-muted);
  font-style: italic;
  background: rgba(244, 63, 94, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== Layout ===== */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-strong);
  border: none;
}

.site-logo:hover { border: none; }

.site-nav { display: flex; gap: 1.5rem; }

.site-nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  border: none;
}

.site-nav a:hover {
  color: var(--color-primary-light);
  border: none;
}

/* ===== Hero ===== */
.hero {
  padding: 4rem 0 3rem;
  text-align: left;
  background: radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.15), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(244, 63, 94, 0.08), transparent 50%);
  border-bottom: 1px solid var(--color-border);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  border: 1px solid var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.hero h1 { margin-top: 0; }

.hero-lead {
  font-size: 1.2rem;
  color: var(--color-text);
  line-height: 1.55;
  max-width: 640px;
  margin: 1rem 0 1.5rem;
}

.hero-meta {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.hero-meta strong { color: var(--color-text-strong); }

/* ===== Main content ===== */
.main-content {
  padding: 2.5rem 0 4rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ===== Licensing comparison block ===== */
.licence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.licence-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
}

.licence-card h4 {
  margin: 0 0 0.5rem;
  color: var(--color-primary-light);
  font-size: 0.95rem;
}

.licence-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.licence-rating {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.rating-strong { background: rgba(16, 185, 129, 0.15); color: var(--color-success); }
.rating-medium { background: rgba(245, 158, 11, 0.15); color: var(--color-warning); }
.rating-weak { background: rgba(244, 63, 94, 0.15); color: var(--color-danger); }

/* ===== HowTo checklist ===== */
.howto {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.howto h3 {
  margin-top: 0;
  color: var(--color-text-strong);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.howto h3::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
}

.howto-steps {
  list-style: none;
  padding-left: 0;
  counter-reset: howto-counter;
}

.howto-steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  counter-increment: howto-counter;
}

.howto-steps li::before {
  content: counter(howto-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--color-bg-card);
  border: 2px solid var(--color-primary);
  color: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.howto-steps li strong { display: block; margin-bottom: 0.25rem; color: var(--color-text-strong); }
.howto-steps li p { margin: 0; font-size: 0.95rem; color: var(--color-text); }

/* ===== Operators list (minimalist) ===== */
.ops-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-elevated);
}

.ops-list li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}

.ops-list li:last-child { border-bottom: none; }

.ops-rank {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-light);
  min-width: 2rem;
}

.ops-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.logo-royal { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.logo-epoch { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.logo-atlas { background: linear-gradient(135deg, #ea580c, #fb923c); }
.logo-sparrow { background: linear-gradient(135deg, #1f2937, #4b5563); }
.logo-orion { background: linear-gradient(135deg, #be185d, #f472b6); }

.ops-info {
  flex-grow: 1;
  min-width: 0;
}

.ops-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  color: var(--color-text-strong);
}

.ops-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.ops-cta {
  background: var(--color-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.ops-cta:hover {
  background: var(--color-accent-dark);
  color: white;
  border: none;
}

/* ===== Comparison table ===== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: 0.92rem;
}

.compare-table th, .compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.compare-table th {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ===== Red flags warning block ===== */
.warn-box {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-left: 4px solid var(--color-danger);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.warn-box h4 {
  color: var(--color-danger);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.warn-box h4::before { content: "⚠"; }

.warn-box ul { margin-bottom: 0; }

/* ===== FAQ ===== */
.faq {
  margin: 3rem 0;
}

.faq details {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.faq details[open] { border-color: var(--color-primary); }

.faq summary {
  font-weight: 600;
  color: var(--color-text-strong);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--color-primary-light);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "−"; }

.faq p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--color-text);
}

/* ===== Footer ===== */
.site-footer {
  background: #020617;
  color: var(--color-text-muted);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-grid h4 {
  color: var(--color-text-strong);
  margin-top: 0;
  font-size: 0.95rem;
}

.footer-grid ul { list-style: none; padding-left: 0; }
.footer-grid li { margin-bottom: 0.5rem; font-size: 0.88rem; }
.footer-grid a { color: var(--color-text-muted); border: none; }
.footer-grid a:hover { color: var(--color-primary-light); border: none; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.rg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(244, 63, 94, 0.1);
  color: var(--color-accent);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-nav { display: none; }
  .container, .container-wide { padding: 0 1.25rem; }
  .ops-list li { flex-wrap: wrap; }
  .ops-cta { width: 100%; text-align: center; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 0.65rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .howto { padding: 1.25rem 1.5rem; }
  .howto-steps li { padding-left: 2.5rem; }
}

@media (max-width: 480px) {
  .hero-meta { flex-direction: column; gap: 0.4rem; }
}
