/* Count Encompass product page: a few additions on top of the shared site.css, not a full stylesheet. */

.ce-logo { display: block; height: auto; max-width: 300px; margin-bottom: 1.2rem; }

/* Screenshot gallery - portrait phone screenshots (1080x2400) shown as phone mockups */
.ce-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.ce-gallery figure {
  margin: 0; border-radius: 16px; overflow: hidden; border: 6px solid var(--ie-charcoal);
  box-shadow: var(--shadow); background: var(--ie-charcoal);
}
.ce-gallery img { display: block; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; cursor: zoom-in; transition: transform .25s ease; }
.ce-gallery figure:hover img { transform: scale(1.04); }
.ce-gallery figcaption { padding: .55rem .2rem 0; font-size: .78rem; font-weight: 600; color: var(--ink); text-align: center; }

.ce-lightbox {
  position: fixed; inset: 0; background: rgba(20, 20, 20, .92); z-index: 200; padding: 2rem;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.ce-lightbox.open { opacity: 1; pointer-events: auto; }
.ce-lightbox img { max-width: min(420px, 85vw); max-height: 78vh; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); cursor: zoom-out; }
.ce-lightbox p { color: #fff; margin: .9rem 0 0; font-size: .9rem; text-align: center; }
.ce-lightbox .ce-lightbox-hint { color: #bbb; font-size: .78rem; margin-top: .3rem; }

/* Templates row */
.ce-templates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.ce-template-card {
  text-align: center; padding: 1.1rem .75rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--ie-white);
}
.ce-template-card.ce-template-tuned { border-color: var(--ie-brand-red); }
.ce-template-icon { font-size: 1.8rem; margin-bottom: .4rem; }
.ce-template-name { font-family: var(--ie-font-heading); font-weight: 700; font-size: .92rem; margin: 0 0 .25rem; }
.ce-template-tag { font-size: .72rem; color: var(--ie-brand-red); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.ce-template-tag-also { font-size: .72rem; color: var(--ink-faint); }

/* How it works */
.ce-steps { counter-reset: ce-step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.ce-steps li { position: relative; padding-left: 3rem; }
.ce-steps li::before {
  counter-increment: ce-step; content: counter(ce-step);
  position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--ie-brand-red); color: var(--ie-white); font-family: var(--ie-font-heading); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.ce-steps h3 { margin: 0 0 .3rem; font-size: 1rem; }
.ce-steps p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* License types */
.ce-license-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.ce-license-card {
  padding: 1.3rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ie-white);
  text-align: center; display: flex; flex-direction: column; gap: .7rem;
}
.ce-license-card.ce-license-featured { border-color: var(--ie-brand-red); box-shadow: 0 10px 30px -18px var(--ie-brand-red); }
.ce-license-card h3 { font-family: var(--ie-font-heading); font-weight: 700; font-size: .95rem; margin: 0; }
.ce-license-badge {
  align-self: center; margin: 0; padding: .2rem .65rem; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  background: var(--red-wash); color: var(--ie-brand-red);
}
.ce-license-price { font-family: var(--ie-font-heading); font-weight: 800; font-size: 1.25rem; color: var(--ie-brand-red); margin: 0; line-height: 1.15; }
.ce-license-price small { display: block; font-family: var(--ie-font-body); font-weight: 500; font-size: .72rem; color: var(--ink-faint); text-transform: none; letter-spacing: 0; }
.ce-license-save {
  margin: -.3rem 0 0; padding: .3rem .5rem; border-radius: 6px;
  background: color-mix(in srgb, #1A7F37 12%, var(--ie-white)); color: #1A7F37;
  font-size: .7rem; font-weight: 700; line-height: 1.3;
}
.ce-license-card .btn { margin-top: auto; }

.ce-claims-note {
  margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--ie-light-grey);
  font-size: .85rem; color: var(--ink-soft);
}
.ce-download-note { margin-top: 1.1rem; font-size: .92rem; color: var(--ink-soft); display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .ce-gallery { grid-template-columns: repeat(3, 1fr); }
  .ce-templates { grid-template-columns: repeat(3, 1fr); }
  .ce-steps { grid-template-columns: 1fr; }
  .ce-license-types { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .ce-logo { max-width: 220px; }
  .ce-gallery { grid-template-columns: repeat(2, 1fr); }
  .ce-templates { grid-template-columns: repeat(2, 1fr); }
  .ce-license-types { grid-template-columns: 1fr; }
}
