/* Bright Commerce Lab - article page (index.php).
   Single-column editorial layout with a sticky sidebar box.
   Palette from images/logo.png: navy #010544, gold #D8934F, brown #68340F;
   tints #0D1458, #F8E9D8, #FBF3E8, #F1D5B6, #E6E8F3. */

:root {
  --navy: #010544;
  --navy-2: #0D1458;
  --navy-3: #1B2370;
  --gold: #D8934F;
  --gold-2: #B8733A;
  --gold-soft: #F1D5B6;
  --gold-tint: #F8E9D8;
  --cream: #FBF3E8;
  --brown: #68340F;
  --text: #22243A;
  --muted: #5A5C70;
  --line: #ECEAF2;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  background: #FCFCFE;
  color: var(--text);
  font-family: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
sup { font-size: .68em; line-height: 0; }
sup a { color: var(--brown); text-decoration: none; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { max-width: 1150px; margin: 0 auto; padding: 0 24px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) 270px;
  gap: 40px;
  justify-content: space-between;
  align-items: start;
  padding-top: 34px;
}
.article { min-width: 0; }

/* ---------- Headline block ---------- */
.article h1 {
  font-size: 44px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
  letter-spacing: -.01em;
}
.subtitle {
  margin: 0 0 26px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--gold);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: #45475A;
}
.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 30px;
}
.avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gold-soft); background: #fff; object-fit: contain; padding: 4px; }
.byline .by { margin: 0; font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.byline .meta { margin: 4px 0 0; font-size: 12px; color: #6B6D80; line-height: 1.4; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.badge {
  background: var(--navy); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; border-radius: 99px; padding: 3px 10px; margin-left: 4px;
}

.hero-img, .content-img { margin: 0 0 26px; border: 2px solid var(--gold-tint); border-radius: 6px; overflow: hidden; background: #fff; }
.hero-img img, .content-img img { width: 100%; }

/* ---------- Body copy ---------- */
.article p { margin: 0 0 18px; }
.lead { color: var(--brown); font-weight: 700; }
.article strong { font-weight: 600; color: #15172C; }
.article h2 {
  font-size: 27px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
  margin: 46px 0 22px;
  position: relative;
  padding-bottom: 14px;
}
.article h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; border-radius: 3px; background: var(--gold);
}
.article h3 { font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--navy); margin: 0 0 8px; }

.pull {
  margin: 30px 0;
  padding: 18px 24px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: 21px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
}

.small-note { font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* ---------- Tinted boxes & lists ---------- */
.tint-box {
  background: var(--cream);
  border: 1px solid var(--gold-tint);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.75;
}
.tint-box.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checks li:last-child { margin-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 4px;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D8934F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks.warn li::before {
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23010544' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M12 6v8M12 18.5v.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.split-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.split-box > div { padding: 18px 22px; }
.split-box > div + div { border-left: 1px solid var(--gold-soft); }
.split-box p { margin: 0 !important; }
.split-h { font-weight: 700; margin-bottom: 6px !important; }
.split-h.good { color: var(--navy); }
.split-h.bad { color: var(--brown); }

.plain-list { margin: 0 0 22px; padding-left: 20px; }
.plain-list li { margin-bottom: 10px; }
.plain-list li::marker { color: var(--gold); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 10px 0 26px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 30px; width: 2px; background: var(--gold-soft); }
.timeline li { position: relative; padding: 0 0 26px 72px; }
.t-ico {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold); display: grid; place-items: center;
}
.t-ico svg, .f-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-step { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); line-height: 1.6; margin: 2px 0 4px; }
.timeline h3 { color: var(--navy); }
.timeline p { margin: 0 !important; font-size: 15px; }

/* ---------- Feature card + grid ---------- */
.feature-dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  color: #E9EAF4;
  padding: 26px 26px 22px;
  margin: 0 0 14px;
}
.feature-dark::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; border-radius: 50%;
  border: 18px solid rgba(216,147,79,.14);
}
.feature-dark h3 { color: #fff; font-size: 19px; margin-top: 14px; }
.feature-dark p { margin: 0 !important; font-size: 15px; max-width: 520px; }
.feature-dark .f-ico { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.feature-dark .f-ico svg { stroke: var(--gold); }
.f-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); border: 1px solid var(--gold-soft); }

.feature-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 26px; }
.f-card {
  grid-column: span 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 1px 2px rgba(1,5,68,.04);
}
.f-card:nth-child(1), .f-card:nth-child(2) { grid-column: span 3; }
.f-card h3 { margin-top: 14px; }
.f-card p { margin: 0 !important; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- Comparison cards ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.c-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 14.5px; line-height: 1.7; }
.c-card p { margin: 0 0 8px !important; }
.c-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.c-name { font-weight: 700; color: var(--navy); font-size: 15px; }
.c-tag { flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--gold-tint); border-radius: 99px; padding: 2px 9px; }
.c-tag.hi { background: var(--navy); color: #fff; }
.c-meta { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--gold-soft); padding-top: 8px; margin-bottom: 0 !important; }
.c-meta b { color: var(--navy); font-weight: 600; }

/* ---------- Highlight box ---------- */
.highlight-box {
  border: 2px solid var(--gold);
  background: #fff;
  border-radius: 4px;
  padding: 20px 22px;
  margin: 34px 0 10px;
  font-size: 15px;
}
.highlight-box p { margin: 0 0 12px !important; }
.highlight-box .checks { margin-bottom: 14px; }
.highlight-box > p:first-child strong { color: var(--brown); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); margin-bottom: 30px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 14px 4px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.5;
}
.faq-q::before {
  content: "?"; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gold);
  color: var(--gold-2); font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1;
}
.faq-q::after {
  content: ""; margin-left: auto; flex: 0 0 auto; width: 8px; height: 8px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(-135deg); }
.faq-q:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.faq-a { padding: 0 4px 14px 36px; font-size: 14.5px; color: var(--muted); }
.faq-a p { margin: 0 !important; }

/* ---------- Buttons ---------- */
.big-btn {
  display: block;
  max-width: 480px;
  margin: 10px auto 10px;
  text-align: center;
  background: linear-gradient(180deg, var(--navy-3), var(--navy));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 3px 0 #000233, 0 10px 18px rgba(1,5,68,.18);
  transition: transform .15s, box-shadow .15s;
}
.big-btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 #000233, 0 6px 12px rgba(1,5,68,.18); }

/* ---------- Sources ---------- */
.sources { padding-left: 20px; font-size: 14px; line-height: 1.7; margin: 0 0 10px; }
.sources li { margin-bottom: 8px; }
.sources li::marker { color: var(--gold-2); font-weight: 700; }

/* ---------- Newsletter card ---------- */
.news-card { margin-top: 36px; background: var(--cream); border: 1px solid var(--gold-soft); border-radius: 12px; padding: 22px; }
.news-card .nc-title { margin: 0 0 10px; padding: 0; font-size: 20px; }
.news-card .nc-title::after { display: none; }
.news-card p { font-size: 14.5px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 14.5px; padding: 11px 14px;
  border: 1px solid #CFCFDC; border-radius: 10px; background: #fff; color: var(--text);
}
.inline-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.btn-solid {
  font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; border: 0; border-radius: 10px;
  background: var(--navy); color: #fff; padding: 11px 22px; box-shadow: 0 3px 0 #000233;
}
.btn-solid:hover { background: var(--navy-2); }
.form-status { margin: 10px 0 0 !important; font-size: 13.5px; font-weight: 600; min-height: 1em; }
.form-status.ok, .form-status.success { color: #2F6B3A; }
.form-status.error, .form-status.err { color: #A33A22; }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: 24px; margin-top: 150px; }
.side-box {
  background: #fff;
  border: 2px solid var(--gold-soft);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 6px 18px rgba(1,5,68,.06);
}
.side-title { margin: 0; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; padding: 8px 10px; border-bottom: 3px solid var(--gold); }
.side-box img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.side-tag { margin: 14px 14px 12px; font-weight: 700; font-size: 14.5px; line-height: 1.45; color: var(--brown); }
.side-btn {
  display: block; margin: 0 14px 16px; background: linear-gradient(180deg, var(--navy-3), var(--navy)); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border-radius: 10px; padding: 11px 10px; box-shadow: 0 3px 0 #000233;
}
.side-btn:hover { background: var(--navy-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; }
}
@media (max-width: 880px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 22px; }
  .sidebar { display: none; }
  .article h1 { font-size: 32px; }
  .article h2 { font-size: 23px; margin-top: 38px; }
  .pull { font-size: 18px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  body { font-size: 15.5px; line-height: 1.8; }
  .article h1 { font-size: 27px; }
  .subtitle { font-size: 16px; }
  .tint-box.two-col, .split-box, .compare-grid { grid-template-columns: 1fr; }
  .tint-box.two-col .checks + .checks { margin-top: 10px; }
  .split-box > div + div { border-left: 0; border-top: 1px solid var(--gold-soft); }
  .feature-grid { grid-template-columns: 1fr; }
  .f-card, .f-card:nth-child(1), .f-card:nth-child(2) { grid-column: auto; }
  .timeline li { padding-left: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
