/* SAZAN — base component styles. Loaded in the editor canvas and on the front
 * end. All direction-sensitive rules use logical properties so RTL and LTR get
 * the same design without a mirrored stylesheet. */

.szn-body { margin: 0; }
.szn-page { position: relative; width: 100%; overflow-x: clip; min-height: 100vh; }
.szn-page *, .szn-page *::before, .szn-page *::after { box-sizing: border-box; }
.szn-el { min-width: 0; }
.szn-page img, .szn-page svg { max-width: 100%; }
.szn-page h1, .szn-page h2, .szn-page h3, .szn-page h4, .szn-page h5, .szn-page h6, .szn-page p, .szn-page ul, .szn-page ol, .szn-page figure, .szn-page blockquote { margin: 0; }
.szn-page a { color: inherit; }
.szn-page :focus-visible { outline: 2px solid var(--szn-accent); outline-offset: 3px; }

.szn-wrap { width: 100%; margin-inline: auto; padding-inline: 24px; }
.szn-wrap--wide { max-width: 1240px; }
.szn-wrap--narrow { max-width: 820px; }
.szn-wrap--full { max-width: none; padding-inline: 0; }

/* ---------- typography ---------- */
.szn-h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.szn-eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--szn-muted); }
[dir="rtl"] .szn-eyebrow { letter-spacing: .04em; }
.szn-lead { font-size: 1.05rem; line-height: 1.9; color: var(--szn-muted); max-width: 62ch; }
.szn-sec-head { display: flex; flex-direction: column; gap: 12px; margin-block-end: 36px; }
.szn-hr { display: block; }
.szn-empty { color: var(--szn-muted); font-size: .9rem; padding: 12px; }

/* ---------- buttons ---------- */
.szn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.szn-btn--sm { padding: 10px 16px; font-size: .85rem; }
.szn-btn--md { padding: 13px 22px; font-size: .92rem; }
.szn-btn--lg { padding: 16px 28px; font-size: 1rem; }
.szn-btn--block { width: 100%; }
.szn-btn--primary { background: var(--szn-accent); color: var(--szn-accent-fg); }
.szn-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.55); }
.szn-btn--outline { background: transparent; color: var(--szn-fg); border-color: var(--szn-border); }
.szn-btn--outline:hover { border-color: var(--szn-fg); }
.szn-btn--ghost { background: transparent; color: var(--szn-fg); }
.szn-btn--ghost:hover { background: var(--szn-surface); }
.szn-btn--light { background: #fff; color: #111; }
.szn-btn__icon { display: inline-flex; align-items: center; }
.szn-btn__icon .szn-svg { width: 1.05em; height: 1.05em; }
[dir="rtl"] .szn-btn--primary .szn-svg, [dir="rtl"] .szn-btn--outline .szn-svg { transform: scaleX(-1); }

/* ---------- icons ---------- */
.szn-ico { display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.szn-ico--sm .szn-svg { width: 18px; height: 18px; }
.szn-ico--md .szn-svg { width: 24px; height: 24px; }
.szn-ico--lg .szn-svg { width: 34px; height: 34px; }
.szn-ico--xl .szn-svg { width: 48px; height: 48px; }

/* ---------- images & media ---------- */
.szn-img { display: block; width: 100%; height: auto; background: var(--szn-surface); }
.szn-img--1-1 { aspect-ratio: 1 / 1; }
.szn-img--4-3 { aspect-ratio: 4 / 3; }
.szn-img--16-9 { aspect-ratio: 16 / 9; }
.szn-img--21-9 { aspect-ratio: 21 / 9; }
.szn-img--3-4 { aspect-ratio: 3 / 4; }
.szn-img--4-5 { aspect-ratio: 4 / 5; }
.szn-img--fit-cover { object-fit: cover; }
.szn-img--fit-contain { object-fit: contain; }
.szn-img--ph {
  display: block; width: 100%; background-image: linear-gradient(135deg, rgba(0,0,0,.06) 25%, transparent 25%, transparent 50%, rgba(0,0,0,.06) 50%, rgba(0,0,0,.06) 75%, transparent 75%);
  background-size: 18px 18px; background-color: var(--szn-surface); min-height: 120px;
}
.szn-cap { font-size: .82rem; color: var(--szn-muted); padding-block-start: 8px; }
.szn-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--szn-radius); overflow: hidden; background: #000; }
.szn-video__el { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.szn-gal { display: grid; gap: 12px; }
.szn-gal--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.szn-gal--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.szn-gal--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.szn-gal__item { margin: 0; }
.szn-gal__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
@media (max-width: 767px) { .szn-gal--3, .szn-gal--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- hero ---------- */
.szn-hero { position: relative; width: 100%; }
.szn-hero--split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.szn-hero--split .szn-hero__media { order: 2; }
[dir="rtl"] .szn-hero--split .szn-hero__media { order: 2; }
.szn-hero--center { text-align: center; align-items: center; }
.szn-hero--center .szn-hero__body { max-width: 760px; margin-inline: auto; align-items: center; }
.szn-hero--image-bg { min-height: 520px; justify-content: flex-end; background-size: cover; background-position: center; }
.szn-hero__media img { width: 100%; border-radius: var(--szn-radius); display: block; }
.szn-hero__body { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.szn-hero__eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--szn-muted); }
[dir="rtl"] .szn-hero__eyebrow { letter-spacing: .03em; }
.szn-hero__title { font-size: clamp(2rem, 1.3rem + 3vw, 4.2rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
[dir="rtl"] .szn-hero__title { line-height: 1.28; letter-spacing: 0; }
.szn-hero__text { font-size: 1.1rem; line-height: 1.9; color: var(--szn-muted); max-width: 54ch; }
.szn-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-block-start: 8px; }
@media (max-width: 900px) { .szn-hero--split { grid-template-columns: 1fr; gap: 28px; } .szn-hero--split .szn-hero__media { order: 0; } }

/* ---------- features ---------- */
.szn-feats { display: grid; gap: 18px; }
.szn-feats--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.szn-feats--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.szn-feats--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.szn-feat { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--szn-border); border-radius: var(--szn-radius); }
.szn-feat__icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: var(--szn-surface); }
.szn-feat__title { font-size: 1.05rem; font-weight: 600; }
.szn-feat__text { font-size: .95rem; line-height: 1.8; color: var(--szn-muted); }
@media (max-width: 900px) { .szn-feats--cols-3, .szn-feats--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .szn-feats { grid-template-columns: 1fr; } }

/* ---------- icon box ---------- */
.szn-ibox__icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: var(--szn-surface); }
.szn-ibox__title { font-size: 1.08rem; font-weight: 600; }
.szn-ibox__text { color: var(--szn-muted); line-height: 1.8; font-size: .95rem; }
.szn-ibox__link { display: inline-flex; color: var(--szn-accent); }

/* ---------- stats ---------- */
.szn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.szn-stat { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-inline-start: 1px solid var(--szn-border); }
.szn-stat__v { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em; }
.szn-stat__l { font-size: .9rem; color: var(--szn-muted); }
@media (max-width: 767px) { .szn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- pricing ---------- */
.szn-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.szn-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border: 1px solid var(--szn-border); border-radius: var(--szn-radius); background: var(--szn-bg); }
.szn-plan--featured { border-color: var(--szn-accent); box-shadow: 0 24px 60px -40px rgba(0,0,0,.5); }
.szn-plan__note { position: absolute; inset-block-start: -12px; inset-inline-start: 24px; background: var(--szn-accent); color: var(--szn-accent-fg); font-size: .72rem; padding: 5px 10px; border-radius: 999px; }
.szn-plan__name { font-size: 1rem; font-weight: 600; color: var(--szn-muted); }
.szn-plan__price { display: flex; align-items: baseline; gap: 6px; }
.szn-plan__amount { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.01em; }
.szn-plan__period { font-size: .85rem; color: var(--szn-muted); }
.szn-plan__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; color: var(--szn-muted); line-height: 1.6; }
.szn-plan__list li { padding-inline-start: 18px; position: relative; }
.szn-plan__list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--szn-accent); }

/* ---------- testimonial / quote ---------- */
figure.szn-el { display: flex; }
.szn-stars { display: inline-flex; gap: 2px; color: var(--szn-accent); }
.szn-tst__text { font-size: 1.12rem; line-height: 1.85; }
.szn-tst__by { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--szn-muted); }
.szn-tst__by strong { color: var(--szn-fg); display: block; font-weight: 600; }
.szn-tst__by em { font-style: normal; }
.szn-tst__avatar { width: 42px; height: 42px; border-radius: 999px; object-fit: cover; }
.szn-quote__text { font-size: 1.3rem; line-height: 1.7; margin: 0; }
.szn-quote__by { color: var(--szn-muted); font-size: .9rem; padding-block-start: 10px; }

/* ---------- logos ---------- */
.szn-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; justify-content: center; opacity: .8; }
.szn-logos__cap { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--szn-muted); text-align: center; margin-block-end: 18px; }
.szn-logos__item img { max-height: 32px; width: auto; filter: grayscale(1); }
.szn-logos__ph { font-size: .95rem; color: var(--szn-muted); }

/* ---------- CTA ---------- */
.szn-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .35; border-radius: inherit; }
.szn-cta__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; align-items: inherit; }
.szn-cta__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); font-weight: 600; line-height: 1.25; }
.szn-cta__text { color: var(--szn-muted); line-height: 1.8; max-width: 58ch; }
.szn-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: inherit; padding-block-start: 6px; }

/* ---------- badge / list / code ---------- */
.szn-badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 500; }
.szn-badge--accent { background: var(--szn-accent); color: var(--szn-accent-fg); }
.szn-badge--neutral { background: var(--szn-surface); color: var(--szn-fg); }
.szn-badge--outline { border: 1px solid var(--szn-border); }
.szn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.szn-list--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .szn-list--cols-2 { grid-template-columns: 1fr; } }
.szn-list__item { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; }
.szn-list__mark { display: inline-flex; flex: 0 0 auto; color: var(--szn-accent); margin-block-start: .2em; }
.szn-list__mark .szn-svg { width: 16px; height: 16px; }
.szn-list--dot .szn-list__item::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; margin-block-start: .6em; }
.szn-list--number { counter-reset: sznli; }
.szn-list--number .szn-list__item { counter-increment: sznli; }
.szn-list--number .szn-list__item::before { content: counter(sznli) "."; color: var(--szn-muted); font-variant-numeric: tabular-nums; }
.szn-pre { background: #0d0d0f; color: #f2f2f2; padding: 20px; border-radius: 14px; overflow: auto; margin: 0; font-size: .88rem; line-height: 1.65; }

/* ---------- FAQ ---------- */
.szn-faq { display: grid; border-block-start: 1px solid var(--szn-border); }
.szn-faq__item { border-block-end: 1px solid var(--szn-border); }
.szn-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; padding: 20px 4px; font: inherit; font-weight: 500; text-align: start; cursor: pointer; color: inherit; }
.szn-faq__sign { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.szn-faq__sign::before, .szn-faq__sign::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 0; width: 14px; height: 1.5px; background: currentColor; transition: transform .2s ease; }
.szn-faq__sign::after { transform: rotate(90deg); }
.szn-faq__q[aria-expanded="true"] .szn-faq__sign::after { transform: rotate(0); }
.szn-faq__a { padding: 0 4px 20px; color: var(--szn-muted); line-height: 1.85; }

/* ---------- tabs ---------- */
.szn-tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; border-block-end: 1px solid var(--szn-border); margin-block-end: 20px; }
.szn-tabs__tab { background: none; border: 0; padding: 12px 16px; font: inherit; font-size: .95rem; color: var(--szn-muted); cursor: pointer; border-block-end: 2px solid transparent; margin-block-end: -1px; }
.szn-tabs__tab[aria-selected="true"] { color: var(--szn-fg); border-block-end-color: var(--szn-accent); }
.szn-tabs__panel { line-height: 1.85; color: var(--szn-muted); }

/* ---------- steps ---------- */
.szn-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.szn-step { display: flex; flex-direction: column; gap: 8px; padding-block-start: 18px; border-block-start: 1px solid var(--szn-border); }
.szn-step__n { font-size: .8rem; color: var(--szn-muted); font-variant-numeric: tabular-nums; }
.szn-step__t { font-size: 1.02rem; font-weight: 600; }
.szn-step__d { font-size: .92rem; line-height: 1.75; color: var(--szn-muted); }

/* ---------- team ---------- */
.szn-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.szn-member__ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; display: block; background: var(--szn-surface); }
.szn-member__n { font-size: 1rem; font-weight: 600; margin-block-start: 10px; }
.szn-member__n a { text-decoration: none; }
.szn-member__r { font-size: .85rem; color: var(--szn-muted); }

/* ---------- form ---------- */
.szn-form { display: grid; gap: 14px; }
.szn-field { display: grid; gap: 6px; font-size: .88rem; }
.szn-field__l { color: var(--szn-fg); font-weight: 500; }
.szn-req { color: #c0392b; font-style: normal; margin-inline-start: 3px; }
.szn-input { font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid var(--szn-border); border-radius: 12px; background: var(--szn-bg); color: var(--szn-fg); width: 100%; }
.szn-input:focus { outline: 2px solid var(--szn-accent); outline-offset: 1px; }
.szn-input[aria-invalid="true"] { border-color: #c0392b; }
.szn-hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; width: 0; }
.szn-form__msg { font-size: .9rem; min-height: 1.2em; }
.szn-form__msg[data-state="ok"] { color: #1e7d45; }
.szn-form__msg[data-state="err"] { color: #c0392b; }

/* ---------- posts ---------- */
.szn-posts { display: grid; gap: 24px; }
.szn-posts--grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.szn-posts--list { grid-template-columns: 1fr; }
.szn-post { display: flex; flex-direction: column; gap: 8px; }
.szn-post__link { text-decoration: none; display: grid; gap: 10px; }
.szn-post__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.szn-post__t { font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.szn-post__d { font-size: .8rem; color: var(--szn-muted); }
.szn-post__e { font-size: .92rem; line-height: 1.75; color: var(--szn-muted); }

/* ---------- lightbox ---------- */
.szn-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.86); display: flex; align-items: center; justify-content: center; padding: 24px; }
.szn-lb img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.szn-lb__close { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

/* ---------- editor-only affordances ---------- */
.szn-editing [data-szn-empty="1"] { min-height: 64px; border: 1px dashed rgba(120,120,120,.55); border-radius: 10px; }
.szn-editing .szn-el { cursor: default; }
.szn-selected { outline: 2px solid #2f6bff !important; outline-offset: -2px; }
.szn-hovered { outline: 1px dashed #2f6bff !important; outline-offset: -1px; }
.szn-drop-target { outline: 2px dashed #16a34a !important; outline-offset: -3px; background: rgba(22,163,74,.06); }
