/* ============================================
   12b8t Mobile · Main stylesheet
   Consolidates .m9-* (site chrome) + .sp-* (content utilities)
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: white;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 720px; margin: 0 auto; padding: 24px 20px; }

/* ============================================
   Site chrome (.m9-*)
   ============================================ */

.m9-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; background: rgba(0,0,0,0.25); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 90;
  gap: 12px; flex-wrap: wrap;
}
.m9-logo {
  display: inline-flex; align-items: center;
  background: #0F172A; padding: 10px 22px; border-radius: 12px;
  text-decoration: none;
}
.m9-logo img { height: 76px; width: auto; }
@media (max-width: 480px) { .m9-logo img { height: 56px; } }
.m9-nav-links { display: flex; gap: 18px; align-items: center; }
.m9-nav-links a { color: white; opacity: 0.9; text-decoration: none; font-size: 14px; font-weight: 600; }
.m9-nav-links a:hover { opacity: 1; }

.m9-hero { text-align: center; padding: 40px 0 20px; }
.m9-badge {
  display: inline-block; background: rgba(255,255,255,0.15);
  padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 700;
  margin-bottom: 20px; backdrop-filter: blur(8px);
}
.m9-hero h1 {
  font-size: clamp(28px, 6vw, 42px); font-weight: 800;
  line-height: 1.15; margin-bottom: 12px;
}
.m9-hero-sub { font-size: 15px; opacity: 0.9; margin-bottom: 32px; }

.m9-cta-primary {
  display: block; background: white; color: #4F46E5;
  padding: 20px 28px; border-radius: 16px;
  text-decoration: none; font-weight: 800; font-size: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  margin-bottom: 12px; text-align: center;
  transition: transform 0.2s;
}
.m9-cta-primary:hover { transform: translateY(-2px); }
.m9-cta-secondary {
  display: block; background: rgba(255,255,255,0.15);
  color: white; padding: 16px 24px; border-radius: 12px;
  text-decoration: none; font-weight: 700; text-align: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}
.m9-cta-secondary:hover { background: rgba(255,255,255,0.25); }
.m9-cta-inline {
  display: inline-block; background: white; color: #4F46E5;
  padding: 14px 24px; border-radius: 12px;
  text-decoration: none; font-weight: 800; font-size: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.m9-cta-inline:hover { transform: translateY(-2px); }
.m9-trust { font-size: 12px; opacity: 0.75; margin-top: 16px; text-align: center; }

.m9-access {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 28px 24px; margin: 32px 0;
}
.m9-access h2 { font-size: 20px; margin-bottom: 16px; font-weight: 700; text-align: center; }
.m9-access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m9-access-card {
  background: rgba(0,0,0,0.15); padding: 16px;
  border-radius: 12px; text-align: center;
}
.m9-access-card b { display: block; font-size: 16px; margin-bottom: 4px; }
.m9-access-card span { display: block; font-size: 12px; opacity: 0.85; }
.m9-access-card .m9-emoji { font-size: 32px; display: block; margin-bottom: 8px; }

.m9-steps { margin: 40px 0; }
.m9-steps h2 { font-size: 22px; margin-bottom: 20px; font-weight: 700; }
.m9-step-list { list-style: none; padding: 0; }
.m9-step-list li {
  display: flex; gap: 16px;
  padding: 16px; background: rgba(255,255,255,0.05);
  border-radius: 12px; margin-bottom: 12px;
}
.m9-step-num {
  background: white; color: #4F46E5;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0;
}
.m9-step-list b { display: block; margin-bottom: 4px; font-size: 15px; }
.m9-step-list p { font-size: 13px; opacity: 0.85; }

.m9-alt-links {
  background: rgba(0,0,0,0.2); padding: 20px;
  border-radius: 16px; margin: 32px 0;
}
.m9-alt-links h2 { font-size: 18px; margin-bottom: 12px; font-weight: 700; }
.m9-alt-links ul { list-style: none; padding: 0; }
.m9-alt-links li {
  padding: 10px 14px; background: rgba(255,255,255,0.06);
  border-radius: 8px; margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.m9-alt-links code { font-family: monospace; font-weight: 700; font-size: 14px; }
.m9-alt-links .m9-open {
  background: rgba(255,255,255,0.15); color: white;
  padding: 6px 12px; border-radius: 6px;
  text-decoration: none; font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.m9-alt-links .m9-open:hover { background: rgba(255,255,255,0.25); }

.m9-faq { margin: 32px 0; }
.m9-faq h2 { font-size: 22px; margin-bottom: 16px; font-weight: 700; }
.m9-faq details {
  background: rgba(255,255,255,0.05); padding: 14px 18px;
  border-radius: 10px; margin-bottom: 8px;
}
.m9-faq summary { font-weight: 700; cursor: pointer; outline: none; font-size: 15px; }
.m9-faq p { margin-top: 10px; font-size: 14px; opacity: 0.9; }

.m9-mp {
  background: rgba(0,0,0,0.25); padding: 18px 20px;
  text-align: center; border-radius: 12px; margin: 20px 0;
  font-size: 13px;
}
.m9-mp a { color: #FEF3C7; text-decoration: none; font-weight: 700; }
.m9-mp a:hover { text-decoration: underline; }

/* Browser table */
.m9-browser {
  margin: 32px 0;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px 20px;
}
.m9-browser h2 { font-size: 22px; margin-bottom: 6px; font-weight: 700; }
.m9-browser-lede { font-size: 14px; opacity: 0.8; margin-bottom: 18px; }
.m9-browser-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m9-browser table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 13px; }
.m9-browser thead th {
  text-align: left; padding: 10px 8px;
  background: rgba(0,0,0,0.28);
  font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.m9-browser tbody td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}
.m9-browser tbody tr:last-child td { border-bottom: none; }
.m9-browser td:first-child { font-weight: 700; white-space: nowrap; }
.m9-browser .m9-yes { color: #86EFAC; font-weight: 700; }
.m9-browser .m9-best { color: #FCD34D; font-weight: 800; }
.m9-browser .m9-no { color: #FCA5A5; }
.m9-browser .m9-mid { color: #FDE68A; }
.m9-browser-legend {
  margin-top: 14px; font-size: 12px; opacity: 0.75;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.m9-browser-legend span { display: inline-flex; align-items: center; gap: 4px; }
.m9-browser-note {
  margin-top: 12px; font-size: 12px; opacity: 0.8;
  padding: 10px 12px; background: rgba(0,0,0,0.25); border-radius: 8px;
}

/* Update log */
.m9-updates {
  margin: 32px 0;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px 20px;
}
.m9-updates h2 { font-size: 22px; margin-bottom: 6px; font-weight: 700; }
.m9-updates-lede { font-size: 14px; opacity: 0.8; margin-bottom: 18px; }
.m9-updates-list { list-style: none; padding: 0; }
.m9-updates-list li {
  position: relative;
  padding: 14px 16px 14px 20px;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  margin-bottom: 10px;
  border-left: 3px solid #FCD34D;
}
.m9-updates-list li:last-child { margin-bottom: 0; }
.m9-updates-date {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(252,211,77,0.15); color: #FCD34D;
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 6px;
}
.m9-updates-list b { display: block; font-size: 15px; margin-bottom: 4px; }
.m9-updates-list p { font-size: 13px; opacity: 0.85; margin: 0; }
.m9-updates-list a { color: #FEF3C7; text-decoration: none; font-weight: 600; }
.m9-updates-list a:hover { text-decoration: underline; }

.m9-breadcrumb {
  max-width: 800px; margin: 0 auto; padding: 20px 20px 0;
  font-size: 13px; opacity: 0.7;
}
.m9-breadcrumb a { color: white; text-decoration: none; }
.m9-breadcrumb a:hover { text-decoration: underline; }

.m9-related {
  background: rgba(0,0,0,0.2); padding: 20px 24px;
  border-radius: 12px; margin: 32px 0 0;
}
.m9-related h3 { font-size: 16px; margin-bottom: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.85; }
.m9-related ul { list-style: none; padding: 0; }
.m9-related li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.m9-related li:last-child { border-bottom: none; }
.m9-related a { color: #FEF3C7; text-decoration: none; font-weight: 600; font-size: 14px; }
.m9-related a:hover { text-decoration: underline; }

.m9-footer {
  text-align: center; padding: 30px 20px 40px;
  opacity: 0.8; font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px;
}
.m9-footer a { color: white; opacity: 0.85; margin: 0 6px; }

@media (max-width: 480px) {
  .m9-access-grid { grid-template-columns: 1fr; }
  .m9-nav-links a { font-size: 12px; }
  .m9-cta-primary { padding: 16px 22px; font-size: 16px; }
}

/* ============================================
   Content utilities (.sp-*) — auto-dark
   ============================================ */

.sp-page { max-width: 800px; margin: 0 auto; padding: 40px 20px 60px; }
.sp-h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15; margin-bottom: 12px; color: inherit; }
.sp-lede { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,0.75); margin-bottom: 32px; line-height: 1.5; }
.sp-h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 700; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid currentColor; opacity: 0.9; }
.sp-h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.sp-p { font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.sp-ul, .sp-ol { margin: 12px 0 20px 24px; line-height: 1.7; }
.sp-ul li, .sp-ol li { margin-bottom: 6px; }

.sp-callout {
  padding: 20px 24px; background: rgba(255,255,255,0.05);
  border-left: 4px solid currentColor; border-radius: 4px;
  margin: 24px 0; font-size: 15px;
}
.sp-callout strong { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; opacity: 0.75; }

.sp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 24px 0; }
.sp-card { padding: 24px; background: rgba(255,255,255,0.05); border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.sp-card b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.sp-card p { font-size: 14px; opacity: 0.75; }

.sp-faq { margin: 16px 0; }
.sp-faq details {
  padding: 16px 20px; background: rgba(255,255,255,0.05);
  border-radius: 8px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.1);
}
.sp-faq summary { font-weight: 700; cursor: pointer; outline: none; font-size: 16px; }
.sp-faq p { margin-top: 10px; font-size: 15px; opacity: 0.85; }

.sp-form-block { padding: 32px; background: rgba(255,255,255,0.05); border-radius: 12px; margin: 24px 0; }
.sp-label { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.sp-input, .sp-textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px; font-family: inherit; font-size: 15px;
  margin-bottom: 16px; color: white;
}
.sp-input:focus, .sp-textarea:focus { outline: 2px solid rgba(59,130,246,0.5); }
.sp-textarea { min-height: 120px; resize: vertical; }

.sp-btn {
  display: inline-block; padding: 12px 28px;
  background: #DC2626; color: white;
  border: none; border-radius: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none;
  transition: opacity 0.2s;
}
.sp-btn:hover { opacity: 0.85; }

.sp-inline-link { color: inherit; text-decoration: underline; font-weight: 600; }

.sp-blog-list { list-style: none; padding: 0; display: grid; gap: 20px; }
.sp-blog-item {
  padding: 20px 24px;
  border-left: 3px solid currentColor;
  background: rgba(255,255,255,0.05);
  border-radius: 0 8px 8px 0;
}
.sp-blog-item h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.sp-blog-item h3 a { color: inherit; text-decoration: none; }
.sp-blog-item h3 a:hover { text-decoration: underline; }
.sp-blog-item .sp-meta { font-size: 12px; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: block; }
.sp-blog-item .sp-excerpt { font-size: 15px; opacity: 0.85; }

.sp-mp-highlight {
  padding: 20px 24px; background: rgba(220,38,38,0.15);
  border-left: 4px solid #DC2626; border-radius: 4px; margin: 24px 0;
}
.sp-mp-highlight strong { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; color: #FCA5A5; }

.sp-legal-toc {
  padding: 16px 20px; background: rgba(255,255,255,0.05);
  border-radius: 6px; margin-bottom: 32px; font-size: 14px;
}
.sp-legal-toc strong { display: block; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; }
.sp-legal-toc ol { list-style-position: inside; }
.sp-legal-toc a { color: inherit; text-decoration: none; opacity: 0.85; }
.sp-legal-toc a:hover { opacity: 1; text-decoration: underline; }

/* Editorial team */
.sp-editorial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin: 24px 0 32px;
}
.sp-editor {
  padding: 20px; background: rgba(255,255,255,0.05);
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 6px;
}
.sp-editor-photo {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #DC2626, #7C2D12);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
  margin-bottom: 8px; letter-spacing: 0.05em;
}
.sp-editor-name { font-size: 17px; font-weight: 700; margin: 0; }
.sp-editor-role { font-size: 13px; font-weight: 600; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; }
.sp-editor-bio { font-size: 13px; opacity: 0.8; line-height: 1.55; margin: 6px 0 0; }
.sp-editor-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.sp-editor-tags span { font-size: 11px; padding: 2px 8px; background: rgba(255,255,255,0.1); border-radius: 12px; font-weight: 600; }

/* Article body */
.sp-article-body { font-size: 16px; line-height: 1.75; }
.sp-article-body p { margin-bottom: 18px; }
.sp-article-body h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid currentColor; opacity: 0.9; }
.sp-article-body h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.sp-article-body blockquote {
  border-left: 4px solid #DC2626; padding: 6px 0 6px 18px;
  margin: 22px 0; font-style: italic; opacity: 0.85;
}
.sp-article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.sp-article-body th, .sp-article-body td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: left; }
.sp-article-body th { background: rgba(255,255,255,0.05); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.sp-article-body ul, .sp-article-body ol { margin: 12px 0 20px 24px; line-height: 1.7; }
.sp-article-body li { margin-bottom: 6px; }
.sp-article-body code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; font-size: 90%; font-family: 'SF Mono', Consolas, monospace; }

.sp-byline {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px; font-size: 14px;
}
.sp-byline-photo {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #DC2626, #7C2D12);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.sp-byline-info { display: flex; flex-direction: column; }
.sp-byline-info strong { font-size: 15px; }
.sp-byline-info span { font-size: 12px; opacity: 0.65; }

@media (max-width: 600px) {
  .sp-page { padding: 24px 16px 40px; }
  .sp-form-block { padding: 20px 16px; }
  .sp-editorial-grid { grid-template-columns: 1fr; }
}

/* Filter chips on blog listing */
.m9-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 20px 0 28px; padding: 14px 16px;
  background: rgba(255,255,255,0.05); border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
.m9-chip {
  padding: 6px 14px; background: rgba(255,255,255,0.06);
  border-radius: 100px; font-size: 13px; font-weight: 600;
  text-decoration: none; color: inherit;
}
.m9-chip.is-active { background: rgba(255,255,255,0.15); font-weight: 700; }
.m9-chip-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.65; align-self: center; margin-right: 4px; }
