/* Video Edits website — shared styles.
   Colors live in the tokens below; dark mode follows the visitor's system setting. */

:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface2: #F3F1EE;
  --ink: #1C1917;
  --muted: #57534E;
  --line: #E7E5E4;
  --field: #D6D3D1;
  --accent: #E8590C;      /* the app's orange: logo, highlights, large text */
  --btn: #C2410C;         /* darker orange so white button text passes contrast */
  --btn-hover: #9A3412;
  --btn-ink: #FFFFFF;
  --soft: #FFF1E8;
  --ok-bg: #E9F7EF; --ok-ink: #14532D;
  --err-bg: #FDECEC; --err-ink: #8A1C1C;
  --info-bg: #EEF4FB; --info-ink: #1E3A5F;
  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(28, 25, 23, .25);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1C1A19;
    --surface2: #262321;
    --ink: #F5F5F4;
    --muted: #B5AEA8;
    --line: #36322F;
    --field: #4A4542;
    --accent: #FF7A30;
    --btn: #E8590C;
    --btn-hover: #FF7A30;
    --btn-ink: #1A0C04;
    --soft: #2A1A10;
    --ok-bg: #12291C; --ok-ink: #A7F3C5;
    --err-bg: #331414; --err-ink: #FCB4B4;
    --info-bg: #14212F; --info-ink: #B9D4F1;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
html.i18n-pending body { visibility: hidden; }
img, video, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 10px; z-index: 20; }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
.section { padding-block: 48px; }
.section-title { font-size: 28px; margin-bottom: 8px; }
.section-lead { color: var(--muted); font-size: 17px; margin-bottom: 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; }
.nav { display: none; gap: 22px; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; min-height: 44px;
}
.lang-toggle:hover { border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  min-height: 52px; padding: 12px 24px; border-radius: 14px; border: 1px solid transparent;
  background: var(--btn); color: var(--btn-ink);
}
.btn:hover { background: var(--btn-hover); color: var(--btn-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); font-weight: 600; }
.btn-secondary:hover { background: var(--surface2); color: var(--ink); border-color: var(--accent); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 15px; border-radius: 999px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.link-btn { font: inherit; background: none; border: 0; padding: 6px 0; color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; }
.link-btn.muted { color: var(--muted); font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 200px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.pill { display: inline-block; background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.num { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--soft); color: var(--accent); font-weight: 700; font-size: 20px; display: grid; place-items: center; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { flex: none; margin-top: 5px; color: var(--accent); }
.bullets { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Placeholders for the owner's screenshots / demo video (see assets/README.txt) */
.placeholder {
  border: 2px dashed var(--field); border-radius: 14px; background: var(--surface2);
  display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; padding: 10px;
}

/* Hero */
.hero { display: grid; gap: 36px; padding-block: 40px 32px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.2; letter-spacing: -.5px; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.35; }
.hero h1 .hl { color: var(--accent); display: block; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero .btn-row .btn { flex: 1 1 190px; }
.app-mock { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.mock-top { display: flex; gap: 14px; }
.mock-preview { position: relative; flex: 0 0 42%; max-width: 190px; aspect-ratio: 9 / 16; overflow: hidden; }
.mock-preview img, .mock-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mock-caption {
  position: absolute; bottom: 18%; inset-inline: 8px; direction: rtl; text-align: center;
  font-weight: 700; font-size: 15px; line-height: 1.4; color: #fff; background: rgba(0, 0, 0, .6); border-radius: 8px; padding: 4px 6px;
}
.mock-caption span { background: #E8590C; color: #1A0C04; border-radius: 4px; padding: 0 4px; }
.mock-status { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 14px; min-width: 0; }
.mock-status dl { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mock-status dl div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.mock-status dt { color: var(--muted); }
.mock-status dd { margin: 0; font-weight: 500; }
.mock-resolve { margin-top: auto; background: var(--soft); border-radius: 10px; padding: 8px 10px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
html[dir="rtl"] .mock-resolve svg { transform: scaleX(-1); }

/* Timelines */
.timeline { direction: ltr; background: var(--surface2); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.track { display: flex; gap: 3px; height: 22px; }
.track > span { border-radius: 4px; display: block; }
.clip { background: var(--accent); }
.clip-raw { background: var(--muted); opacity: .45; }
.clip-cap { background: #2B6CB0; opacity: .85; }
.clip-broll { background: #F4A261; }
.gap { background: transparent; }
.cut { background: repeating-linear-gradient(-45deg, var(--line) 0 6px, transparent 6px 12px); border: 1px dashed var(--muted); }
.ba { display: flex; flex-direction: column; gap: 20px; }
.ba-row { display: flex; flex-direction: column; gap: 8px; }
.ba-row .track { height: 30px; }
.ba-after .track { width: 66%; }
.demo-video { aspect-ratio: 16 / 9; width: 100%; max-height: 460px; }
.demo-video video { width: 100%; height: 100%; border-radius: 14px; }

/* Steps / features */
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 19px; }
.feature h3 { font-size: 17px; display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.feature h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }
.feature p { color: var(--muted); font-size: 15px; }
.need h3 { font-size: 18px; margin-bottom: 10px; }

/* Pricing */
.price-card { max-width: 560px; margin: 0 auto; border: 2px solid var(--accent); border-radius: 24px; padding: 28px 22px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-amount { font-size: 56px; font-weight: 700; line-height: 1; }
.price-cur { font-size: 22px; font-weight: 600; }
.note { background: var(--surface2); border-radius: 14px; padding: 14px 16px; font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* Final CTA */
.cta { background: var(--ink); color: var(--bg); border-radius: 28px; padding: 44px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta h2 { font-size: clamp(26px, 5vw, 38px); }
.cta p { opacity: .85; font-size: 18px; }
.cta .btn { background: #E8590C; color: #1A0C04; }
.cta .btn:hover { background: #FF7A30; color: #1A0C04; }
.cta .btn-secondary { background: transparent; color: inherit; border-color: currentColor; }
.cta .btn-secondary:hover { background: rgba(127, 127, 127, .15); color: inherit; }
.cta .btn-row { justify-content: center; width: 100%; max-width: 520px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding-block: 24px; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--accent); }

/* Download page */
.dl-head { padding-block: 40px 24px; display: flex; flex-direction: column; gap: 10px; }
.dl-head h1 { font-size: clamp(32px, 6vw, 44px); }
.dl-card { display: flex; flex-direction: column; gap: 16px; }
.dl-card.is-detected { border: 2px solid var(--accent); }
.dl-card .btn { background: var(--surface2); color: var(--ink); border-color: var(--line); min-height: 56px; font-size: 18px; }
.dl-card .btn:hover { border-color: var(--accent); color: var(--ink); }
.dl-card.is-detected .btn { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.dl-card.is-detected .btn:hover { background: var(--btn-hover); }
.dl-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-title h2 { font-size: 24px; }
.detected-badge { display: none; }
.is-detected .detected-badge { display: inline-block; }
.dl-card ol { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.then-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.then-list li { display: flex; gap: 12px; align-items: flex-start; }
.then-list .num { width: 36px; height: 36px; font-size: 16px; }
.phone-note { display: flex; gap: 12px; align-items: flex-start; }

/* Alerts */
.alert { border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.alert-error { background: var(--err-bg); color: var(--err-ink); }
.alert-ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert-info { background: var(--info-bg); color: var(--info-ink); }
.alert a { color: inherit; font-weight: 700; }

/* Buy page */
.buy-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-block: 32px 48px; }
.buy-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.buy-aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.buy-main h1 { font-size: clamp(28px, 5vw, 36px); }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.progress li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.progress li::before { content: ""; height: 6px; border-radius: 99px; background: var(--line); }
.progress li.done, .progress li.current { color: var(--ink); }
.progress li.done::before, .progress li.current::before { background: var(--accent); }
.progress li.current { font-weight: 700; }
.panel { display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: 24px; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--surface2); border-radius: 14px; padding: 5px; }
.tab { font: inherit; font-weight: 700; border: 0; border-radius: 10px; min-height: 44px; background: transparent; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.fields { display: grid; gap: 14px; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--field); border-radius: 12px; padding: 11px 14px; min-height: 48px; width: 100%;
}
.field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--err-ink); }
.hint { font-size: 13px; color: var(--muted); }
.icon-bubble { width: 56px; height: 56px; border-radius: 16px; background: var(--soft); color: var(--accent); display: grid; place-items: center; }
.order-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-block: 1px solid var(--line); padding-block: 16px; }
.order-line strong { font-size: 28px; }
.account-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.account-line b { color: var(--ink); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } html { scroll-behavior: auto; } }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding-block: 40px 56px; display: flex; flex-direction: column; gap: 22px; }
.legal h1 { font-size: clamp(30px, 6vw, 40px); }
.legal h2 { font-size: 21px; margin-top: 8px; }
.draft-banner { background: var(--soft); border: 2px dashed var(--accent); border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.legal p { color: var(--muted); }

/* Larger screens */
@media (min-width: 720px) {
  .wrap { padding-inline: 24px; }
  .section { padding-block: 64px; }
  .section-title { font-size: 32px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .then-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { padding: 26px; }
  .price-card { padding: 36px; }
  .cta { padding: 56px 32px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-block: 72px 56px; }
  .grid-3-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Download choices inside the Buy page: the visitor's platform is the primary button */
.dl-choice.is-detected { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.dl-choice.is-detected:hover { background: var(--btn-hover); color: var(--btn-ink); }
