/* pricing-apple — صفحة الأسعار بلغة أبل (معاينة) */
/* setup */
.setup { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.step + .step { margin-top: 56px; }
.step .ap-body { margin-top: 8px; }
.tiles { margin-top: 10px; }
.plan-badge { margin: 14px 0 0; font-size: var(--ap-caption); font-weight: 600; line-height: 1.33; color: var(--ap-accent); }
.plan-badge + .ap-tile { margin-top: 6px; }
.seg-wrap { margin-top: 20px; }
.ap-seg__btn:disabled { opacity: .42; cursor: not-allowed; }
.seg-note { margin-top: 12px; min-height: 2.7em; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin-top: 12px; }
.spec { padding: 20px 0; border-top: 1px solid var(--ap-hairline); }
.spec:nth-child(-n+3) { border-top: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.spec__val { font-size: 24px; font-weight: 600; line-height: 1.17; color: var(--ap-ink); }
.spec__lbl { margin-top: 2px; font-size: var(--ap-caption); line-height: 1.33; color: var(--ap-ink-2); }
.specs-note { margin-top: 8px; }
.specs-note a { color: var(--ap-accent); text-decoration: none; }
.specs-note a:hover { text-decoration: underline; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--ap-body-reduced); line-height: var(--ap-lh-reduced); }
.checks svg { flex: none; margin-top: 2px; color: var(--ap-ink); }
.step .ap-link { display: inline-block; margin-top: 16px; font-size: var(--ap-body-reduced); }

.ap-summary { top: 116px; background: var(--ap-surface); border-radius: var(--ap-r-card); padding: 28px; box-sizing: border-box; }
.sum__name { margin: 4px 0 0; font-size: 21px; font-weight: 600; line-height: 1.24; }
.sum__price { margin: 20px 0 0; }
.sum__num { font-size: 40px; font-weight: 600; line-height: 1.1; }
.sum__unit { font-size: 14px; color: var(--ap-ink-2); }
.sum__bill { margin: 8px 0 0; font-size: var(--ap-body-reduced); line-height: var(--ap-lh-reduced); }
.sum__save { margin: 2px 0 0; font-size: var(--ap-body-reduced); line-height: var(--ap-lh-reduced); color: var(--ap-ink-2); }
.ap-summary hr { margin: 20px 0; }
.sum__vat { margin: 0 0 16px; font-size: var(--ap-caption); line-height: 1.33; }
.sum__trial { margin: 12px 0 0; text-align: center; }

@media (max-width: 1068px) {
  body.ap { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .setup { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ap-summary {
    position: fixed; top: auto; bottom: 0; inset-inline: 0; z-index: 150; box-sizing: border-box;
    height: calc(72px + env(safe-area-inset-bottom, 0px)); padding: 0 max(16px, 4vw) env(safe-area-inset-bottom, 0px);
    border-radius: 0; background: var(--ap-nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
  }
  .sum__label, .sum__name, .sum__bill, .sum__save, .ap-summary hr, .sum__vat, .sum__trial { display: none; }
  .sum__price { margin: 0; }
  .sum__num { font-size: 28px; }
  .ap-summary .ap-btn--block { width: auto; flex: none; }
}
@media (max-width: 734px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(3) { border-top: 1px solid var(--ap-hairline); }
  .spec:nth-child(-n+2) { border-top: 0; }
  .ap-seg { display: grid; width: 100%; box-sizing: border-box; }
  .ap-seg__btn { padding: 8px 4px; }
}
/* basic options */
.sec-head { max-width: var(--ap-content); }
.sec-head .ap-body { margin-top: 12px; max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ap-gap); margin-top: 48px; }
.opt__name { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.24; }
.opt__who { margin: 4px 0 0; font-size: var(--ap-body-reduced); line-height: var(--ap-lh-reduced); }
.opt__price { margin: 20px 0 0; }
.opt__num { font-size: 28px; font-weight: 600; line-height: 1.14; }
.opt__unit { font-size: 14px; color: var(--ap-ink-2); }
.opt__bill { margin-top: 8px; }
.opt .checks { margin-top: 20px; }
.opt .ap-link { display: inline-block; margin-top: 20px; font-size: var(--ap-body-reduced); }
.cards-note { margin-top: 24px; }
@media (max-width: 734px) { .cards { grid-template-columns: minmax(0, 1fr); margin-top: 32px; } .ap-card { padding: 28px; } }

/* compare */
.tbl-wrap { margin-top: 40px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; min-width: 640px; border-collapse: collapse; }
.tbl th, .tbl td { padding: 16px 12px; text-align: start; vertical-align: middle; border-bottom: 1px solid var(--ap-hairline); font-size: var(--ap-body); line-height: 1.35; font-weight: 400; }
.tbl thead th { font-size: var(--ap-body-reduced); font-weight: 600; border-bottom-color: var(--ap-ink-3); }
.tbl tbody th { font-weight: 600; font-size: var(--ap-body-reduced); width: 28%; }
.tbl td.long { font-size: var(--ap-body-reduced); line-height: var(--ap-lh-reduced); }
.tbl small { font-size: var(--ap-body-reduced); color: var(--ap-ink-2); }
.tbl svg { color: var(--ap-ink); display: block; }

/* price rows */
.prows { margin-top: 40px; max-width: var(--ap-content); border-bottom: 1px solid var(--ap-hairline); }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: start; padding: 24px 0; border-top: 1px solid var(--ap-hairline); }
.prow__name { margin: 0; font-size: var(--ap-body); font-weight: 600; line-height: 1.24; }
.prow__desc { margin: 4px 0 0; font-size: var(--ap-body-reduced); line-height: var(--ap-lh-reduced); color: var(--ap-ink-2); max-width: 640px; }
.prow .ap-link { display: inline-block; margin-top: 8px; font-size: var(--ap-body-reduced); }
.prow__price { font-size: var(--ap-body); font-weight: 400; white-space: nowrap; }
@media (max-width: 734px) { .prow { grid-template-columns: minmax(0, 1fr); } }
/* إلغاء التحديد: بلا باقة ⇒ تختفي الخطوات التالية والملخص/الشريط السفلي */
.needs-plan { transition: opacity var(--ap-t-move) var(--ap-ease); }
.no-plan .needs-plan { display: none; }
.no-plan .ap-summary { display: none; }
.sum__empty { display: none; }
.pick-hint { margin: 10px 0 0; }

.prow { display: flex; gap: 16px; align-items: flex-start; }
.prow > .ico { margin-top: 2px; stroke: var(--ap-ink-2); }
.prow > div:not(.prow__price) { flex: 1; }

/* ---- v b: خيارات الأساسية، الشريط السفلي لا يزاحم زر الهيرو ---- */
.build-h { margin-top: 56px; }
.addgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 12px; }
.addgrid > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ap-hairline); font-size: var(--ap-body-reduced); line-height: var(--ap-lh-reduced); }
.addgrid b { font-weight: 400; color: var(--ap-ink-2); white-space: nowrap; }
.cards-note .ap-link { font-size: inherit; }
.foot { padding-bottom: 24px; }
@media (max-width: 1068px) {
  body.ap { padding-bottom: 0; }
  .addgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-summary { transform: translateY(110%); visibility: hidden; transition: transform var(--ap-t-move) var(--ap-ease), visibility 0s linear var(--ap-t-move); }
  body.bar-on .ap-summary { transform: none; visibility: visible; transition-delay: 0s; }
}
@media (max-width: 734px) { .addgrid { grid-template-columns: minmax(0, 1fr); } .foot { padding-bottom: 24px; } }

.needs-plan { margin-top: 56px; }
.no-plan .needs-plan { margin-top: 0; }

.opt__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 0; }
.opt__links .ap-link { font-size: var(--ap-body-reduced); }
.opt .checks + .opt__links { margin-top: 20px; }

/* خياران فقط بعد إلغاء لويالتي هب */
@media (min-width: 735px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
