/* Home page: hero showcase, proof strip, steps, template gallery, motion and Sarah sections. */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 72px; overflow: hidden;
  background: radial-gradient(70% 60% at 78% 30%, rgba(201, 163, 106, .14), transparent 70%), radial-gradient(60% 50% at 10% 90%, rgba(79, 179, 169, .07), transparent 70%), var(--ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; width: 100%; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
[dir="rtl"] .hero h1 { line-height: 1.3; font-size: clamp(40px, 5.6vw, 80px); }
.hero .lead { margin-top: 22px; max-width: 34em; color: var(--dim); font-size: clamp(17px, 1.5vw, 20px); text-wrap: pretty; }
.hero .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .acts .btn { min-height: 52px; padding: 0 28px; font-size: 16px; }
.hero .note { margin-top: 18px; font-size: 13px; color: var(--faint); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.h2, .h3 { text-wrap: balance; }

/* The showcase: three website cards in 3D. The front card changes brand every few seconds (home.js). */
.show { position: relative; aspect-ratio: 1 / 1; perspective: 1400px; }
.show .deck { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(8deg); transition: transform .9s var(--ease); }
[dir="rtl"] .show .deck { transform: rotateY(16deg) rotateX(8deg); }
.site { position: absolute; inset: 10% 6% 14% 6%; border-radius: 18px; overflow: hidden; background: var(--bg, #fbf9f6); color: var(--fg, #1b1a18);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .9s var(--ease), opacity .9s var(--ease), background-color .6s, color .6s; }
.site.back { transform: translateZ(-160px) translate(14%, -12%); opacity: .5; }
.site.mid { transform: translateZ(-80px) translate(7%, -6%); opacity: .75; }
[dir="rtl"] .site.back { transform: translateZ(-160px) translate(-14%, -12%); }
[dir="rtl"] .site.mid { transform: translateZ(-80px) translate(-7%, -6%); }
.site .bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: 12px; font-weight: 600; }
.site .bar i { width: 24px; height: 24px; border-radius: 8px; background: var(--p); flex: none; }
.site .bar span { margin-inline-start: auto; display: flex; gap: 10px; opacity: .55; font-weight: 400; }
.site .body { padding: 8% 9%; display: grid; gap: 12px; }
.site .eyebrow { font-size: 11px; color: var(--a); }
.site b { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3vw, 40px); line-height: 1.12; }
[dir="rtl"] .site b { line-height: 1.4; }
.site small { font-size: 13px; opacity: .72; max-width: 26em; }
.site .pill { justify-self: start; margin-top: 8px; padding: 9px 16px; border-radius: 999px; background: var(--p); color: var(--pt, #fff); font-size: 12px; font-weight: 600; }
.site .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.site .tiles em { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--soft) center / cover no-repeat; }
/* The front page of the deck is the current template with its sample photos (set by home.js). */
.site.front { background: #111 var(--img) center / cover no-repeat; color: #fff; }
.site.front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, .15)); }
[dir="rtl"] .site.front::before { background: linear-gradient(270deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, .15)); }
.site.front > * { position: relative; }
.site.front .bar span { opacity: .8; }
.site.front .tiles em:nth-child(1) { background-image: var(--t1); }
.site.front .tiles em:nth-child(2) { background-image: var(--t2); }
.site.front .tiles em:nth-child(3) { background-image: var(--t3); }
.show .orbit { position: absolute; inset-inline-end: 2%; bottom: 4%; width: 34%; aspect-ratio: 1; transform: translateZ(60px) rotateX(64deg); transform-style: preserve-3d; pointer-events: none; }
.show .orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--brass); opacity: .7; }
.show .orbit i:nth-child(2) { inset: 18%; border-color: rgba(243, 237, 227, .35); }
.show .orbit i:nth-child(3) { inset: 36%; border: 0; background: radial-gradient(circle at 35% 35%, var(--brass-2), #6b4a22); }
.show figcaption { position: absolute; inset-inline: 0; bottom: -6px; text-align: center; font-size: 12px; color: var(--faint); }
@media (prefers-reduced-motion: no-preference) {
  .show .orbit { animation: orbit 22s linear infinite; }
  @keyframes orbit { to { transform: translateZ(60px) rotateX(64deg) rotateZ(360deg); } }
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 104px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .show { max-width: 520px; width: 100%; margin-inline: auto; aspect-ratio: 5 / 4; }
}

/* Proof strip */
.proof { border-block: 1px solid var(--line); background: var(--ink-2); }
.proof ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 36px; padding: 22px 0; font-size: 15px; color: var(--dim); }
.proof li { display: flex; gap: 10px; align-items: center; }
.proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

/* Steps */
.steps { counter-reset: s; margin-top: 44px; }
.step { counter-increment: s; border-top: 1px solid var(--line); padding-top: 22px; }
.step::before { content: "0" counter(s); display: block; font-family: var(--serif); font-size: 40px; color: var(--brass); line-height: 1; margin-bottom: 16px; }
:lang(ar) .step::before { content: counter(s, arabic-indic); }
.step p { color: var(--dim); font-size: 15px; margin-top: 8px; }
.honest { margin-top: 28px; font-size: 14px; color: var(--faint); max-width: 60ch; }

/* Template gallery */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; margin-top: 40px; }
.tcard { display: grid; gap: 14px; padding: 14px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  transition: border-color .35s var(--ease), transform .35s var(--ease); }
.tcard:hover { border-color: var(--line-2); transform: translateY(-4px); }
.tcard .mini { position: relative; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: var(--bg); color: var(--fg); padding: 16px 18px; display: grid; align-content: start; gap: 8px; }
.tcard .mini .bar { display: flex; gap: 8px; align-items: center; font-size: 11px; font-weight: 600; }
.tcard .mini .bar i { width: 18px; height: 18px; border-radius: 6px; background: var(--p); }
.tcard .mini b { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; margin-top: 12%; }
[dir="rtl"] .tcard .mini b { line-height: 1.45; }
.tcard .mini span.l { font-size: 12px; opacity: .7; }
.tcard .mini em { justify-self: start; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: var(--p); color: var(--pt); font-size: 11px; font-style: normal; font-weight: 600; }
/* Each card shows the template's own sample photo under a dark veil, so the words stay readable. */
.tcard .mini { background: #111; color: #fff; align-content: end; }
.tcard .mini .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tcard .mini::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .05) 38%, rgba(0, 0, 0, .78)); }
.tcard .mini > :not(.shot) { position: relative; z-index: 2; }
.tcard .mini .bar { position: absolute; inset: 14px 18px auto; }
.tcard .mini b { margin-top: 0; }
.tcard .mini .bar i { background: var(--a); }
.tcard .mini span.l { opacity: .85; }
@media (prefers-reduced-motion: no-preference) { .tcard:hover .mini .shot { transform: scale(1.05); } }
.tcard h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; padding-inline: 6px; }
.tcard .meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 6px 6px; font-size: 13px; color: var(--dim); }
.tcard .acts { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 6px 6px; }
.tcard .acts .btn { min-height: 44px; font-size: 14px; padding: 0 18px; }

/* Motion */
.motion { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .motion { grid-template-columns: minmax(0, 1fr); } }
.phone { width: min(300px, 80%); margin-inline: auto; aspect-ratio: 9 / 17; border-radius: 36px; border: 1px solid var(--line-2); background: #14110e; padding: 16px; display: grid; align-content: start; gap: 10px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.phone .ph-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--dim); padding: 6px 4px 10px; }
.phone .dish { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.phone .dish i { aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 35% 30%, #f0c98a, #7a4a2b); }
.phone .dish:nth-child(3) i { background: radial-gradient(circle at 35% 30%, #f5e6c4, #b07a3a); }
.phone .dish:nth-child(4) i { background: radial-gradient(circle at 35% 30%, #ffd6a0, #9c5a2c); }
.phone .dish:nth-child(5) i { background: radial-gradient(circle at 35% 30%, #e8d3b0, #5d3a22); }
.phone .dish b { display: block; font-size: 14px; font-weight: 600; }
.phone .dish small { font-size: 12px; color: var(--faint); }
@media (prefers-reduced-motion: no-preference) {
  .phone.in .dish { animation: slidein .9s var(--ease) both; }
  .phone.in .dish:nth-child(3) { animation-delay: .12s } .phone.in .dish:nth-child(4) { animation-delay: .24s } .phone.in .dish:nth-child(5) { animation-delay: .36s }
  .phone.in .dish i { animation: turn 6s ease-in-out infinite alternate; }
  @keyframes slidein { from { opacity: 0; transform: translateX(40px) scale(.96); } }
  [dir="rtl"] .phone.in .dish { animation-name: slidein-rtl; }
  @keyframes slidein-rtl { from { opacity: 0; transform: translateX(-40px) scale(.96); } }
  @keyframes turn { to { transform: rotate(14deg) scale(1.06); } }
}

/* Sarah */
.sarah { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 760px) { .sarah { grid-template-columns: minmax(0, 1fr); } }
.sarah .media { aspect-ratio: 3 / 4; max-width: 360px; }
.sarah .media img { object-position: 50% 22%; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 17px; min-height: 44px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brass); font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--dim); margin-top: 12px; max-width: 760px; }
.final { text-align: center; display: grid; justify-items: center; gap: 22px; }
.tcard.picked { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
