*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #12121A; --card: #1A1A24; --border: #2A2A38; --subtle: rgba(255,255,255,0.06);
  --coral: #D85A30; --coral-dim: rgba(216,90,48,0.12); --steel: #047EF1;
  --text: #FFFFFF; --body: #B0AEA6; --muted: #8A887F; --radius: 12px;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Outfit', system-ui, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--steel); }
nav.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; border-bottom: 1px solid var(--subtle); position: sticky; top: 0; background: rgba(18,18,26,0.94); backdrop-filter: blur(12px); z-index: 10; }
nav.top img { height: 24px; display: block; }
nav.top .links { display: flex; gap: 24px; list-style: none; font-size: 14px; font-weight: 500; }
nav.top .links a { color: var(--body); text-decoration: none; }
nav.top .links a:hover, nav.top .links a.active { color: var(--text); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
header.hero { padding: 64px 0 40px; border-bottom: 1px solid var(--subtle); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--coral); background: var(--coral-dim); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
h1 { font-family: 'Barlow Condensed', 'Outfit', sans-serif; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.5px; max-width: 820px; }
.lede { color: var(--body); font-size: 18px; max-width: 720px; margin-top: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.meta strong { color: var(--text); font-weight: 600; }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 48px 0 80px; }
aside.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
aside.toc p { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
aside.toc ol { list-style: none; border-left: 1px solid var(--border); }
aside.toc a { display: block; padding: 5px 0 5px 14px; color: var(--body); text-decoration: none; }
aside.toc a:hover { color: var(--text); }
article section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--subtle); scroll-margin-top: 88px; }
article section:last-child { border-bottom: 0; }
h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 14px; }
h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
article p, article li { color: var(--body); }
article p + p { margin-top: 12px; }
article ul, article ol.list { padding-left: 22px; margin-top: 10px; }
article li + li { margin-top: 6px; }
article strong { color: var(--text); font-weight: 600; }
code, .ui { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.ui { font-family: inherit; font-size: 0.92em; font-weight: 600; }
.steps { list-style: none; counter-reset: step; margin-top: 16px; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 22px 52px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--coral-dim); color: var(--coral); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.steps > li > strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
.callout { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--steel); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; color: var(--body); }
.callout.warn { border-left-color: var(--coral); }
.callout strong { color: var(--text); }
table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text); font-weight: 600; background: var(--card); }
td { color: var(--body); }
details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 18px; margin-top: 10px; }
details summary { cursor: pointer; padding: 15px 0; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--coral); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--text); display: block; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--coral); transform: translateY(-2px); }
.card h2 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--body); }
.card span { display: inline-block; margin-top: 14px; color: var(--coral); font-weight: 600; }
.contact { background: var(--coral-dim); border: 1px solid rgba(216,90,48,0.35); border-radius: var(--radius); padding: 22px 24px; }
.contact p { color: var(--text); }
.contact a { color: var(--coral); font-weight: 600; }
footer { border-top: 1px solid var(--subtle); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  aside.toc { position: static; }
  nav.top { padding: 16px 20px; }
  nav.top .links { gap: 14px; font-size: 13px; }
  nav.top .links li:first-child { display: none; }
  nav.top .links a { white-space: nowrap; }
  .wrap { padding: 0 20px; }
  header.hero { padding: 40px 0 28px; }
}

/* ── Lightspeed overview ── */
.hub-hero { padding: 72px 0 56px; text-align: center; border-bottom: 1px solid var(--subtle); background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(232,28,28,0.14), transparent 70%); }
.hub-hero h1, .hub-hero .lede { margin-left: auto; margin-right: auto; }
.lockup { display: inline-flex; align-items: center; gap: 18px; padding: 14px 24px; border: 1px solid var(--border); border-radius: 999px; background: rgba(26,26,36,0.7); margin-bottom: 28px; }
.lockup img.clx { height: 22px; }
.lockup .x { color: var(--muted); font-size: 20px; font-weight: 300; }
.ls { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -0.2px; }
.ls img { height: 26px; width: 26px; }
.hub-hero .meta { justify-content: center; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 56px 0 0; }
.series { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: border-color .15s, transform .15s, box-shadow .15s; }
.series::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #E81C1C, #F97316); }
.series.r::before { background: linear-gradient(90deg, #F43F5E, #C026D3); }
.series:hover { border-color: rgba(232,28,28,0.6); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.mark { position: relative; width: 64px; height: 56px; margin-bottom: 20px; }
.mark img { width: 52px; height: 52px; filter: drop-shadow(0 4px 12px rgba(232,28,28,0.45)); }
.mark b { position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-style: italic; font-weight: 900; font-size: 16px; color: #fff; background: linear-gradient(135deg, #EF4444, #F97316); box-shadow: 0 0 0 3px var(--card), 0 4px 10px rgba(0,0,0,0.4); }
.series.r .mark b { background: linear-gradient(135deg, #F43F5E, #C026D3); }
.series .kicker { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.series h2 { font-size: 28px; margin: 4px 0 10px; }
.series p { color: var(--body); }
.series ul { list-style: none; margin: 18px 0 24px; padding: 0; }
.series li { color: var(--body); padding-left: 22px; position: relative; font-size: 15px; }
.series li + li { margin-top: 6px; }
.series li::before { content: "✓"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
.series .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; background: var(--coral); padding: 11px 18px; border-radius: 10px; align-self: flex-start; }
.series:hover .go { background: #993C1D; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 64px 0 24px; }
.feature h3 { font-size: 17px; margin: 12px 0 6px; }
.feature p { color: var(--body); font-size: 15px; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--coral-dim); color: var(--coral); display: grid; place-items: center; font-size: 20px; }
.section-title { text-align: center; font-size: 26px; font-weight: 700; margin-top: 64px; }
@media (max-width: 600px) {
  .lockup { gap: 12px; padding: 10px 16px; }
  .lockup img.clx { height: 16px; }
  .ls { font-size: 15px; }
  .ls img { height: 22px; width: 22px; }
  .series { padding: 24px; }
}

/* ── Guides hub + platform logos ── */
.tile { width: 76px; height: 76px; border-radius: 18px; background: #fff; display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.tile img { max-width: 58px; max-height: 40px; }
.tile.ls img { max-width: 44px; max-height: 44px; }
.tile svg { width: 60px; height: auto; }
.series.ebay::before { background: linear-gradient(90deg, #E53238, #0064D2 35%, #F5AF02 70%, #86B817); }
.series.shopify::before { background: linear-gradient(90deg, #5E8E3E, #95BF47); }
.series-grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.brand-strip { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.brand-strip .tile { width: 56px; height: 56px; border-radius: 14px; margin: 0; }
.brand-strip .tile img { max-width: 42px; max-height: 30px; }
.brand-strip .tile svg { width: 44px; }
.brand-strip .tile.ls img { max-width: 32px; max-height: 32px; }
