:root {
  --plo-refresh-bg: #0d1826;
  --plo-refresh-bg-soft: #111f2f;
  --plo-refresh-card: #142334;
  --plo-refresh-line: rgba(207, 164, 76, .30);
  --plo-refresh-gold: #f4a20a;
  --plo-refresh-gold-soft: #d8b76d;
  --plo-refresh-text: #f4f7fa;
  --plo-refresh-muted: #a8b7c8;
  --plo-refresh-green: #2fd47b;
  --plo-refresh-radius: 24px;
}

body.plo-refresh-active .entry-content,
body.plo-refresh-active .site-main,
body.plo-refresh-active main {
  box-sizing: border-box;
}

body.plo-refresh-active .entry-content img {
  height: auto;
}

/* Site-wide long-form desktop alignment. Keeps body copy readable and centres media. */
@media (min-width: 900px) {
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content {
    width: min(100% - 48px, 1100px);
    margin-inline: auto;
  }

  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > p,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > h1,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > h2,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > h3,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > h4,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > ul,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > ol,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > blockquote,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > .plo-note,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > .plo-faq {
    width: min(100%, 820px);
    margin-left: auto;
    margin-right: auto;
  }

  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > .plo-table-wrap,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > table {
    width: min(100%, 940px);
    margin-left: auto;
    margin-right: auto;
  }

  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > figure,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > .wp-block-image,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content > .plo-refresh-shot,
  body.plo-refresh-active:not(.plo-refresh-front) .entry-content .plo-refresh-shot {
    width: min(100%, 680px) !important;
    margin: 32px auto !important;
  }
}

.plo-refresh-shot {
  display: block;
  margin: 24px auto;
  text-align: center;
  line-height: 0;
}

.plo-refresh-shot img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 900px;
  margin: 0 auto;
  border-radius: 24px;
  object-fit: contain;
}

.plo-refresh-shot--logo img {
  max-height: 310px;
  border-radius: 0;
}

/* New homepage */
.plo-refresh-home-hero,
.plo-refresh-home-section {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  color: var(--plo-refresh-text);
  background: linear-gradient(180deg, rgba(13,24,38,.985), rgba(10,18,29,.985));
}

.plo-refresh-home-hero {
  padding: clamp(52px, 7vw, 92px) 0;
  overflow: hidden;
}

.plo-refresh-home-hero::before {
  content: "";
  position: absolute;
  inset: -25% 40% 15% -10%;
  background: radial-gradient(circle, rgba(244,162,10,.16), transparent 65%);
  pointer-events: none;
}

.plo-refresh-home-section {
  padding: clamp(52px, 6vw, 84px) 0;
  border-top: 1px solid rgba(255,255,255,.05);
}

.plo-refresh-home-section--alt {
  background: linear-gradient(180deg, rgba(17,31,47,.99), rgba(13,24,38,.99));
}

.plo-refresh-home-section--compact {
  padding-top: 48px;
  padding-bottom: 56px;
}

.plo-refresh-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.plo-refresh-hero-grid,
.plo-refresh-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: center;
}

.plo-refresh-split--reverse .plo-refresh-copy { order: 2; }
.plo-refresh-split--reverse .plo-refresh-media { order: 1; }

.plo-refresh-hero-copy,
.plo-refresh-copy {
  max-width: 680px;
}

.plo-refresh-eyebrow {
  margin: 0 0 14px;
  color: var(--plo-refresh-gold);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.plo-refresh-home-hero h1 {
  margin: 0 0 22px;
  color: var(--plo-refresh-text);
  font-size: clamp(2.65rem, 5.3vw, 5.1rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.plo-refresh-home-section h2,
.plo-refresh-premium-card h2 {
  margin-top: 0;
  color: var(--plo-refresh-text);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.plo-refresh-home-section h3 {
  color: var(--plo-refresh-text);
}

.plo-refresh-lead,
.plo-refresh-copy > p,
.plo-refresh-section-heading > p,
.plo-refresh-feature-copy p,
.plo-refresh-premium-copy > p {
  color: var(--plo-refresh-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.plo-refresh-lead {
  max-width: 650px;
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
}

.plo-refresh-lead strong,
.plo-refresh-copy strong {
  color: var(--plo-refresh-text);
}

.plo-refresh-checks {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.plo-refresh-checks li {
  position: relative;
  padding-left: 30px;
  color: var(--plo-refresh-text);
  line-height: 1.55;
}

.plo-refresh-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--plo-refresh-gold);
  font-weight: 900;
}

.plo-refresh-checks--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
}

.plo-refresh-fineprint {
  margin: 14px 0 0;
  max-width: 620px;
  color: #8393a5;
  font-size: .85rem;
  line-height: 1.5;
}

.plo-refresh-hero-media .plo-refresh-shot,
.plo-refresh-media .plo-refresh-shot {
  width: min(100%, 520px);
  margin: 0 auto;
}

.plo-refresh-hero-media .plo-refresh-shot img,
.plo-refresh-media .plo-refresh-shot img {
  max-height: 760px;
  filter: drop-shadow(0 28px 45px rgba(0,0,0,.34));
}

.plo-refresh-section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.plo-refresh-section-heading h2 {
  margin-bottom: 14px;
}

.plo-refresh-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plo-refresh-feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20,35,52,.96), rgba(13,24,38,.96));
  border: 1px solid var(--plo-refresh-line);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.plo-refresh-feature-image {
  display: block;
  padding: 20px 16px 0;
}

.plo-refresh-feature-image .plo-refresh-shot {
  width: min(100%, 220px);
  margin: 0 auto;
}

.plo-refresh-feature-image .plo-refresh-shot img {
  max-height: 360px;
  border-radius: 18px;
}

.plo-refresh-feature-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.plo-refresh-feature-copy h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.24;
}

.plo-refresh-feature-copy p {
  margin: 0 0 18px;
  font-size: .92rem;
  line-height: 1.58;
}

.plo-refresh-text-link {
  margin-top: auto;
  color: var(--plo-refresh-gold);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.plo-refresh-button,
.plo-refresh-home-section .plo-button,
.plo-refresh-home-hero .plo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  color: #17130a !important;
  background: linear-gradient(180deg, #ffc24d, #f3a006);
  border: 1px solid #ffc45c;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(244,162,10,.18);
}

.plo-refresh-button--secondary {
  color: var(--plo-refresh-gold) !important;
  background: transparent;
  border-color: rgba(244,162,10,.68);
  box-shadow: none;
}

.plo-refresh-store-slot {
  margin-top: 22px;
}

.plo-refresh-store-slot > * {
  margin-top: 0;
  margin-bottom: 0;
}

.plo-refresh-premium-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  background: linear-gradient(135deg, rgba(20,35,52,.98), rgba(10,18,29,.98));
  border: 1px solid rgba(244,162,10,.42);
  border-radius: 28px;
  box-shadow: 0 24px 55px rgba(0,0,0,.23);
}

.plo-refresh-premium-brand .plo-refresh-shot {
  margin: 0;
}

.plo-refresh-premium-brand .plo-refresh-shot img {
  max-height: 250px;
}

.plo-refresh-trial {
  margin-top: 24px !important;
  color: var(--plo-refresh-green) !important;
}

.plo-refresh-center {
  text-align: center;
}

@media (max-width: 1120px) {
  .plo-refresh-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .plo-refresh-hero-grid,
  .plo-refresh-split,
  .plo-refresh-premium-card {
    grid-template-columns: 1fr;
  }

  .plo-refresh-split--reverse .plo-refresh-copy,
  .plo-refresh-split--reverse .plo-refresh-media {
    order: initial;
  }

  .plo-refresh-hero-copy,
  .plo-refresh-copy {
    max-width: none;
  }

  .plo-refresh-hero-media .plo-refresh-shot,
  .plo-refresh-media .plo-refresh-shot {
    width: min(100%, 430px);
  }

  .plo-refresh-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plo-refresh-premium-brand {
    max-width: 280px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .plo-refresh-shell {
    width: min(100% - 28px, 1180px);
  }

  .plo-refresh-home-hero,
  .plo-refresh-home-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .plo-refresh-feature-grid,
  .plo-refresh-checks--two {
    grid-template-columns: 1fr;
  }

  .plo-refresh-feature-image .plo-refresh-shot {
    width: min(100%, 260px);
  }

  .plo-refresh-premium-card {
    padding: 26px 20px;
  }
}

/* v1.1.1 — desktop split-layout correction.
   Some themes can cause the two children of the reverse split sections to land
   on separate implicit grid rows. Pin both items to the same row and keep all
   homepage tool sections on one consistent copy-left / screenshot-right axis. */
@media (min-width: 821px) {
  body.plo-refresh-front .plo-refresh-split {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px) !important;
    align-items: center !important;
    column-gap: clamp(44px, 6vw, 82px) !important;
  }

  body.plo-refresh-front .plo-refresh-split > .plo-refresh-copy,
  body.plo-refresh-front .plo-refresh-split--reverse > .plo-refresh-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: initial !important;
    align-self: center !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 !important;
  }

  body.plo-refresh-front .plo-refresh-split > .plo-refresh-media,
  body.plo-refresh-front .plo-refresh-split--reverse > .plo-refresh-media {
    grid-column: 2 !important;
    grid-row: 1 !important;
    order: initial !important;
    align-self: center !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.plo-refresh-front .plo-refresh-split .plo-refresh-media .plo-refresh-shot,
  body.plo-refresh-front .plo-refresh-split--reverse .plo-refresh-media .plo-refresh-shot {
    width: min(100%, 410px) !important;
    max-width: 410px !important;
    margin: 0 auto !important;
  }

  body.plo-refresh-front .plo-refresh-split .plo-refresh-media .plo-refresh-shot img,
  body.plo-refresh-front .plo-refresh-split--reverse .plo-refresh-media .plo-refresh-shot img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 650px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }
}

@media (min-width: 821px) and (max-width: 1050px) {
  body.plo-refresh-front .plo-refresh-split {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px) !important;
    column-gap: 36px !important;
  }

  body.plo-refresh-front .plo-refresh-split .plo-refresh-media .plo-refresh-shot,
  body.plo-refresh-front .plo-refresh-split--reverse .plo-refresh-media .plo-refresh-shot {
    max-width: 350px !important;
  }
}

/* v1.1.2 — remove the decorative gold hero glow on mobile only.
   Desktop keeps the subtle radial highlight; small screens use a clean flat background. */
@media (max-width: 820px) {
  body.plo-refresh-front .plo-refresh-home-hero::before {
    content: none !important;
    display: none !important;
    background: none !important;
  }
}
