/* ───────────────────────────────────────────────────────────
   Skedit AI — landing page
   Palette + type mirror the app's design tokens (constants/theme.ts)
   ─────────────────────────────────────────────────────────── */

:root {
  --cream:   #EFEBE3;
  --soft:    #F4F0E7;
  --surface: #FFFFFF;
  --ink:     #14130F;
  --muted:   #8A867C;
  --accent:  #E8704C;
  --hairline: rgba(20, 19, 15, 0.08);
  --shadow-card:  0 18px 50px rgba(20, 19, 15, 0.10);
  --shadow-float: 0 30px 80px rgba(20, 19, 15, 0.28);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Shared type ──────────────────────────────────────────── */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.kicker--light { color: rgba(255, 255, 255, 0.62); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.02;
  font-size: clamp(40px, 6.4vw, 76px);
}
.display em {
  font-style: italic;
  font-weight: 500;
}
.display--md { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; }
.dot { color: var(--accent); }

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 30em;
  margin-top: 22px;
  line-height: 1.62;
}
.lead--sm { font-size: 17px; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn--dark   { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,19,15,0.22); }
.btn--ghost  { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { background: var(--soft); transform: translateY(-2px); }
.btn--pill   { background: var(--ink); color: #fff; padding: 9px 18px; font-size: 14px; }
.btn--pill:hover { transform: translateY(-1px); }
.btn--lg     { padding: 16px 28px; font-size: 16px; }
.is-soon     { cursor: default; opacity: 0.92; }
.is-soon:hover { transform: none; box-shadow: none; }

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  width: 100%;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(239, 235, 227, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
  z-index: -1;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav__brand img { border-radius: 8px; }
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: 4px; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 28px clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero__copy { max-width: 560px; }
.hero h1 { margin-bottom: 4px; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero__trust {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Hero art — overlapping phones */
.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.phone {
  border-radius: 42px;
  background: #0d0c0a;
  padding: 7px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid rgba(20,19,15,0.18);
}
.phone img { border-radius: 36px; width: 100%; }

.phone--main {
  width: 300px;
  transform: rotate(2deg);
  box-shadow: var(--shadow-float);
  z-index: 2;
}
.phone--float {
  position: absolute;
  width: 188px;
  left: -6px;
  bottom: 6px;
  transform: rotate(-7deg);
  z-index: 3;
  box-shadow: var(--shadow-float);
}

/* ─── Value strip ──────────────────────────────────────────── */
.strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.strip i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.7; }

/* ─── Generic section ──────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 128px) 28px;
}
.section__head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }

/* ─── Steps ────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 104px); }
.step {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.step--reverse { direction: rtl; }
.step--reverse > * { direction: ltr; }
.step__text { max-width: 460px; }
.step__num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step__text h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 10px 0 16px;
  letter-spacing: -0.01em;
}
.step__text p { color: var(--muted); font-size: 18px; line-height: 1.62; }

.phone--step { width: 268px; margin: 0 auto; transform: rotate(-1.5deg); }
.step--reverse .phone--step { transform: rotate(1.5deg); }

/* ─── Arabic band ──────────────────────────────────────────── */
.band {
  background: var(--ink);
  color: #fff;
  margin-top: clamp(24px, 4vw, 48px);
}
.band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 116px) 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.band__text { max-width: 520px; }
.band .display { color: #fff; }
.band .display em { color: var(--accent); font-style: italic; }
.band__lead { color: rgba(255,255,255,0.7); font-size: 18px; line-height: 1.62; margin: 22px 0 26px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.band__art { display: flex; justify-content: center; }
.band__art .phone { width: 280px; transform: rotate(2deg); box-shadow: var(--shadow-float); }

/* ─── Feature (goals) ──────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature__art { display: flex; justify-content: center; }
.feature__art .phone { width: 280px; transform: rotate(-2deg); }
.feature__text { max-width: 480px; }

/* ─── Weekly wrap (dark) ───────────────────────────────────── */
.wrap {
  background: #1b1a16;
  color: #fff;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 100%;
}
.wrap > * { padding-block: clamp(64px, 9vw, 116px); }
.wrap__text {
  justify-self: end;
  max-width: 520px;
  padding-left: 28px;
  padding-right: clamp(20px, 4vw, 56px);
  width: 100%;
  box-sizing: content-box;
}
.wrap .display { color: #fff; }
.wrap__lead { color: rgba(255,255,255,0.66); font-size: 18px; line-height: 1.62; margin-top: 22px; }
.wrap__art { display: flex; justify-content: center; padding-right: 28px; }
.phone--dark { width: 270px; transform: rotate(2.5deg); box-shadow: var(--shadow-float); background: #000; }

/* ─── Privacy cards ────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.card p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ─── Final CTA ────────────────────────────────────────────── */
.cta { padding: clamp(72px, 10vw, 140px) 28px; text-align: center; }
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta p { color: var(--muted); font-size: 18px; margin-top: 20px; }
.cta__btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--hairline);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 28px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
}
.footer__brand img { border-radius: 7px; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  font-size: 15px;
  color: var(--muted);
}
.footer__links a:hover { color: var(--ink); }
.footer__copy { font-size: 13px; color: var(--muted); max-width: 40em; }

/* ─── Feature row, image on the right ──────────────────────── */
.feature--reverse .feature__art { order: 2; }

/* ─── Arabic statement band (centered, no phone) ───────────── */
.band--center { text-align: center; }
.band__inner--center { display: block; max-width: 760px; margin: 0 auto; }
.band__lead--center { margin-left: auto; margin-right: auto; max-width: 36em; }
.band__chips {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

/* ─── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero__copy { max-width: 600px; }
  .hero__art { min-height: 480px; margin-top: 12px; }
  .step, .step--reverse, .feature, .band__inner, .wrap {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .step__text, .feature__text, .band__text { max-width: 600px; }
  .feature__art { order: -1; }
  .wrap__text { justify-self: start; padding-right: 28px; }
  .wrap > * { padding-block: 0; }
  .wrap { padding: clamp(56px, 9vw, 96px) 0; gap: 40px; }
  .wrap__art { padding: 0 28px; }
  .cards { grid-template-columns: 1fr; }
  .feature--reverse .feature__art { order: -1; }   /* image first when stacked */
}

@media (max-width: 560px) {
  .nav__links { display: none; }
  .nav { gap: 12px; }
  .hero__art { min-height: 440px; }
  .phone--main { width: 248px; }
  .phone--float { width: 152px; left: 50%; margin-left: -150px; bottom: -8px; }
  .step__text p, .lead, .band__lead, .wrap__lead { font-size: 16px; }
}
