/* elitesoft — edition pages, /product/<slug>/<edition>/ (inc/edpages.php) */

/* ---------- first screen ---------- */
.edp-hero { padding: calc(var(--top-h) + clamp(28px, 5vw, 64px)) 0 0; background: linear-gradient(180deg, var(--ground-deep), var(--ground)); border-bottom: 1px solid var(--line); }
.edp-hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.edp-hero__kicker { margin: 22px 0 0; color: var(--tungsten); font-size: var(--t-sm); font-weight: 600; }
.edp-hero__title { margin: 8px 0 0; font: 600 var(--t-h1)/0.98 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.edp-hero__lead { margin: 22px 0 0; max-width: 58ch; color: var(--ink-soft); font-size: var(--t-lg); line-height: 1.55; }
.edp-hero__price { margin: 22px 0 0; color: var(--muted); }
.edp-hero__price b { color: var(--ink); font: 600 clamp(26px, 2.4vw, 34px) var(--display); letter-spacing: -0.02em; }
.edp-hero__go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.edp-hero__img { margin: 0; border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); aspect-ratio: 1; }
.edp-hero__img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the four editions: where you are, where else you can go */
.edp-eds { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(32px, 4vw, 52px); padding: 18px 0; border-top: 1px solid var(--line); }
.edp-eds p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.edp-eds ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.edp-eds a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color var(--d-fast) ease, background-color var(--d-fast) ease; }
.edp-eds a[aria-current] { background: var(--tungsten); border-color: var(--tungsten); color: var(--tungsten-ink); }
@media (hover: hover) and (pointer: fine) {
  .edp-eds a:not([aria-current]):hover { border-color: var(--tungsten-line); background: rgba(242, 176, 94, .08); }
}

/* ---------- sections ---------- */
.edp-sec--alt { background: var(--ground-deep); border-block: 1px solid var(--line); }
.edp-eyebrow { margin: 0 0 10px; color: var(--tungsten); font-size: var(--t-sm); font-weight: 600; }
.edp-h2 { margin: 0 0 clamp(28px, 4vw, 48px); max-width: 24ch; text-wrap: balance; }
.edp-h3 { margin: 0; font: 600 clamp(20px, 1.7vw, 26px)/1.2 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.edp-h4 { margin: 0; font: 600 18px/1.3 var(--display); }
.edp-sec p { line-height: 1.6; }
.edp-shot { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); aspect-ratio: 1400 / 788; }
.edp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- tabs (edpage.js); without JavaScript every panel shows with its label ---------- */
.edt__bar { display: flex; gap: 4px; margin-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.edt__bar::-webkit-scrollbar { display: none; }
.edt__tab { flex: none; min-height: 48px; padding: 0 18px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: 600 15px var(--sans); cursor: pointer; transition: color var(--d-fast) ease, border-color var(--d-fast) ease; }
.edt__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tungsten); }
.edt__tab:focus-visible { outline: 2px solid var(--tungsten); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .edt__tab:hover { color: var(--ink); }
}
.edt__label { margin: 0 0 14px; color: var(--tungsten); font-size: var(--t-sm); font-weight: 600; }
.edt__panel + .edt__panel { margin-top: clamp(40px, 5vw, 64px); }
.edt.is-on .edt__label { display: none; }
.edt.is-on .edt__panel + .edt__panel { margin-top: 0; }
.edt.is-on .edt__panel[hidden] { display: none; }
.edt.is-on .edt__panel { animation: edt-in 240ms var(--ease-out); }
@keyframes edt-in { from { opacity: 0; } }

.edp-ov { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.edp-ov__copy p { margin: 14px 0 0; color: var(--ink-soft); font-size: var(--t-lg); }

.edp-ft { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.edp-ft li { padding-top: 18px; border-top: 1px solid var(--line-2); }
.edp-ft p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- new in 2027, why choose it ---------- */
.edp-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.edp-new__item .edp-h3 { margin-top: 18px; font-size: clamp(18px, 1.4vw, 22px); }
.edp-new__item p { margin: 10px 0 0; color: var(--ink-soft); }

.edp-be { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.edp-be__copy { padding-top: 18px; }
.edp-be__copy p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- quote, cloud, requirements ---------- */
.edp-quote { margin: 0 0 clamp(56px, 7vw, 96px); padding-left: clamp(18px, 2vw, 28px); border-left: 2px solid var(--tungsten); }
.edp-quote blockquote { margin: 0; }
.edp-quote p { margin: 0; max-width: 32ch; font: 500 clamp(24px, 2.6vw, 38px)/1.25 var(--display); letter-spacing: -0.02em; }
.edp-quote figcaption { margin-top: 14px; color: var(--muted); font-size: var(--t-sm); }
.edp-inc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.edp-inc li { padding: clamp(22px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.edp-inc p { margin: 12px 0 0; color: var(--ink-soft); }
.edp-sys__t { margin: clamp(40px, 5vw, 64px) 0 16px; }
.edp-sys { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.edp-sys a { color: var(--sky); text-underline-offset: 3px; }

/* ---------- questions ---------- */
.edp-faqw { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.edp-faq details { border-bottom: 1px solid var(--line-2); }
.edp-faq details:first-child { border-top: 1px solid var(--line-2); }
.edp-faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font: 600 18px/1.35 var(--display); cursor: pointer; list-style: none; }
.edp-faq summary::-webkit-details-marker { display: none; }
.edp-faq summary::after { content: "+"; flex: none; color: var(--tungsten); font-size: 24px; line-height: 1; transition: transform var(--d-ui) var(--ease-out); }
.edp-faq details[open] summary::after { transform: rotate(45deg); }
.edp-faq details p { margin: 0 0 22px; max-width: 64ch; color: var(--ink-soft); }

/* ---------- next step ---------- */
.edp-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.edp-cta__box { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(26px, 3vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.edp-cta__box h2, .edp-cta__box p { margin: 0; }
.edp-cta__box p { color: var(--ink-soft); flex: 1; }
.edp-src { margin: 36px 0 0; color: var(--muted); font-size: var(--t-xs); }
.edp-src a, .edp-back a { color: var(--sky); text-underline-offset: 3px; }
.edp-back { margin: 10px 0 0; }

@media (max-width: 900px) {
  .edp-hero__in, .edp-ov, .edp-faqw { grid-template-columns: 1fr; }
  .edp-hero__img { max-width: 520px; }
  .edp-be, .edp-inc, .edp-cta { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .edt.is-on .edt__panel { animation: none; }
  .edp-faq summary::after { transition: none; }
}

/* ---------- pages made of blocks (render_edpage_blocks) ---------- */
.edp-hero__img--wide { aspect-ratio: 4 / 3; }
.edp-intro { margin: -12px 0 clamp(24px, 3vw, 40px); max-width: 68ch; color: var(--ink-soft); font-size: var(--t-lg); }
.edp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.edp-stats li { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.edp-stats b { color: var(--tungsten); font: 600 clamp(30px, 3vw, 44px)/1 var(--display); letter-spacing: -0.02em; }
.edp-stats span { font-weight: 600; }
.edp-stats small { color: var(--muted); font-size: var(--t-sm); }
.edp-tblw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.edp-tbl { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--t-sm); }
.edp-tbl th, .edp-tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.edp-tbl thead th { color: var(--muted); font-weight: 600; background: var(--surface-2); }
.edp-tbl tbody tr:last-child th, .edp-tbl tbody tr:last-child td { border-bottom: 0; font-weight: 700; color: var(--tungsten); }
.edp-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.edp-quotes figure { margin: 0; height: 100%; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--tungsten); border-radius: var(--r-lg); }
.edp-quotes blockquote { margin: 0; }
.edp-quotes p { margin: 0; line-height: 1.6; }
.edp-quotes figcaption { margin-top: 14px; color: var(--muted); font-size: var(--t-sm); }
.edp-quotes figcaption b { color: var(--ink); }
.edp-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.edp-shot--free { aspect-ratio: auto; }
.edp-shot--free img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.edp-shot--free figcaption { padding: 10px 12px; color: var(--ink-soft); font-size: var(--t-sm); }
.edp-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.edp-list li { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.edp-cards .edp-shot img { object-fit: cover; }
