/* x: page styles, moved from the old plugin template. Menu and footer rules removed (they live in base.css). */
:root {
  --rsg-black:    #000000;
  --rsg-ink:      #1A1E2D;
  --rsg-white:    #FFFFFF;
  --rsg-paper:    #F2F2F2;
  --rsg-red:      #BE3431;
  --rsg-red-soft: #D55F5B;
  --rsg-grey-700: #595959;
  --rsg-grey-500: #888888;
  --rsg-grey-200: #D0D0D0;
  --rsg-grey-100: #E3E3E3;
  --font: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font) !important; font-weight: 300;
  color: var(--rsg-black); background: var(--rsg-white);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* NAV */

/* HERO */
.rsg-hero {
  background: var(--rsg-black); position: relative; overflow: hidden;
  padding: 0; min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end;
}
.rsg-hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--rsg-ink); }
.rsg-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.rsg-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8)); }
.rsg-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
}
.rsg-hero-inner { position: relative; z-index: 2; padding: 110px 56px 56px; max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.rsg-hero-text { flex: 1; min-width: 0; }
.rsg-hero-product-img { flex-shrink: 0; width: 220px; height: 260px; object-fit: cover; display: block; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.rsg-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.rsg-breadcrumb a, .rsg-breadcrumb span { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.rsg-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.rsg-breadcrumb .sep { color: rgba(255,255,255,0.2); }
.rsg-breadcrumb .current { color: rgba(255,255,255,0.65); }
.rsg-hero-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rsg-red); margin-bottom: 12px; }
.rsg-hero-title { font-size: clamp(28px, 4vw, 52px); font-weight: 900; line-height: 1.08; color: var(--rsg-white); letter-spacing: -0.02em; max-width: 780px; }
.rsg-hero-scan-line { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--rsg-red), transparent); opacity: 0.4; }

/* MAIN */
.rsg-dl-main { background: var(--rsg-paper); padding: 64px 56px; }
.rsg-dl-main-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }

/* Content */
.rsg-dl-content { background: var(--rsg-white); padding: 48px; }
.rsg-dl-content-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--rsg-black); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--rsg-grey-100); }
.rsg-dl-content-title::before { content: ''; display: block; width: 28px; height: 3px; background: var(--rsg-red); margin-bottom: 12px; }
.rsg-dl-body { font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--rsg-grey-700); }
.rsg-dl-body p { margin-bottom: 20px; }
.rsg-dl-body p:last-child { margin-bottom: 0; }
.rsg-dl-body ul, .rsg-dl-body ol { margin: 0 0 20px; padding: 0; list-style: none; }
.rsg-dl-body ul li, .rsg-dl-body ol li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 15px; line-height: 1.7; }
.rsg-dl-body ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--rsg-red); }
.rsg-dl-body ol { counter-reset: ol-c; }
.rsg-dl-body ol li::before { content: counter(ol-c); counter-increment: ol-c; position: absolute; left: 0; top: 0; font-size: 12px; font-weight: 700; color: var(--rsg-red); }
.rsg-dl-body h3 { font-size: 17px; font-weight: 700; color: var(--rsg-black); margin: 28px 0 12px; letter-spacing: -0.01em; }
.rsg-dl-body strong { font-weight: 600; color: var(--rsg-black); }
.rsg-dl-body a { color: var(--rsg-red); text-decoration: underline; text-underline-offset: 3px; }
.rsg-dl-body blockquote { border-left: 3px solid var(--rsg-red); padding: 16px 20px; background: var(--rsg-paper); margin: 24px 0; font-style: italic; color: var(--rsg-grey-700); }

/* Sidebar */
.rsg-dl-sidebar { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 88px; }

/* Purchase card */
.rsg-purchase-card { background: var(--rsg-ink); padding: 32px; }
.rsg-purchase-label { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.rsg-purchase-price { font-size: 42px; font-weight: 900; color: var(--rsg-white); letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.rsg-purchase-price.free { font-size: 28px; color: #6DD67C; }
.rsg-purchase-sublabel { font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.35); margin-bottom: 28px; }
.rsg-purchase-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 20px 0; }

/* Hide any EDD purchase form that bleeds into the content body ,
   we have our own purchase card in the sidebar. */
.rsg-dl-body form.edd_download_purchase_form,
.rsg-dl-body .edd_download_purchase_form,
.rsg-dl-body .edd-add-to-cart,
.rsg-dl-body p.edd-submit { display: none !important; }

/* EDD 3.x renders two button variants per form: a <button class="edd-has-js">
   for JS-enabled browsers and an <input class="edd-no-js"> as a no-JS fallback.
   Our own .rsg-purchase-card .edd-submit rule forces display:block !important
   (specificity 0,0,2,0) so the no-JS hide rule must beat it.
   input[type="submit"].edd-no-js gives specificity 0,0,2,1, wins. */
.rsg-purchase-card input[type="submit"].edd-no-js,
.rsg-purchase-card input.edd-no-js { display: none !important; }

/* EDD purchase button, submit input only */
.rsg-purchase-card .edd-submit,
.rsg-purchase-card form.edd_download_purchase_form input[type="submit"] {
  display: block !important; width: 100% !important;
  background: var(--rsg-red) !important; color: #fff !important;
  border: none !important; padding: 16px 24px !important;
  font-family: var(--font) !important; font-size: 12px !important;
  font-weight: 700 !important; letter-spacing: 0.1em !important;
  text-transform: uppercase !important; cursor: pointer !important;
  text-align: center !important; transition: background 0.2s !important;
  box-shadow: none !important; border-radius: 0 !important;
}
.rsg-purchase-card .edd-submit:hover,
.rsg-purchase-card form.edd_download_purchase_form input[type="submit"]:hover { background: var(--rsg-red-soft) !important; }

/* EDD checkout link, styled, but let EDD JS control visibility.
   EDD starts this hidden via inline style="display:none".
   After add-to-cart it removes that inline style so our block rule kicks in. */
.rsg-purchase-card a.edd_go_to_checkout,
.rsg-purchase-card .edd_go_to_checkout {
  display: block;
  width: 100%; box-sizing: border-box; margin-top: 6px;
  padding: 13px 24px !important; text-align: center !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.7) !important;
  font-family: var(--font) !important; font-size: 11px !important;
  font-weight: 700 !important; letter-spacing: 0.1em !important;
  text-transform: uppercase !important; text-decoration: none !important;
  transition: background 0.2s !important;
}
.rsg-purchase-card a.edd_go_to_checkout:hover,
.rsg-purchase-card .edd_go_to_checkout:hover {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}

/* What's included card */
.rsg-includes-card { background: var(--rsg-white); padding: 28px 32px; border-top: 3px solid var(--rsg-red); }
.rsg-includes-label { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rsg-grey-500); margin-bottom: 16px; }
.rsg-includes-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rsg-includes-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; color: var(--rsg-grey-700); line-height: 1.5; }
.rsg-includes-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rsg-red); flex-shrink: 0; margin-top: 6px; }

/* Back link */
.rsg-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rsg-grey-500); transition: color 0.2s; padding: 20px 0 0; }
.rsg-back-link:hover { color: var(--rsg-black); }

/* RELATED */
.rsg-related-section { background: var(--rsg-white); padding: 64px 56px; border-top: 1px solid var(--rsg-grey-100); }
.rsg-related-inner { max-width: 1200px; margin: 0 auto; }
.rsg-related-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.rsg-related-header h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--rsg-black); }
.rsg-related-all { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rsg-red); display: flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.rsg-related-all:hover { gap: 10px; }
.rsg-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.rsg-rel-card { background: var(--rsg-paper); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: background 0.2s; }
.rsg-rel-card:hover { background: var(--rsg-grey-100); }
.rsg-rel-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rsg-red); }
.rsg-rel-title { font-size: 15px; font-weight: 600; color: var(--rsg-black); line-height: 1.4; flex: 1; }
.rsg-rel-price { font-size: 15px; font-weight: 900; color: var(--rsg-black); }
.rsg-rel-price.free { font-size: 11px; font-weight: 700; color: var(--rsg-grey-500); text-transform: uppercase; letter-spacing: 0.05em; }

/* CTA */
.rsg-cta-strip { background: var(--rsg-black); padding: 80px 56px; text-align: center; }
.rsg-cta-strip-headline { font-size: clamp(24px, 3vw, 40px); font-weight: 900; color: var(--rsg-white); letter-spacing: -0.02em; margin-bottom: 16px; }
.rsg-cta-strip-sub { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.5); max-width: 440px; margin: 0 auto 32px; line-height: 1.65; }
.rsg-btn-primary { display: inline-block; background: var(--rsg-red); color: #fff; padding: 16px 36px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s; }
.rsg-btn-primary:hover { background: var(--rsg-red-soft); }

/* FOOTER */

/* RESPONSIVE */
@media (max-width: 1024px) {
  .rsg-hero-inner { padding: 100px 24px 48px; }
  .rsg-dl-main { padding: 48px 24px; }
  .rsg-dl-main-inner { grid-template-columns: 1fr; }
  .rsg-dl-sidebar { position: static; grid-row: 1; }
  .rsg-related-section { padding: 48px 24px; }
  .rsg-related-grid { grid-template-columns: 1fr 1fr; }
  .rsg-cta-strip { padding: 64px 24px; }}
@media (max-width: 640px) {
  .rsg-hero-inner { padding: 88px 16px 40px; }
  .rsg-dl-main { padding: 32px 16px; }
  .rsg-dl-content { padding: 28px; }
  .rsg-related-section { padding: 40px 16px; }
  .rsg-related-grid { grid-template-columns: 1fr; }
  .rsg-cta-strip { padding: 56px 16px; }}
