/* Lagta brand: projects/lagta-logo/renders/brand.json */
@font-face {
  font-family: "Readex Pro";
  src: url("fonts/readexpro.woff") format("woff");
  font-weight: 160 700;
  font-display: swap;
}
:root {
  --bg: #141414;
  --bg-2: #1d1c1a;
  --line: #34312d;
  --ink: #F5EFE6;
  --muted: #b9b1a5;
  --body: #ddd5ca;
  --red: #FF4D2E;
  --red-dark: #e23c1f;
  --radius: 18px;
  --wrap: 1120px;
  --gutter: max(16px, calc((100vw - var(--wrap)) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Readex Pro", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ink); }
h1, h2, h3 { font-weight: 700; line-height: 1.35; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter);
  background: rgba(20, 20, 20, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand img { width: 74px; height: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.15rem;
  padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 8px 28px rgba(255, 77, 46, .28);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 12px 34px rgba(255, 77, 46, .36); }
.btn:active { transform: translateY(0); }
.btn .price {
  background: rgba(0, 0, 0, .22); border-radius: 999px;
  padding: 2px 12px; font-weight: 600; font-size: 1rem; white-space: nowrap;
}
.btn .price s { opacity: .7; font-weight: 400; font-size: .85em; text-decoration-thickness: 2px; }
.btn-small { font-size: .95rem; padding: 8px 18px; box-shadow: none; }
.launch { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.launch[hidden] { display: none; }

/* Sections */
main > section { padding: 76px var(--gutter); }
main > section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin-bottom: 8px; }
.section-lead { color: var(--muted); margin-bottom: 32px; font-size: 1.05rem; }
.small { color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* Hero */
.hero {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1fr;
  padding-top: 48px !important;
  position: relative; isolation: isolate; overflow: hidden;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: .95rem; margin-bottom: 14px;
}
.rec {
  width: 11px; height: 11px; border-radius: 50%; background: var(--red); flex: none;
  box-shadow: 0 0 0 4px rgba(255, 77, 46, .18);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.2rem); color: #e4ddd2; margin-bottom: 28px; max-width: 34em; }
.cta .pay { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.ig-hint {
  margin-top: 12px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 77, 46, .12); border: 1px solid rgba(255, 77, 46, .35);
  font-size: .92rem;
}
.ig-hint[hidden] { display: none; }
.note { margin-top: 22px; color: var(--muted); font-size: .9rem; }

.hero-media { justify-self: center; width: min(340px, 82vw); position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: -12% -45%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 140, 60, .16), transparent);
}
.viewfinder { position: relative; padding: 18px; }
.viewfinder::before, .viewfinder::after {
  content: ""; position: absolute; width: 46px; height: 46px;
  border: 4px solid var(--ink); pointer-events: none;
}
.viewfinder::before { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.viewfinder::after { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.viewfinder video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius); background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.unmute {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  background: rgba(20, 20, 20, .78); border: 1px solid rgba(245, 239, 230, .25);
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .15s ease;
}
.unmute:hover { background: rgba(20, 20, 20, .92); }
.unmute[hidden] { display: none; }

/* Examples */
.reels { display: grid; gap: 20px; grid-template-columns: 1fr; }
.reels figure { margin: 0; }
.reels video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius); background: #000;
  box-shadow: 0 0 0 1px rgba(245, 239, 230, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .reels figure:hover video { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(245, 239, 230, .12); }
}
.reels figcaption { margin-top: 12px; font-weight: 600; line-height: 1.6; }

/* Steps, shown as a chat with Claude */
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li {
  position: relative;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.step-n {
  position: absolute; top: -13px; inset-inline-end: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
  font-weight: 600; font-size: .9rem;
}
.you {
  align-self: flex-start;
  background: var(--red); color: #fff; font-weight: 700; font-size: 1.2rem;
  padding: 8px 18px; border-radius: 18px; border-start-start-radius: 4px;
  box-shadow: 0 6px 18px rgba(255, 77, 46, .25);
}
.reply {
  color: var(--body);
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--line);
}

/* What you get */
.cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.cards li { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cards h3 { font-size: 1.15rem; margin-bottom: 6px; }
.cards h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-inline-end: 10px; vertical-align: middle; }
.cards p { color: var(--body); }

/* Requirements */
.table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: 0.8fr 1.4fr 1.6fr; gap: 12px; padding: 14px 18px; }
.row + .row { border-top: 1px solid var(--line); }
.row.head { background: var(--bg-2); color: var(--muted); font-size: .9rem; }
.row span:first-child { font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--body); margin-top: 10px; }

/* Final */
.final { text-align: center; background: radial-gradient(520px 300px at 50% 60%, rgba(255, 77, 46, .10), transparent 70%); }
.final h2 { margin-bottom: 24px; }
.final .pay { color: var(--muted); font-size: .92rem; margin-top: 12px; }

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 48px;
  display: grid; gap: 16px; justify-items: start;
}
.foot img { width: 130px; height: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot nav a[href^="mailto"], .foot nav a[href*="instagram"] { direction: ltr; unicode-bidi: isolate; }

/* Phone buy bar */
.buybar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 20, 20, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.buybar.on { transform: none; }
.buybar-name { font-weight: 600; font-size: .95rem; }
.buybar .btn { font-size: 1rem; padding: 10px 18px; box-shadow: none; }

/* Scroll-in motion (only when the script switches it on, and never with reduced motion) */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .cards .reveal:nth-child(2), .motion .steps li:nth-child(2) { transition-delay: .08s; }
.motion .cards .reveal:nth-child(3), .motion .steps li:nth-child(3) { transition-delay: .16s; }
.motion .cards .reveal:nth-child(4) { transition-delay: .24s; }

/* Policies and 404 pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 16px 72px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 24px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-inline-start: 22px; }
.doc a { color: var(--red); }
.lost { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 48px 16px; }
.lost h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.lost p { color: var(--muted); }

/* Wider screens */
@media (min-width: 560px) {
  .reels { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.2fr 0.8fr; }
  .hero-media { justify-self: end; }
  .steps ol { grid-template-columns: repeat(3, 1fr); }
  .reels { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .buybar { display: none; }
}
@media (max-width: 559px) {
  .row { grid-template-columns: 1fr; gap: 2px; }
  .row.head { display: none; }
  .row span:nth-child(2)::before { content: "التلقائي: "; color: var(--muted); font-weight: 400; }
  .row span:nth-child(3)::before { content: "البديل: "; color: var(--muted); font-weight: 400; }
  .btn:not(.btn-small) { font-size: 1.05rem; padding: 13px 22px; }
  .foot { padding-bottom: 96px; }
  /* Phone: the example reels swipe sideways instead of a long stack */
  .reels {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    margin-inline: -16px; padding-inline: 16px; scrollbar-width: none;
  }
  .reels::-webkit-scrollbar { display: none; }
  .reels figure { scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .rec { animation: none; }
  html { scroll-behavior: auto; }
  .buybar, .btn, .reels video { transition: none; }
}
