/* MoeBak Seal tool pages (Seal Check, Seal Foundation, Seal System).
   Loaded on top of each tool's own styles. It adds the site header and footer and gives the
   builders the same look as the marketing site. It never touches the forms, scoring or PDF code.
   Every selector is scoped to body.sk so the tools behave exactly as before without it. */

:root {
  --sk-night: #030213;
  --sk-russia: #F5E8E8;
  --sk-crimson: #53001A;
  --sk-bright: #7A1030;
  --sk-hover: #A3153F;
  --sk-sand: #E0C097;
  --sk-pad: clamp(1rem, 4.5vw, 2.5rem);
  --sk-ease: cubic-bezier(.2, .7, .15, 1);
}

/* ---------- Header (all tools) */
.sk-header {
  position: sticky; top: 0; z-index: 60; color: var(--sk-russia);
  background: rgba(3, 2, 19, .9);
  -webkit-backdrop-filter: saturate(1.5) blur(20px); backdrop-filter: saturate(1.5) blur(20px);
  border-block-end: 1px solid rgba(245, 232, 232, .16);
  font-family: 'Cairo', system-ui, sans-serif; font-size: 15px; line-height: 1.5;
}
.sk-header__in {
  max-width: 78rem; margin: 0 auto; min-height: 4rem; display: flex; align-items: center; flex-wrap: wrap;
  gap: .4rem 1.4rem; padding: .35rem var(--sk-pad); padding-inline-end: calc(var(--sk-pad) + 6.5rem);
}
.sk-brand { display: inline-flex; align-items: center; flex: none; }
.sk-brand img { height: 1.6rem; width: auto; display: block; }
.sk-header a { color: inherit; text-decoration: none; }
.sk-back { color: var(--sk-sand); font-weight: 600; }
.sk-back:hover { text-decoration: underline; text-underline-offset: .3em; }
.sk-nav { display: flex; align-items: center; gap: 1.4rem; margin-inline-start: auto; }
.sk-nav a { opacity: .86; padding-block: .3rem; }
.sk-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .35em; }
html[dir="rtl"] .sk-header { direction: rtl; }
@media (max-width: 40rem) {
  .sk-header__in { padding-block: .55rem; }
  .sk-nav { flex-basis: 100%; margin-inline-start: 0; gap: 1.1rem; font-size: 14px; }
}

/* Language switch lives in the header corner */
body.sk .lang-toggle {
  position: fixed; top: .85rem; inset-inline-end: var(--sk-pad); z-index: 70;
  background: none; border: 1px solid rgba(224, 192, 151, .65); color: var(--sk-sand);
  font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 600; line-height: 1.4;
  padding: .3rem .95rem; border-radius: 999px; cursor: pointer; min-height: 2.25rem;
  transition: background-color .2s, color .2s;
}
body.sk .lang-toggle:hover { background: var(--sk-sand); color: var(--sk-night); border-color: var(--sk-sand); }

/* ---------- Footer (all tools) */
.sk-footer { background: var(--sk-night); color: var(--sk-russia); padding: clamp(2.5rem, 6vw, 4rem) var(--sk-pad) 2rem; font-family: 'Cairo', system-ui, sans-serif; font-size: 15px; line-height: 1.7; }
footer.sk-footer { max-width: none; margin: 0; display: block; border: 0; justify-content: normal; }
.sk-footer__in { max-width: 78rem; margin: 0 auto; }
.sk-footer a { color: var(--sk-sand); }
.sk-footer__logo { display: inline-block; margin-block-end: 1.2rem; }
.sk-footer__logo img { height: 1.5rem; width: auto; display: block; }
.sk-footer__persona { font-family: 'Playfair Display', 'Cairo', serif; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.3; margin: 0 0 1.4rem; }
.sk-footer__persona span { color: var(--sk-sand); }
html[dir="rtl"] .sk-footer__persona { font-weight: 700; }
.sk-footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.sk-footer__fine { margin: 1.8rem 0 0; padding-block-start: 1.1rem; border-block-start: 1px solid rgba(245, 232, 232, .16); font-size: 13px; color: rgba(245, 232, 232, .72); }
html[dir="rtl"] .sk-footer { direction: rtl; }
body.sk footer:not(.sk-footer) { display: none; }

/* ---------- Seal Check: already dark, only layout polish */
body.sk-check header.top { display: none; }
body.sk-check .wrap { padding-top: 2.5rem; }
body.sk-check button.primary { border-radius: 999px; }
.hero-mark a { display: block; }

/* ---------- Builders: re-skin to the site look */
body.sk-builder { background: var(--sk-russia); color: var(--sk-night); }
body.sk-builder .top-bar { display: none; }
body.sk-builder .wrap { max-width: 50rem; padding: clamp(2rem, 6vw, 4rem) var(--sk-pad) clamp(3rem, 7vw, 5rem); }

body.sk-builder .intro h1 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -.015em; }
html[dir="rtl"] body.sk-builder .intro h1 { font-family: 'Cairo', sans-serif; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
body.sk-builder .intro p { font-size: 1.05rem; color: rgba(3, 2, 19, .72); max-width: 38rem; }

body.sk-builder .section-card {
  background: #fff; border: 1px solid rgba(3, 2, 19, .07); border-radius: 12px; padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 0 1.4rem 2.6rem -1.8rem rgba(3, 2, 19, .45); margin-bottom: 1.4rem;
}
body.sk-builder .section-title { font-weight: 400; font-size: 1.45rem; }
html[dir="rtl"] body.sk-builder .section-title { font-weight: 700; }
body.sk-builder .section-num { color: var(--sk-bright); }
body.sk-builder .section-why { font-size: 14px; color: rgba(3, 2, 19, .62); }
body.sk-builder .field label { color: var(--sk-bright); font-size: 13px; }
body.sk-builder .field input, body.sk-builder .field select, body.sk-builder .field textarea {
  background: #fbf6f6; border: 1px solid rgba(3, 2, 19, .16); border-radius: 10px; padding: .7rem .9rem; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
body.sk-builder .field input:focus, body.sk-builder .field select:focus, body.sk-builder .field textarea:focus {
  border-color: var(--sk-bright); box-shadow: 0 0 0 3px rgba(122, 16, 48, .14); outline: none; background: #fff;
}
body.sk-builder .field.unmet input, body.sk-builder .field.unmet select, body.sk-builder .field.unmet textarea { border-color: #c0392b; }
body.sk-builder .checkbox-opt { border-radius: 999px; padding: .45rem 1rem; transition: background-color .2s, border-color .2s; }
body.sk-builder .checkbox-opt:hover { border-color: var(--sk-bright); }

body.sk-builder .prompt-out { background: linear-gradient(160deg, #0b0a24, var(--sk-night) 65%); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(224, 192, 151, .22); padding: 1rem 1.2rem; }
body.sk-builder .copy-btn { border-radius: 999px; padding: .3rem .9rem; }

body.sk-builder .locked-card { border-radius: 12px; background: #efe4e4; border-color: rgba(3, 2, 19, .25); }

body.sk-builder button.primary { background: var(--sk-bright); border-radius: 999px; padding: .8rem 1.7rem; transition: background-color .2s, transform .3s var(--sk-ease); }
body.sk-builder button.primary:hover { background: var(--sk-hover); transform: translateY(-2px); }

/* The download bar used to be a sticky stack of up to eight buttons that covered the form.
   It is now a normal grid at the end of the page. */
body.sk-builder .download-bar {
  position: static; background: none; border: 0; padding: 0; margin-top: 2.6rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: .8rem; align-items: stretch; justify-items: stretch;
}
body.sk-builder .download-bar::before {
  content: "Your downloads"; grid-column: 1 / -1; font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin-bottom: .4rem;
}
html[dir="rtl"] body.sk-builder .download-bar::before { content: "ملفاتك للتنزيل"; font-family: 'Cairo', sans-serif; font-weight: 700; }
body.sk-builder .download-bar button {
  width: 100%; background: var(--sk-night); color: var(--sk-russia); border-radius: 999px; padding: .95rem 1.4rem; font-size: 15px; line-height: 1.35; transition: background-color .2s, transform .3s var(--sk-ease);
}
body.sk-builder .download-bar button:not(:disabled):hover { background: var(--sk-bright); transform: translateY(-2px); opacity: 1; }
body.sk-builder .download-bar #download-btn { background: var(--sk-bright); }
body.sk-builder .download-bar #download-btn:not(:disabled):hover { background: var(--sk-hover); }
body.sk-builder .download-bar button:disabled { opacity: .38; }
body.sk-builder .download-note { grid-column: 1 / -1; max-width: none; text-align: start; font-size: 14px; color: rgba(3, 2, 19, .62); }

@media (max-width: 560px) {
  body.sk-builder .section-card { padding: 1.2rem; }
}
@media print { .sk-header, .sk-footer, body.sk .lang-toggle { display: none; } }

/* ---------- Builder journey: Submit, loading screens, downloads page ---------- */
body.sk-builder .download-bar { display: none !important; }
body.sk-locked { overflow: hidden; }

.sk-submit { margin-top: 2.4rem; display: grid; gap: .8rem; justify-items: start; }
.sk-submit__btn { min-width: min(100%, 20rem); font-size: 1.05rem; }
.sk-submit__btn[disabled] { opacity: .4; cursor: not-allowed; }
.sk-submit__note { margin: 0; font-size: 14px; color: rgba(3, 2, 19, .62); }
html[dir="rtl"] .sk-submit { justify-items: start; }

.sk-overlay {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(40rem circle at 70% 20%, rgba(163, 21, 63, .28), transparent 70%), var(--sk-night);
  color: var(--sk-russia); font-family: 'Cairo', system-ui, sans-serif; text-align: center;
}
.sk-overlay[hidden] { display: none; }
.sk-overlay__box { width: min(100%, 30rem); display: grid; gap: .9rem; justify-items: center; }
.sk-overlay__logo { height: 1.8rem; width: auto; margin-bottom: 1.4rem; opacity: .95; }
.sk-overlay__t { margin: 0; font-family: 'Playfair Display', 'Cairo', serif; font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.15; }
html[dir="rtl"] .sk-overlay__t { font-family: 'Cairo', sans-serif; font-weight: 700; line-height: 1.4; }
.sk-overlay__s { margin: 0; color: rgba(245, 232, 232, .78); font-size: 1.05rem; }
.sk-bar { width: 100%; height: .5rem; border-radius: 999px; background: rgba(245, 232, 232, .16); overflow: hidden; margin-top: 1.2rem; direction: ltr; }
.sk-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--sk-bright), var(--sk-sand)); transition: width .12s linear; }
.sk-overlay__pct { margin: 0; font-size: .95rem; color: var(--sk-sand); font-variant-numeric: tabular-nums; direction: ltr; }

body.sk-results-on .intro,
body.sk-results-on #sections-mount,
body.sk-results-on #locked-mount,
body.sk-results-on #sk-submit { display: none !important; }

.sk-results[hidden] { display: none; }
.sk-results__h { font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .8rem; }
html[dir="rtl"] .sk-results__h { font-family: 'Cairo', sans-serif; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.sk-results__p { margin: 0 0 1.8rem; font-size: 1.05rem; color: rgba(3, 2, 19, .72); max-width: 38rem; }
.sk-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sk-item {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.6rem; align-items: center;
  background: #fff; border: 1px solid rgba(3, 2, 19, .07); border-radius: 12px; padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: 0 1.4rem 2.6rem -2rem rgba(3, 2, 19, .45);
}
.sk-item h3 { margin: 0 0 .5rem; font-family: 'Playfair Display', serif; font-weight: 500; font-size: 1.3rem; line-height: 1.25; }
html[dir="rtl"] .sk-item h3 { font-family: 'Cairo', sans-serif; font-weight: 700; }
.sk-item p { margin: 0 0 .35rem; font-size: .98rem; line-height: 1.65; color: rgba(3, 2, 19, .78); }
.sk-item strong { color: var(--sk-bright); }
@media (max-width: 40rem) { .sk-item { grid-template-columns: 1fr; } .sk-item .btn { width: 100%; } }

.sk-actions { margin-top: 2rem; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 12px; background: var(--sk-night); color: var(--sk-russia); display: grid; gap: .7rem; justify-items: start; }
.sk-all { min-width: min(100%, 22rem); font-size: 1.05rem; }
.sk-all[disabled] { opacity: .6; cursor: progress; }
.sk-all__note, .sk-all__err { margin: 0; font-size: .95rem; color: rgba(245, 232, 232, .78); }
.sk-all__err { color: var(--sk-sand); }
.sk-all__err[hidden] { display: none; }
.sk-row { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.sk-guide { text-align: center; }
.sk-keep { margin: 1.6rem 0 0; font-size: .95rem; color: rgba(3, 2, 19, .66); max-width: 38rem; }
.sk-tail { margin: 1rem 0 0; }
.sk-tail a { color: var(--sk-bright); font-weight: 600; }
body.sk .btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 3.1rem; padding: .6rem 1.8rem;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: 999px;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--sk-ease);
}
body.sk .btn:hover { transform: translateY(-2px); }
body.sk .btn-crimson { background: var(--sk-bright); color: var(--sk-russia); }
body.sk .btn-crimson:hover { background: var(--sk-hover); }
body.sk .btn-sand { background: var(--sk-sand); color: var(--sk-night); }
body.sk .btn-sand:hover { background: var(--sk-russia); }
body.sk .btn-line-dark { border-color: rgba(3, 2, 19, .25); color: var(--sk-night); background: none; }
body.sk .btn-line-dark:hover { border-color: var(--sk-bright); color: var(--sk-bright); }
body.sk .btn[disabled] { transform: none; }
@media (prefers-reduced-motion: reduce) { .sk-bar span { transition: none; } body.sk .btn { transition: none; } }

/* Start here: the four jobs after purchase */
.sk-start { margin: 0 0 2.2rem; padding: 1.4rem 1.4rem 1.1rem; background: #fff; border: 1px solid rgba(3, 2, 19, .12); border-inline-start: 5px solid #7a1030; }
.sk-start__h { margin: 0 0 .4rem; font-size: 1.35rem; }
.sk-start__p { margin: 0 0 1rem; color: rgba(3, 2, 19, .7); max-width: 40rem; }
.sk-start__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sk-job { padding: 1rem 0 0; border-top: 1px solid rgba(3, 2, 19, .1); }
.sk-job h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.sk-job__files { margin: 0 0 .3rem; font-size: .92rem; color: rgba(3, 2, 19, .75); overflow-wrap: anywhere; }
.sk-job__pl { display: block; margin: .6rem 0 .3rem; font-size: .8rem; color: #7a1030; }
.sk-job__prompt { background: #f5e8e8; padding: .8rem 1rem; font-size: .9rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.sk-job__copy { margin-top: .6rem; }
@media (max-width: 480px) { .sk-start { padding: 1.1rem 1rem .9rem; } }
