/* ==========================================================================
   DeskCharm Unified Editorial Layout System
   Shared across all subpages: Privacy, Terms, Guide, Press, Changelog, Notes
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f8faff;
  --ink: #050414;
  --muted: #595967;
  --faint: #6f7082;
  --blue: #104fc8;
  --cta: #0335fc;
  --blue-2: #0230e8;
  --line: #e6ebf4;
  --card: #ffffff;
  --card-tint: #f4f7fd;
  --tint: #f1f5ff;
  --gold-a: #8A6A12;
  --gold-b: #E2C264;
  --gold-bg: #fbf7ee;
  --gold-border: #ebd9a8;
  --green: #0e8a44;
  --green-bg: #eaf8f0;
  --green-border: #b7e8cb;
  --shadow-sm: 0 1px 2px rgba(5, 4, 20, 0.04);
  --shadow-card: 0 4px 16px -2px rgba(5, 4, 20, 0.06), 0 1px 3px rgba(5, 4, 20, 0.04);
  --shadow-float: 0 20px 48px -12px rgba(5, 4, 20, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --serif: Newsreader, "New York", Georgia, serif;
  --display: "Host Grotesk", Inter, system-ui, -apple-system, sans-serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-w: 960px;
  --nav-h: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--cta);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--blue-2);
}

/* --------------------------------------------------------------------------
   Top Navigation Bar
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 235, 244, 0.8);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(3, 53, 252, 0.18);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cta);
  color: #ffffff !important;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 99px;
  box-shadow: 0 3px 10px rgba(3, 53, 252, 0.22);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.nav-btn:hover {
  background: var(--blue-2);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(3, 53, 252, 0.28);
}

/* --------------------------------------------------------------------------
   Editorial Shell & Card Container
   -------------------------------------------------------------------------- */
.editorial-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.editorial-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--faint);
  margin-bottom: 24px;
}

.editorial-breadcrumb a {
  color: var(--muted);
}

.editorial-breadcrumb a:hover {
  color: var(--ink);
}

.editorial-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 56px 64px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .editorial-card {
    padding: 32px 22px;
    border-radius: var(--radius-md);
  }
  .nav-links {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Editorial Header & Typography
   -------------------------------------------------------------------------- */
.editorial-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tint);
  color: var(--cta);
  border: 1px solid #dbe5ff;
  border-radius: 99px;
  padding: 4px 12px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.editorial-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 16px;
}

.editorial-subtitle {
  font-size: 18.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 68ch;
  margin: 0 0 20px;
}

.editorial-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--faint);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-free {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Editorial Content Blocks
   -------------------------------------------------------------------------- */
.editorial-content {
  color: var(--ink);
  font-size: 16.5px;
}

.editorial-content h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 36px 0 14px;
  color: var(--ink);
}

.editorial-content h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  margin: 28px 0 10px;
  color: var(--ink);
}

.editorial-content p {
  margin: 0 0 20px;
  color: #242938;
}

.editorial-content strong {
  font-weight: 600;
  color: var(--ink);
}

.editorial-content ul,
.editorial-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.editorial-content li {
  margin-bottom: 8px;
  color: #242938;
}

.content-box {
  background: var(--card-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
}

.content-box h3 {
  margin-top: 0;
}

.highlight-banner {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border: 1px solid #d2e0fc;
  border-left: 4px solid var(--cta);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: #172b59;
}

.highlight-banner p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Editorial Bottom CTA
   -------------------------------------------------------------------------- */
.editorial-bottom-cta {
  background: linear-gradient(135deg, #050414 0%, #151b36 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-float);
}

.editorial-bottom-cta h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 8px;
  color: #ffffff;
}

.editorial-bottom-cta p {
  color: #b0b7cf;
  font-size: 15.5px;
  margin: 0;
  max-width: 48ch;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 99px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-cta-primary:hover {
  background: #f0f4ff;
  color: var(--cta);
  transform: translateY(-1px);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 99px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Shared Rich Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 64px 24px 44px;
  margin-top: 40px;
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

.footer-brand-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.footer-brand h4,
.footer-brand-header h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 32ch;
  margin: 0 0 16px;
}

.footer-col h5 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  color: var(--faint);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--ink);
}
