/* StoreAuditLab shared stylesheet for service and editorial pages.
   Matches the visual identity of index.html and the resources checklist.
   Loaded by: pricing, platform pages, agency page, guides. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy-0: #070c18;
  --navy-1: #0b1121;
  --card: #121c30;
  --card-2: #16213a;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-dark: #059669;
  --amber: #f59e0b;
  --red: #f87171;
  --slate: #95a8c1;
  --slate-light: #d3dce8;
  --white: #f6f9fc;
  --border: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(16, 185, 129, 0.35);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(16, 185, 129, 0.09), transparent 60%),
    radial-gradient(800px 480px at 88% 6%, rgba(59, 130, 246, 0.06), transparent 55%),
    var(--navy-1);
  color: var(--white);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo, .stat-num, .price-tag { font-family: "Sora", "Inter", sans-serif; }

a { color: var(--emerald-bright); }
a:hover { color: var(--white); }

.container { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 0;
  background: rgba(11, 17, 33, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex: none;
}
.logo::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: none;
  background: url("/assets/logo-mark.svg") center / contain no-repeat;
}
.logo span { color: var(--emerald-bright); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--slate-light); text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.nav-links a:hover { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald-bright), var(--emerald-dark));
  color: #05231b;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 22px rgba(16, 185, 129, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); color: #05231b; }
.btn-ghost {
  background: transparent;
  color: var(--slate-light);
  border: 1px solid var(--border);
  box-shadow: none;
  font-weight: 600;
}
.btn-ghost:hover { border-color: var(--border-glow); color: var(--white); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 20px 0 0;
  font-size: 0.82rem;
  color: var(--slate);
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(148, 163, 184, 0.5); }
.breadcrumbs a { color: var(--slate-light); text-decoration: none; }
.breadcrumbs a:hover { color: var(--emerald-bright); }
.breadcrumbs [aria-current="page"] { color: var(--slate); }

/* ---------- Page header ---------- */
.page-head { padding: 40px 0 52px; border-bottom: 1px solid var(--border); }
.eyebrow {
  color: var(--emerald-bright);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}
.page-head h1 {
  max-width: 900px;
  margin: 14px 0 18px;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.dek { max-width: 760px; color: var(--slate-light); font-size: 1.1rem; margin: 0; }
.meta-line { color: var(--slate); font-size: 0.82rem; margin-top: 22px; }
.head-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding: 56px 0 88px; }
.layout.solo { grid-template-columns: minmax(0, 1fr); }
article { min-width: 0; }
article h2 { margin: 56px 0 14px; font-size: clamp(1.45rem, 2.8vw, 1.95rem); line-height: 1.25; letter-spacing: -0.02em; }
article h3 { margin: 30px 0 8px; font-size: 1.1rem; }
article h4 { margin: 22px 0 6px; font-size: 0.98rem; color: var(--white); }
article p, article li { color: var(--slate-light); }
article ul, article ol { padding-left: 22px; }
article li { margin: 8px 0; }
article > p:first-child { margin-top: 0; }
article strong { color: var(--white); }

/* ---------- Answer-first block ---------- */
.answer {
  background: linear-gradient(150deg, rgba(16, 185, 129, 0.12), rgba(18, 28, 48, 0.96));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 26px 30px;
  margin: 0 0 34px;
}
.answer p { margin: 0 0 10px; font-size: 1.04rem; color: var(--slate-light); }
.answer p:last-child { margin-bottom: 0; }
.answer p:first-child { color: var(--white); font-weight: 600; }

/* ---------- Cards ---------- */
.card, .note, .cta, .toc, .quick {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.card { padding: 26px 28px; margin: 20px 0; }
.card h2 { margin: 0 0 10px; font-size: 1.3rem; }
.card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.card p:last-child { margin-bottom: 0; }
.card-num { color: var(--emerald-bright); font-size: 0.74rem; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.card-grid .card { margin: 0; }

.quick { padding: 24px 28px; margin: 30px 0; }
.quick h2 { margin: 0 0 10px; font-size: 1.2rem; }
.quick ol, .quick ul { margin-bottom: 0; }

.note {
  padding: 20px 24px;
  border-left: 4px solid var(--emerald);
  color: var(--slate-light);
  margin: 26px 0;
}
.note.caution { border-left-color: var(--amber); }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--white); }

/* ---------- Lists with marks ---------- */
.check, .cross { list-style: none; padding: 0; }
.check li, .cross li { position: relative; padding-left: 28px; }
.check li::before { content: "\2713"; position: absolute; left: 0; color: var(--emerald-bright); font-weight: 700; }
.cross li::before { content: "\00d7"; position: absolute; left: 0; color: var(--slate); font-weight: 700; font-size: 1.1rem; line-height: 1.5; }

/* ---------- Two-column include / exclude ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.split .card { margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  text-align: left;
  background: rgba(7, 12, 24, 0.6);
  color: var(--emerald-bright);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--slate-light); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
td strong { color: var(--white); }

/* ---------- Stat band ---------- */
.stat-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 12, 24, 0.45);
  padding: 34px 0;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 1.95rem; font-weight: 800; color: var(--emerald-bright); letter-spacing: -0.02em; line-height: 1.15; }
.stat-label { color: var(--slate); font-size: 0.84rem; margin-top: 4px; }

/* ---------- Price block ---------- */
.price-tag { font-size: 3rem; font-weight: 800; line-height: 1; margin: 0; }
.price-tag sup { font-size: 1.4rem; top: -0.85em; color: var(--emerald-bright); }
.price-sub { color: var(--slate); font-size: 0.85rem; margin: 6px 0 0; }

/* ---------- CTA ---------- */
.cta {
  margin: 56px 0 0;
  padding: 34px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(18, 28, 48, 0.96));
  border-color: rgba(16, 185, 129, 0.28);
}
.cta h2 { margin: 0 0 10px; font-size: 1.4rem; }
.cta .btn { margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { margin: 30px 0 0; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--card);
  overflow: hidden;
}
.faq details[open] { border-color: var(--border-glow); }
.faq summary {
  cursor: pointer;
  padding: 17px 22px;
  font-weight: 600;
  font-size: 0.97rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--emerald-bright); font-size: 1.2rem; font-weight: 400; flex: none; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { color: var(--slate-light); font-size: 0.92rem; padding: 0 22px 18px; }
.faq .faq-a p { margin: 0 0 10px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Sidebar ---------- */
aside { align-self: start; position: sticky; top: 88px; }
.toc { padding: 22px 24px; }
.toc strong { font-family: "Sora", sans-serif; font-size: 0.95rem; }
.toc a { display: block; margin-top: 10px; color: var(--slate-light); text-decoration: none; font-size: 0.87rem; }
.toc a:hover { color: var(--emerald-bright); }
.toc .toc-cta { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ---------- Related links ---------- */
.related { border-top: 1px solid var(--border); padding: 46px 0; }
.related h2 { margin: 0 0 20px; font-size: 1.3rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.related-grid a {
  display: block;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.related-grid a:hover { border-color: var(--border-glow); }
.related-grid .r-title { color: var(--white); font-weight: 600; font-size: 0.97rem; display: block; }
.related-grid .r-desc { color: var(--slate); font-size: 0.85rem; display: block; margin-top: 4px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 36px 0 44px; color: var(--slate); font-size: 0.83rem; }
footer .container { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--slate-light); text-decoration: none; }
footer a:hover { color: var(--white); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
  aside { order: -1; position: static; }
  .split, .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-nav .nav-links a:not(.btn) { display: none; }
  .site-nav .logo { gap: 7px; font-size: 0.9rem; }
  .site-nav .logo::before { width: 28px; height: 28px; }
  .site-nav .btn { padding: 9px 12px; font-size: 0.78rem; }
  .split, .stat-grid { grid-template-columns: 1fr; }
  .page-head { padding: 28px 0 40px; }
  .card, .quick, .cta { padding: 22px; }
  article h2 { margin-top: 42px; }
}
