/* ============================================================
   صفحة الهبوط — هوية خضراء داكنة بطابع تحريري
   ============================================================ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; }

/* ---------- التنقل ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--g-950);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background .25s, border-color .25s;
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-links { display: flex; gap: 24px; flex: 1; justify-content: center; }
.nav-links a { color: #b9cdc4; font-weight: 500; font-size: 14.5px; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav .logo { color: #f3f7f4; }
.nav .logo .logo-mark { background: rgba(255, 255, 255, .08); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-actions .btn { white-space: nowrap; }
.nav .lang-switch { background: transparent; border-color: rgba(255, 255, 255, .18); }
.nav .lang-switch button { color: #b9cdc4; }
.nav .lang-switch button.active { background: var(--gold); color: #fff; }
.nav .btn-ghost { border-color: rgba(255, 255, 255, .22); color: #e6efe9; }
.nav .btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.nav .btn-primary { background: var(--gold); }
.nav .btn-primary:hover { background: #97751f; }

/* عند التمرير بعد البطل: شريط فاتح */
.nav.scrolled { background: #fff; border-color: var(--line); }
.nav.scrolled .logo { color: var(--ink); }
.nav.scrolled .logo .logo-mark { background: var(--g-900); }
.nav.scrolled .nav-links a { color: var(--ink-2); }
.nav.scrolled .nav-links a:hover { color: var(--g-700); }
.nav.scrolled .lang-switch { border-color: var(--line); }
.nav.scrolled .lang-switch button { color: var(--muted); }
.nav.scrolled .lang-switch button.active { background: var(--g-900); color: #fff; }
.nav.scrolled .btn-ghost { border-color: var(--line); color: var(--ink-2); }
.nav.scrolled .btn-primary { background: var(--g-700); }

/* ---------- البطل ---------- */
/* Owner 2026-11-21: the visitor's own name on real resumes, fanned like papers on a desk. */
.hero {
  position: relative; overflow: hidden; overflow: clip;
  background:
    radial-gradient(55% 75% at 24% 46%, rgba(214, 178, 94, .11), transparent 70%),
    linear-gradient(180deg, var(--g-950) 0%, #052c22 100%);
  color: #eef5f1;
  padding: 64px 0 46px;
}
html[dir="ltr"] .hero { background:
    radial-gradient(55% 75% at 76% 46%, rgba(214, 178, 94, .11), transparent 70%),
    linear-gradient(180deg, var(--g-950) 0%, #052c22 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; min-height: 560px; }
.hero-text { min-width: 0; container-type: inline-size; }
.hero-kicker { margin: 0 0 14px; color: var(--gold-soft); font-weight: 700; font-size: 14px; }
.hero-text h1 { font-size: clamp(30px, 9.4cqi, 60px); font-weight: 900; line-height: 1.3; margin: 0 0 16px; color: #f7faf8; }
.hero-headline { display: block; white-space: nowrap; }
html[lang="en"] .hero-text h1 { font-size: clamp(26px, 7.6cqi, 52px); line-height: 1.15; }
.hero-sub { font-size: 17px; color: #b9cdc4; max-width: 34em; margin: 0 0 24px; line-height: 1.8; }

.hero-try { max-width: 520px; margin: 0 0 26px; padding: 16px; border: 1px solid rgba(214, 178, 94, .28); border-radius: 14px; background: rgba(255, 255, 255, .035); }
.hero-try-title { margin: 0 0 10px; color: #f3ead2; font-size: 15px; font-weight: 800; }
.hero-try-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-try-fields label { display: block; min-width: 0; }
.hero-try input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
  background: rgba(2, 24, 18, .55); color: #fff; font: inherit; font-size: 16px; font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.hero-try input::placeholder { color: #7f998e; font-weight: 500; }
.hero-try input:focus { outline: none; border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(214, 178, 94, .25); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-link { color: #e6efe9; font-weight: 700; font-size: 15px; border-bottom: 2px solid rgba(214, 178, 94, .5); padding-bottom: 3px; transition: border-color .15s, color .15s; }
.hero-link:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.hero-trust { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.hero-trust li { display: flex; align-items: center; gap: 8px; color: #8fa89d; font-size: 13.5px; font-weight: 500; }
.hero-trust i { color: var(--gold-soft); font-size: 17px; }

/* The fan of real sheets */
.hero-visual { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.hero-fan { --fan-scale: .36; --fan-step: 64px; --fan-turn: 4deg; --dir: -1; position: relative; width: 100%; height: calc(1123px * var(--fan-scale) + 52px); }
html[dir="ltr"] .hero-fan { --dir: 1; }
.fan-sheet {
  position: absolute; top: 14px; left: 50%; width: calc(794px * var(--fan-scale)); height: calc(1123px * var(--fan-scale));
  margin-left: calc(794px * var(--fan-scale) / -2); overflow: hidden; border-radius: 3px; background: #fff; cursor: pointer;
  box-shadow: 0 26px 46px -28px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .05);
  transform-origin: 50% 100%;
  transform: translateX(calc(var(--pos, 0) * var(--fan-step) * var(--dir))) translateY(calc(var(--abs, 0) * 10px)) rotate(calc(var(--pos, 0) * var(--fan-turn) * var(--dir))) scale(calc(1 - var(--abs, 0) * .08));
  filter: brightness(calc(1 - var(--abs, 0) * .12));
  transition: transform .8s cubic-bezier(.2, .75, .2, 1), filter .8s, opacity .6s;
}
.fan-sheet.is-hidden { opacity: 0; pointer-events: none; }
.fan-sheet.is-front { filter: none; box-shadow: 0 40px 70px -34px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .05); }
.fan-page { position: absolute; top: 0; left: 0; width: 794px; transform: scale(var(--fan-scale)); transform-origin: top left; direction: ltr; pointer-events: none; }
.fan-page .cv-page { margin: 0; box-shadow: none; }
.fan-page > .cv-page ~ .cv-page { display: none; }
/* One opening moment: the sheets leave a single stack, the middle one first. */
.fan-js .hero-fan:not(.is-dealt) .fan-sheet { opacity: 0; transform: translateY(30px) scale(.95); }
.fan-js .hero-fan.is-dealt .fan-sheet { transition-delay: calc(var(--abs, 0) * 90ms), calc(var(--abs, 0) * 90ms), calc(var(--abs, 0) * 90ms); }
.hero-fan.is-dealt.is-settled .fan-sheet { transition-delay: 0s; }
.hero-fan-caption { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.fan-step { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: transparent; color: #e6efe9; font-size: 21px; cursor: pointer; transition: border-color .15s, color .15s; }
.fan-step:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.fan-name { min-width: 130px; padding-bottom: 3px; border-bottom: 1px solid rgba(214, 178, 94, .5); color: #f3ead2; font-size: 15px; font-weight: 700; text-align: center; }
.fan-name:hover { color: var(--gold-soft); }
.fan-step:focus-visible, .fan-name:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
/* A typed name lands like fresh ink. */
mark.live-ink { background: transparent; color: inherit; border-radius: 2px; animation: liveInk 1.5s ease-out; }
@keyframes liveInk { from { background-color: rgba(214, 178, 94, .6); } to { background-color: rgba(214, 178, 94, 0); } }
@media (prefers-reduced-motion: reduce) {
  .fan-sheet { transition: none; }
  .fan-js .hero-fan:not(.is-dealt) .fan-sheet:not(.is-hidden) { opacity: 1; transform: translateX(calc(var(--pos, 0) * var(--fan-step) * var(--dir))) translateY(calc(var(--abs, 0) * 10px)) rotate(calc(var(--pos, 0) * var(--fan-turn) * var(--dir))) scale(calc(1 - var(--abs, 0) * .08)); }
  mark.live-ink { animation: none; }
}

/* ---------- الأقسام ---------- */
.section { padding: 84px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--g-50); color: var(--g-800); border: 1px solid var(--g-100);
  font-size: 13px; font-weight: 800; padding: 6px 16px; border-radius: 8px; margin-bottom: 14px;
}
.premium-tag { background: var(--gold-bg); color: var(--gold); border-color: #ecd9a8; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; margin: 0 0 10px; }
.sec-head p { color: var(--muted); margin: 0; }

/* فلاتر القوالب */
.tpl-filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tpl-filters button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 9px; padding: 8px 22px; font-size: 14px; font-weight: 700; transition: all .15s;
}
.tpl-filters button:hover { border-color: var(--g-600); color: var(--g-700); }
.tpl-filters button.active { background: var(--g-900); color: #fff; border-color: var(--g-900); }
.tpl-filters [data-f="canvas"] i { color: var(--gold, #b08a2e); }
@media(max-width:480px) { .tpl-filters button { padding-inline:12px; } }

.template-eye {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #d7e6df; border-radius: 50%; background: #fff; color: #06352a;
  box-shadow: 0 4px 15px #06352a24; font-size: 22px; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .template-eye:hover { background: #06352a; color: #fff; transform: scale(1.06); }
}
.template-eye:focus-visible, .landing-preview-close:focus-visible { outline: 3px solid #d6b25e; outline-offset: 3px; }
.preview-is-open { overflow: hidden; }
.landing-preview-dialog {
  width: min(960px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid #d7e6df; border-radius: 18px; color: var(--ink); background: #eef3f0;
  box-shadow: 0 24px 100px #001c1570; overflow: hidden;
}
.landing-preview-dialog::backdrop { background: #001c15b8; }
.landing-preview-dialog[open] { animation: previewIn .2s ease-out; }
.landing-preview-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.landing-preview-header > div { flex: 1; min-width: 0; }
.landing-preview-header h2 { margin: 0; font-size: 22px; }
.landing-preview-header p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.landing-preview-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 24px; cursor: pointer; }
.landing-preview-body { max-height: calc(100dvh - 135px); padding: 16px; overflow: auto; overscroll-behavior: contain; direction: ltr; }
.landing-preview-size { margin-inline: auto; }
#landingPreviewHost { width: 794px; transform-origin: top left; }
#landingPreviewHost .cv-page { margin: 0; box-shadow: 0 5px 24px #06352a16; }
@keyframes previewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .landing-preview-dialog[open] { animation: none; } }
@media (max-width: 560px) {
  .landing-preview-header { padding: 12px; gap: 8px; }
  .landing-preview-header h2 { font-size: 19px; }
  .landing-preview-header p { font-size: 12px; }
}

/* المزايا: ورقة مواصفات بدل البطاقات */
.features-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.features-head { position: sticky; top: 110px; }
.features-head h2 { font-size: clamp(28px, 3.3vw, 40px); font-weight: 900; line-height: 1.4; margin: 0 0 12px; }
.features-head p { margin: 0; color: var(--muted); font-size: 16px; }
.features-sheet {
  margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px;
  padding: 10px 36px; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--g-900); border-radius: 4px;
  box-shadow: 0 34px 60px -44px rgba(4, 35, 27, .4);
}
.feature { padding: 24px 0; border-bottom: 1px solid #e8eee9; min-width: 0; }
.feature:nth-last-child(-n+2) { border-bottom: 0; }
.feature dt { display: flex; align-items: center; gap: 10px; margin: 0 0 7px; color: var(--ink); font-size: 17px; font-weight: 800; }
.feature dt i { color: var(--g-700); font-size: 20px; }
.feature dd { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* ---------- المعرض: كل القوالب، والمعاينة تنفتح تحت القالب المختار ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; align-items: start; }
.tpl-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #dfe7e1; border-radius: 12px; background: #fff; scroll-margin-top: 100px; transition: border-color .2s, box-shadow .2s; }
.tpl-card:not([data-template="canvas"]):hover { border-color: #9fbcae; }
.tpl-card[data-selected] { border-color: var(--g-900); box-shadow: 0 0 0 2px var(--g-900); }
.tpl-card:not([data-template="canvas"]) .tpl-thumb { position: relative; flex: none; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; border-bottom: 1px solid #e3ebe6; background: #fff; direction: ltr; }
.tpl-sheet { position: absolute; top: 0; left: 0; width: 794px; transform: scale(var(--sheet-scale, .3)); transform-origin: top left; pointer-events: none; }
.tpl-sheet .cv-page { margin: 0; box-shadow: none; }
.tpl-sheet > .cv-page ~ .cv-page { display: none; }
.tpl-card:not([data-template="canvas"]) .tpl-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.tpl-card-link { color: inherit; }
.tpl-card:not([data-template="canvas"]) .tpl-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tpl-card:not([data-template="canvas"]) .tpl-card-title h3 { margin: 0; overflow: hidden; font-size: 18px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.tpl-card-type { flex: none; padding: 3px 7px; border-radius: 5px; background: #f6f2e8; color: #7c6a3a; font-size: 10.5px; font-weight: 700; }
.tpl-card-type.is-free { color: #2f6a4c; background: #eaf3ed; }
.tpl-card-type.is-hybrid { color: #536480; background: #edf0f5; }
.tpl-card:not([data-template="canvas"]) :is(.tpl-card-description, .tpl-card-features, .template-offer, .ats-learn-link, .tpl-preview-button) { display: none; }
.tpl-card:not([data-template="canvas"]) .tpl-card-bottom { display: flex; align-items: center; }
.tpl-card:not([data-template="canvas"]) .template-price { padding: 0; border: 0; background: none; column-gap: 8px; }
.tpl-card:not([data-template="canvas"]) .template-price strong { font-size: 18px; }
.tpl-card:not([data-template="canvas"]) .template-price del { font-size: 12px; color: #8b9690; }
.tpl-card:not([data-template="canvas"]) .badge-free { padding: 0; border: 0; background: none; color: var(--g-900); font-size: 18px; font-weight: 800; }
.tpl-select { position: absolute; inset: 0; z-index: 2; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.tpl-select:focus-visible { outline: 3px solid #d6b25e; outline-offset: -3px; }
.tpl-card .template-eye { top: 10px; inset-inline-end: 10px; width: 38px; height: 38px; font-size: 19px; }
/* My Canvas keeps its approved full-row card with the studio video; the card (or its name) opens the six designs. */
.tpl-card[data-template="canvas"] { cursor: pointer; }
.tpl-card[data-template="canvas"] .tpl-card-features { list-style: none; padding: 0; display: grid; }
.tpl-card[data-template="canvas"] .tpl-card-features li { display: flex; gap: 7px; align-items: baseline; line-height: 1.55; }
.tpl-card[data-template="canvas"] .tpl-card-features li::before { content: '✓'; flex: none; color: #047857; font-weight: 800; }
.tpl-card[data-template="canvas"] .template-price { column-gap: 8px; row-gap: 1px; padding: 0; border: 0; border-radius: 0; background: none; }
.tpl-card[data-template="canvas"] .template-price del { font-size: 12px; color: #8b9690; }
.tpl-preview-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; min-height: 40px; padding: 7px 12px; border: 1px solid #06352a; border-radius: 8px; background: #06352a; color: #fff; font-size: 12px; font-weight: 700; }
.tpl-preview-button i { font-size: 16px; }
.tpl-preview-button:hover { background: #114b3d; border-color: #114b3d; color: #fff; }
.tpl-preview-button:focus-visible { outline: 3px solid #d6b25e; outline-offset: 3px; }

/* Home page: My Canvas is a card like the others, playing a small studio video; it leads to the studio section.
   (The signed-in gallery keeps its full-row card from canvas-studio-video.css.) */
body.landing .tpl-card[data-template="canvas"] { grid-column: auto; border-radius: 12px; }
body.landing .tpl-card[data-template="canvas"] > .tpl-thumb { position: relative; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; border-bottom: 1px solid #e3ebe6; background: #06352a; }
body.landing .tpl-card[data-template="canvas"] .canvas-studio-video { position: absolute; inset: 0; display: block; height: 100%; max-width: none; margin: 0; background: #06352a; cursor: pointer; }
body.landing .tpl-card[data-template="canvas"] .canvas-studio-video > video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
body.landing .tpl-card[data-template="canvas"] :is(.canvas-studio-video-title, .canvas-studio-video-actions) { display: none; }
body.landing .tpl-card[data-template="canvas"] > .tpl-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
body.landing .tpl-card[data-template="canvas"] .tpl-card-link { grid-column: auto; grid-row: auto; }
body.landing .tpl-card[data-template="canvas"] .tpl-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
body.landing .tpl-card[data-template="canvas"] .tpl-card-title h3 { margin: 0; font-size: 18px; font-weight: 800; }
body.landing .tpl-card[data-template="canvas"] .tpl-card-type { font-size: 10.5px; }
body.landing .tpl-card[data-template="canvas"] :is(.tpl-card-description, .tpl-card-features, .template-offer, .tpl-preview-button) { display: none; }
body.landing .tpl-card[data-template="canvas"] .tpl-card-bottom { grid-column: auto; grid-row: auto; display: flex; flex-direction: row; align-items: center; margin: 0; padding: 0; border: 0; }
body.landing .tpl-card[data-template="canvas"] .template-price { align-self: auto; }
body.landing .tpl-card[data-template="canvas"] .template-price strong { font-size: 18px; }

/* الاستوديو: الفيديو كبير وواضح، والمزايا بأيقونات */
.studio-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.studio-text, .studio-visual { min-width: 0; }
.studio-text h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; margin: 14px 0 14px; line-height: 1.4; }
.studio-text > p { color: var(--muted); margin-bottom: 18px; }
.studio-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.studio-list li { display: flex; align-items: center; gap: 11px; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.studio-list i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ecd9a8; border-radius: 10px; background: var(--gold-bg); color: var(--gold); font-size: 18px; }
.studio-visual { position: relative; }
/* A bigger, framed player keeps the resume text in the video sharp before "watch larger". */
.studio-video .canvas-studio-video { height: auto; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #06352a; box-shadow: 0 40px 70px -46px rgba(4, 35, 27, .7); }
.studio-video .canvas-studio-video > video { height: auto; aspect-ratio: 4 / 3; width: 100%; background: #06352a; }
.studio-video .canvas-studio-video-title { padding-block: 13px; color: #e4eee6; font-size: 14px; }
.studio-video .canvas-studio-video-actions { padding: 10px 16px; border-color: #346051; background: #06352a; }
.studio-video .canvas-studio-video-actions button { min-height: 36px; font-size: 12px; background: #f6f8f3; }

/* While the My Canvas card is chosen, the studio section shows as its details. */
#studio { scroll-margin-top: 76px; }
.studio-link { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin: -6px 0 4px; padding: 10px 16px; border-radius: 12px; background: var(--g-900); color: #eef5f1; font-size: 14px; font-weight: 700; }
.studio-link[hidden] { display: none; }
.studio-link > span { display: inline-flex; align-items: center; gap: 8px; flex: 1; }
.studio-link i { color: var(--gold-soft); font-size: 18px; }
.studio-link [data-studio-back] { min-height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.studio-link .studio-unlink { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: transparent; color: #fff; font-size: 19px; cursor: pointer; }
.studio-link button:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.studio-link button:focus-visible { outline: 3px solid #d6b25e; outline-offset: 2px; }
#studio .studio-inner { border: 2px solid transparent; border-radius: 22px; padding: 8px; transition: border-color .35s, background-color .35s, padding .35s; }
#studio.is-linked .studio-inner { border-color: var(--g-900); background-color: #f6f2e7; padding: 30px; }
.studio-buy { display: grid; gap: 14px; }
.studio-price .template-price { padding: 0; border: 0; background: none; column-gap: 10px; }
.studio-price .template-price strong { font-size: 30px; }
.studio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.studio-buy-button { min-height: 50px; padding: 0 26px; gap: 8px; font-size: 16px; }
.studio-try { color: var(--g-700); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* The six My Canvas designs, shown while the card is linked. */
.studio-designs { grid-column: 1 / -1; margin-top: 18px; padding-top: 28px; border-top: 1px solid #e2dccb; }
.studio-designs[hidden] { display: none; }
.sd-head { margin: 0 0 20px; }
.sd-head h3 { margin: 0 0 4px; font-size: 26px; font-weight: 900; }
.sd-head p { margin: 0; color: var(--muted); }
.sd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.sd-side { display: grid; gap: 20px; min-width: 0; }
.sd-designs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.sd-side .tv-options { margin: 0; }
.sd-side .tv-actions { margin: 0; }

/* الشريط المتحرك */
.ticker { background: var(--g-900); border-block: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.ticker-track { display: flex; width: max-content; white-space: nowrap; padding: 11px 0; animation: tickerMove 36s linear infinite; }
.ticker-group { display: flex; flex: 0 0 auto; width: max-content; min-width: 100vw; align-items: center; justify-content: space-around; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { flex: 0 0 auto; unicode-bidi: isolate; color: #9fb8ad; font-size: 13.5px; font-weight: 700; padding: 0 18px; }
.ticker-item::after { content: '✦'; color: var(--gold); margin-inline-start: 36px; font-size: 11px; }
@keyframes tickerMove { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* كيف تعمل — سكة أفقية */
.how-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.how-rail::before {
  content: ''; position: absolute; top: 29px; inset-inline: 12%;
  border-top: 2px dashed var(--line); z-index: 0;
}
.how-step { text-align: center; padding: 0 10px; position: relative; z-index: 1; }
.how-num {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 16px;
  background: #fff; border: 2px solid var(--g-100);
  display: flex; align-items: center; justify-content: center;
}
.how-num i { font-size: 24px; color: var(--g-700); }
.how-step b {
  display: inline-block; color: var(--gold); font-size: 13px; font-weight: 900;
  letter-spacing: 1px; margin-bottom: 4px;
}
.how-step h3 { margin: 0 0 7px; font-size: 17px; }
.how-step p { margin: 0; color: var(--muted); font-size: 14px; }

/* الأسعار */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { padding: 30px 26px; display: flex; flex-direction: column; position: relative; box-shadow: none; }
.price-card.featured { border: 2px solid var(--g-700); box-shadow: var(--shadow); }
.price-card.studio-price { border-top: 3px solid var(--gold); }
.price-flag {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--g-900); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 16px; border-radius: 99px; white-space: nowrap;
}
html[dir="ltr"] .price-flag { transform: translateX(-50%); }
.price-head { text-align: center; padding-bottom: 18px; border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
.price-head h3 { margin: 0 0 8px; font-size: 17px; color: var(--muted); }
.price-num { font-size: 38px; font-weight: 900; color: var(--ink); }
.price-num small { font-size: 15px; color: var(--muted); font-weight: 700; }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card li { padding-inline-start: 26px; position: relative; font-size: 14.5px; }
.price-card li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--g-600); font-weight: 900; }
.pay-note {
  display: flex; align-items: flex-start; gap: 10px; justify-content: center;
  text-align: start; color: var(--muted); font-size: 13.5px; margin: 28px auto 0; max-width: 760px;
  background: #fff; border: 1px solid var(--line); padding: 13px 18px; border-radius: 10px;
}
.pay-note i { color: var(--gold); font-size: 18px; flex: 0 0 auto; }

/* Shared FAQ styles are loaded from faq.css on the homepage and contact page. */
#ats-faq { scroll-margin-top:90px; }

/* CTA */
.cta-band {
  background: var(--g-950);
  color: #fff; padding: 76px 0; text-align: center; position: relative;
}
.cta-band h2 { font-size: clamp(25px, 3.4vw, 35px); margin: 0 0 12px; font-weight: 900; color: #f7faf8; }
.cta-band p { margin: 0 0 26px; color: #9fb8ad; }

/* التذييل */
.footer { background: var(--g-950); border-top: 1px solid rgba(255, 255, 255, .07); padding: 46px 0; }
.footer .logo { color: #f3f7f4; }
.footer .logo .logo-mark { background: rgba(255, 255, 255, .08); }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-inner p { margin: 0; color: #8fa89d; font-size: 14px; }
.footer-copy { font-size: 12.5px !important; opacity: .75; }

/* حركة الظهور */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- استجابة ---------- */
@media (max-width: 1020px) {
  .features-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .features-head { position: static; text-align: center; }
  .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio-list { grid-template-columns: minmax(0, 1fr); }
  .how-rail { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .how-rail::before { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; min-height: 0; text-align: center; }
  .hero-sub, .hero-try { margin-inline: auto; }
  .hero-try { text-align: start; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-fan { --fan-scale: .32; --fan-step: 46px; }
  /* Phones: the sheets come right after the headline, so a typed name is seen at once. */
  .hero-text { display: contents; }
  .hero-kicker { order: 1; } .hero-text h1 { order: 2; font-size: clamp(24px, 8.4vw, 46px); } .hero-sub { order: 3; }
  .hero-visual { order: 4; } .hero-try { order: 5; } .hero-cta { order: 6; } .hero-trust { order: 7; }
  .hero-sub { margin-bottom: 4px; }
  .studio-inner { grid-template-columns: minmax(0,1fr); }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features-sheet { grid-template-columns: minmax(0, 1fr); padding: 4px 22px; }
  .feature:nth-last-child(2) { border-bottom: 1px solid #e8eee9; }
  .how-rail { grid-template-columns: 1fr; }
  .nav-inner { gap: 8px; padding-inline: 10px; height: 64px; flex-wrap: nowrap; }
  .nav .logo { gap: 5px; font-size: clamp(16px, 4vw, 20px); flex-shrink: 0; }
  .nav .logo-mark { width: 26px; height: 30px; }
  .nav-actions { gap: 4px; }
  .nav-actions .btn { font-size: clamp(11px, 2.9vw, 13px); padding: 8px 6px; min-height: 40px; }
  .nav-actions .btn-ghost { display: inline-flex; order: 1; }
  .nav-actions .btn-primary { order: 2; }
  .nav-actions .lang-switch { order: 3; flex-shrink: 0; }
  .nav .lang-switch button { font-size: 11px; padding: 8px 6px; min-height: 38px; }
  .hero-sub { font-size: 15px; line-height: 1.75; }
  .hero-try { padding: 13px; }
  .hero-try-fields { grid-template-columns: minmax(0, 1fr); }
  .hero-trust { gap: 10px 18px; }
  .hero-fan { --fan-scale: .29; --fan-step: 34px; --fan-turn: 3.5deg; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
}
/* Phones: the headline may wrap, names get the full card width, and the linked section stacks. */
@media (max-width: 860px) {
  .sd-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sd-designs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  #studio.is-linked .studio-inner { padding: 18px; }
  .studio-link { flex-wrap: wrap; }
  .studio-link > span { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  /* Owner 2026-11-21: the headline stays on one line on phones. */
  .hero-headline { white-space: nowrap; }
  html[lang="en"] .hero-text h1 { font-size: clamp(19px, 6.4vw, 34px); }
  .tpl-grid { gap: 14px 12px; }
  .tpl-card .tpl-card-type, body.landing .tpl-card[data-template="canvas"] .tpl-card-type { display: none; }
  .tpl-card:not([data-template="canvas"]) .tpl-card-title h3, body.landing .tpl-card[data-template="canvas"] .tpl-card-title h3 { font-size: 16px; }
  .tpl-card:not([data-template="canvas"]) .template-price strong, body.landing .tpl-card[data-template="canvas"] .template-price strong { font-size: 16px; }
}
@media (max-width: 360px) {
  .hero-fan { --fan-scale: .26; --fan-step: 28px; }
}

/* ======= أدوات التوظيف ======= */
.tools-band { position: relative; }
.tools-feature { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: 44px; align-items: center; max-width: 1000px; margin: 0 auto; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(4, 35, 27, .45); }
.tools-poster { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--g-900, #06352a), var(--g-700, #047857)); isolation: isolate; }
.tools-poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 110%, rgba(214, 178, 94, .38), transparent 60%); z-index: -1; }
.tools-poster-paper { position: absolute; inset: 14% 15% -8% 15%; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 28px 46px -20px rgba(0, 0, 0, .55); transform: rotate(-3deg); transition: transform .6s cubic-bezier(.2, .75, .2, 1); }
.tools-poster-paper img { width: 100%; height: auto; display: block; }
.tools-feature:hover .tools-poster-paper { transform: rotate(-1deg) translateY(-6px); }
.tools-poster-score { position: absolute; top: 14px; inset-inline-end: 14px; display: grid; justify-items: center; gap: 5px; padding: 10px 12px 8px; border-radius: 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 26px -12px rgba(4, 35, 27, .55); }
.tools-ring { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--g-700, #047857) 99%, var(--g-50, #eef7f3) 0); }
.tools-ring > span { width: 62px; height: 62px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; gap: 1px; font-size: 22px; font-weight: 900; color: var(--ink); }
.tools-ring small { font-size: 11px; color: var(--muted); }
.tools-poster-score b { font-size: 12px; color: var(--g-800, #075e45); white-space: nowrap; }
.tools-poster-chip { position: absolute; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; box-shadow: 0 10px 20px -10px rgba(4, 35, 27, .5); white-space: nowrap; }
.tools-poster-chip i { color: var(--g-700, #047857); }
.tools-poster-chip.is-two i { color: #b08a2e; }
.tools-poster-chip.is-one { bottom: 62px; }
.tools-poster-chip.is-two { bottom: 20px; }
.tools-copy { display: grid; gap: 14px; justify-items: start; }
.tools-new { padding: 3px 12px; border-radius: 99px; background: #faf3e0; color: #b08a2e; font-weight: 800; font-size: 13px; }
.tools-copy h3 { margin: 0; font-size: clamp(27px, 3.2vw, 36px); font-weight: 900; }
.tools-copy > p { margin: 0; color: var(--muted); line-height: 1.9; font-size: 16.5px; }
.tools-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.tools-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tools-points i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--g-50, #eef7f3); color: var(--g-700, #047857); font-size: 17px; flex: none; }
.tools-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: 100%; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.tools-price { display: grid; gap: 4px; }
.tools-pack { color: var(--muted); font-size: 13px; }
@media (max-width: 820px) {
  .tools-feature { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 18px; }
  .tools-poster { max-width: 340px; width: 100%; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .tools-poster-paper { transition: none; } }
.tools-offer { margin: 4px 0 0; padding: 8px 12px; font-size: 13px; }
