/* Shelfshoot Help Center — scoped styles (brand tokens inherited from shelfshoot-landing.css) */

.help-shell {
  background: #f8fafc;
}

/* Sub-hero header */
.help-hero {
  padding: clamp(48px, 7vw, 84px) max(28px, calc((100vw - var(--max)) / 2)) clamp(36px, 5vw, 56px);
  color: var(--paper);
  background:
    radial-gradient(circle at 12% 16%, rgba(249, 115, 22, 0.2), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(37, 99, 235, 0.13), transparent 30%),
    linear-gradient(180deg, #0a1424 0%, #020617 100%);
}

/* .help-hero already centers its content via the padding above. The shared
   nav.top (from shelfshoot-landing.css) ALSO applies calc((100vw - max)/2)
   horizontal padding — stacking the two shrinks the header to nothing on wide
   screens (logo and links overlap). Neutralise the nav's own gutter here so it
   simply spans the hero's already-centered content box. */
.help-hero nav.top {
  padding-left: 0;
  padding-right: 0;
}

.help-hero .eyebrow {
  margin-bottom: 14px;
  color: #fb923c;
}

.help-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 860;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.help-hero p.lead {
  max-width: 560px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.6;
}

/* Search-style quick links inside hero */
.help-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.help-quicklinks a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 640;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.help-quicklinks a:hover {
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(249, 115, 22, 0.12);
  transform: translateY(-1px);
}

.help-quicklinks a svg {
  flex: 0 0 auto;
  color: #fb923c;
}

/* Hero: copy beside a layered real-product preview */
.help-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.help-hero-copy { animation: heroRise 620ms cubic-bezier(0.22, 1, 0.36, 1) both; }

.help-hero-art {
  position: relative;
  align-self: center;
  min-height: 320px;
  animation: heroRise 720ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-browser {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b1220;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transform-origin: left center;
}

.hero-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #0f1729;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-browser img { display: block; width: 100%; height: auto; }

.hero-phone {
  position: absolute;
  right: -6px;
  bottom: -34px;
  width: 124px;
  padding: 6px;
  border-radius: 24px;
  background: linear-gradient(155deg, #232c3d, #05080f);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.9);
  transform: rotate(4deg);
}

.hero-phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 46px;
  height: 12px;
  border-radius: 999px;
  background: #05080f;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-phone img { display: block; width: 100%; height: auto; border-radius: 18px; }

@media (max-width: 900px) {
  .help-hero-grid { grid-template-columns: 1fr; }
  .help-hero-art { display: none; }
}

/* Two-column layout: sticky sidebar + article column */
.help-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  /* max-width + margin:auto already centers the column; the side padding is a
     plain gutter for narrow screens only. Do NOT also use
     calc((100vw - max)/2) here — that double-centers and makes the content
     shrink as the viewport grows. */
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 28px;
}

/* Sidebar */
.help-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

.help-nav h4 {
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.help-nav ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: guide;
}

.help-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 9px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.help-nav a::before {
  counter-increment: guide;
  content: counter(guide);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  transition: background-color 140ms ease, color 140ms ease;
}

.help-nav a:hover {
  background: #fff7ed;
  color: var(--orange-dark);
}

.help-nav a:hover::before,
.help-nav a.active::before {
  background: var(--orange);
  color: #fff;
}

.help-nav a.active {
  background: #fff7ed;
  color: var(--orange-dark);
}

.help-support {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
}

.help-support strong {
  display: block;
  margin-bottom: 4px;
  color: #9a3412;
  font-size: 14px;
}

.help-support p {
  margin: 0 0 10px;
  color: #b45309;
  font-size: 13px;
  line-height: 1.5;
}

.help-support a {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.help-support a:hover {
  text-decoration: underline;
}

/* Article column */
.help-articles {
  min-width: 0;
}

.guide {
  scroll-margin-top: 24px;
  padding: clamp(26px, 3vw, 38px);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.045);
}

.guide-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.guide-num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--orange);
  background: #ffedd5;
  font-size: 17px;
  font-weight: 860;
}

.guide h2 {
  margin: 0;
  color: #0b1220;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.guide .intro {
  margin: 14px 0 20px;
  color: #475569;
  font-size: 16px;
  line-height: 1.65;
}

.guide h3 {
  margin: 26px 0 10px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.guide p {
  margin: 0 0 12px;
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

.guide a.inline {
  color: var(--orange-dark);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(234, 88, 12, 0.3);
}

.guide a.inline:hover {
  border-bottom-color: var(--orange-dark);
}

/* Numbered step list */
.steps {
  counter-reset: step;
  padding: 0;
  margin: 4px 0 8px;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 4px 0 16px 44px;
  color: #334155;
  font-size: 15px;
  line-height: 1.62;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0b1220;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 4px;
  left: 13.5px;
  width: 1px;
  background: linear-gradient(180deg, #cbd5e1, transparent);
}

.steps li strong {
  color: #0f172a;
  font-weight: 700;
}

/* Callout / tip banner */
.callout {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 14px;
  line-height: 1.55;
}

.callout.warm {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.callout svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.callout strong {
  font-weight: 750;
}

/* ── Real-screenshot frames ─────────────────────────── */
/* Browser-chrome frame around a real desktop UI screenshot */
.shot {
  margin: 26px 0 8px;
}

.browser {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 30px 60px -22px rgba(15, 23, 42, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.browser:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 6px 16px rgba(15, 23, 42, 0.07),
    0 40px 80px -22px rgba(15, 23, 42, 0.34);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fbfcfe, #f4f6fa);
}

.browser-bar i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.browser-bar i:nth-child(1) { background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }

.browser-bar .url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e6eaf0;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.browser-bar .url svg { color: #94a3b8; }

.browser-img {
  display: block;
  width: 100%;
  height: auto;
  background: #f6f7f9;
}

/* Caption shared by all real-screenshot figures */
.shot-caption {
  margin: 12px 2px 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.5;
  text-align: center;
}

/* Split: steps beside the phone screenshot (scan station) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 8px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.12), transparent 46%),
    radial-gradient(circle at 4% 96%, rgba(37, 99, 235, 0.1), transparent 44%),
    linear-gradient(150deg, #0b1628 0%, #060c18 100%);
}

.split-steps h3 { margin-top: 0; color: #f1f5f9; }

.split .steps li { color: #cbd5e1; }
.split .steps li strong { color: #fff; }

.split .steps li:not(:last-child)::after {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.5), transparent);
}

.split .steps li::before {
  background: var(--orange);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.phone-shot { margin: 0; }

/* Phone frame around the real scan-station screenshot */
.device {
  position: relative;
  width: 248px;
  padding: 11px;
  margin: 0 auto;
  border-radius: 44px;
  background: linear-gradient(155deg, #20293a 0%, #05080f 88%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.04) inset,
    0 2px 4px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -28px rgba(0, 0, 0, 0.85);
}

.device-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 92px;
  height: 22px;
  border-radius: 999px;
  background: #05080f;
  transform: translateX(-50%);
  z-index: 2;
}

.device-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  background: #0b1220;
}

/* Output-size chips (illustrative, not a screenshot) */
.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0 8px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.1), transparent 55%),
    linear-gradient(150deg, #0b1628 0%, #060c18 100%);
}

.size-chip {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.size-chip small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.size-chip.sel {
  border-color: var(--orange);
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0.06));
  color: #fff;
  box-shadow: 0 0 0 1px var(--orange), 0 14px 30px -10px rgba(249, 115, 22, 0.5);
}

.size-chip.sel small { color: #fdba74; }

.size-chip.sel::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

/* Integration split cards */
.int-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 8px;
}

.int-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.int-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.int-card .badge.shopify { color: #4c7d2e; background: #e6f4d9; }
.int-card .badge.api { color: #1e40af; background: #dbeafe; }

.int-card h4 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 720;
}

.int-card p {
  margin: 0;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.6;
}

/* Plan compare */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 8px;
}

.plan {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.plan.growth {
  border-color: rgba(249, 115, 22, 0.4);
  background: linear-gradient(160deg, rgba(255, 237, 213, 0.7), #fff 60%);
}

.plan .pname {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #0b1220;
  font-size: 16px;
  font-weight: 800;
}

.plan .ptag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.plan .pdesc {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 4px;
  color: #0f172a;
  font-size: 15.5px;
  font-weight: 680;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 18px;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.faq details[open] summary::after {
  content: "−";
  background: var(--orange);
  color: #fff;
}

.faq details[open] summary { color: var(--orange-dark); }

.faq .answer {
  padding: 0 4px 18px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 940px) {
  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-nav {
    position: static;
    display: none;
  }

  .int-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }

  .split-steps { width: 100%; }
}

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

  .device {
    width: 220px;
  }

  .browser-bar .url {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
