/* Shared styles for the Free Plugins section */

:root {
  --bg: #050608;
  --panel: #101114;
  --panel-strong: #16171b;
  --text: #ffffff;
  --muted: #c8cee0;
  --nav: #d7d2f6;
  --line: rgba(255, 138, 42, 0.2);
  --accent: #ff8a2a;
  --accent-soft: #ffc08a;
  --free: #41ffc0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 138, 42, 0.1), transparent 55%),
    linear-gradient(180deg, #0b0b0d, #050506);
  pointer-events: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header and menu */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 12, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand img {
  width: clamp(168px, 18vw, 246px);
  height: auto;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 138, 42, 0.35);
  border-radius: 6px;
  background: rgba(255, 138, 42, 0.05);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.menu-toggle span {
  position: relative;
  transition: background 200ms ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  transition: top 220ms ease, transform 220ms ease;
}

.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.site-header.menu-open .menu-toggle span { background: transparent; }
.site-header.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--nav);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  border-color: rgba(255, 138, 42, 0.45);
  color: var(--text);
  background: rgba(255, 138, 42, 0.08);
  outline: none;
}

/* Page layout */

main {
  flex: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px);
}

.breadcrumb {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--accent-soft);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  text-decoration: underline;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Montserrat, Inter, sans-serif;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 0 0 34px rgba(255, 138, 42, 0.3);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1;
}

.lead {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
}

.badge-free {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(65, 255, 192, 0.5);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--free);
  background: rgba(65, 255, 192, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 0 34px;
  color: #1a0d02;
  background: var(--accent);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(255, 138, 42, 0.3);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-soft);
  box-shadow: 0 0 44px rgba(255, 138, 42, 0.55);
  outline: none;
}

.button.ghost {
  min-height: 48px;
  padding: 0 24px;
  color: var(--accent);
  background: transparent;
  font-size: 0.85rem;
  box-shadow: none;
}

.button.ghost:hover,
.button.ghost:focus-visible {
  color: #1a0d02;
  background: var(--accent);
}

/* Section index: product grid */

.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.free-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.free-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  overflow: hidden;
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.free-card:hover,
.free-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 42, 0.6);
  box-shadow: 0 18px 50px rgba(255, 138, 42, 0.14);
  outline: none;
}

.free-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: #0c0c0e;
}

.free-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 20px;
}

.free-card .kicker {
  font-size: 0.7rem;
}

.free-card h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
}

.free-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.free-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.free-card .card-link {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-note {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.store-note a {
  color: var(--accent-soft);
  font-weight: 800;
}

/* Product page */

.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.product-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #0c0c0e;
  box-shadow: 0 24px 80px rgba(255, 138, 42, 0.16);
}

.video-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.product-info .badge-free {
  margin-top: 18px;
}

.product-info .lead {
  margin-top: 14px;
}

.get-free {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 22px;
}

.get-note {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.get-note strong {
  color: var(--accent-soft);
}

.formats {
  margin: 4px 0 0;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-body {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(40px, 6vw, 72px);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
}

.panel + .panel {
  margin-top: 18px;
}

.panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.panel p:last-child {
  margin-bottom: 0;
}

.feature-list,
.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}

.feature-list li,
.spec-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.feature-list li::before,
.spec-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.spec-list li + li {
  margin-top: 8px;
}

.spec-title {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-title:first-of-type {
  margin-top: 0;
}

.upsell {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  border-color: rgba(255, 138, 42, 0.5);
  background: linear-gradient(135deg, rgba(40, 20, 6, 0.9), rgba(14, 10, 8, 0.92));
}

.upsell h2 {
  margin-bottom: 8px;
}

.upsell p {
  max-width: 640px;
}

.upsell-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.back-link {
  display: inline-flex;
  margin-top: 36px;
  color: var(--accent-soft);
  font-weight: 800;
}

/* Gumroad rating and video (product pages) */

.rating {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.rating .stars {
  color: #ffc94d;
}

.rating strong {
  color: var(--text);
}

.rating a {
  color: inherit;
  text-underline-offset: 3px;
}

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 180ms ease;
}

.video-facade:hover img,
.video-facade:focus-visible img {
  opacity: 1;
}

.video-facade:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(255, 138, 42, 0.5);
}

.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #1a0d02;
}

.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
}

.panel .video-note {
  margin-top: 12px;
  font-size: 0.85rem;
}

.video-note a {
  color: var(--accent-soft);
  font-weight: 800;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-legal a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--text);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.socials a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

/* Responsive */

@media (max-width: 960px) {
  .free-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-hero,
  .product-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    width: min(320px, calc(100vw - 32px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255, 138, 42, 0.24);
    border-radius: 8px;
    padding: 10px;
    background: rgba(6, 8, 12, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  }

  .site-header.menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 14px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    min-height: auto;
    padding: 18px 0;
  }

  .free-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .get-free,
  .get-free .button {
    width: 100%;
  }

  .upsell-links,
  .upsell-links .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .free-card,
  .button { transition: none; }
}
