/* Oyoun Creators — clean product-page style: big type, lots of air, grey bands, one blue accent */
:root {
  --bg: #fbfbfd;
  --band: #f5f5f7;
  --card: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, .1);
  --dark-bg: #000000;
  --dark-fg: #f5f5f7;
  --dark-muted: #a1a1a6;
  --err: #e30000;
  --ok: #1d9e45;
  --nav-bg: rgba(251, 251, 253, .8);
  --font: -apple-system, BlinkMacSystemFont, "SF Arabic", "SF Pro Text", "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --band: #101012;
    --card: #1c1c1e;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --line: #3a3a3c;
    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --accent-soft: rgba(41, 151, 255, .16);
    --dark-bg: #101012;
    --err: #ff453a;
    --ok: #30d158;
    --nav-bg: rgba(22, 22, 23, .8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-in {
  max-width: 1080px; margin: 0 auto; height: 52px;
  display: flex; align-items: center; gap: 28px;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
  font-size: 13px;
}
.brand { color: var(--fg); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; margin-inline-start: auto; }
.nav-links a { color: var(--fg); opacity: .8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-cta {
  background: var(--accent); color: #fff; padding: 4px 14px; border-radius: 980px; font-size: 13px;
}
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; }
@media (max-width: 640px) { .nav-links { display: none; } .nav-cta { margin-inline-start: auto; } }

/* Type */
.eyebrow { margin: 0 0 6px; font-size: 19px; font-weight: 600; color: var(--muted); }
.h2 {
  margin: 0; font-size: clamp(32px, 5.5vw, 56px); line-height: 1.1; font-weight: 700;
  letter-spacing: -.015em; text-wrap: balance;
}
.sub { margin: 14px 0 0; font-size: clamp(19px, 2.2vw, 24px); color: var(--muted); line-height: 1.4; max-width: 34ch; }
.sub.center { margin-inline: auto; }

/* Hero */
.hero { text-align: center; padding-block: 72px 0; overflow: hidden; }
.hero-in { max-width: 1080px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.hero h1 {
  margin: 0; font-size: clamp(48px, 10vw, 96px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em;
}
.lede { margin: 18px auto 0; max-width: 30ch; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.35; color: var(--muted); }
.hero-ctas { margin-top: 28px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 17px; font-weight: 500;
  background: var(--accent); color: #fff; border: 0; border-radius: 980px;
  padding: 11px 24px; min-height: 44px; cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn[disabled] { opacity: .5; cursor: default; }
.link { font-size: 19px; }

/* Phone mockup */
.phone {
  margin: 56px auto 0; width: min(300px, 72vw); aspect-ratio: 9 / 19; max-width: 100%;
  border-radius: 46px; padding: 12px; background: #1d1d1f;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.35), inset 0 0 0 2px #3a3a3c;
  transform: translateY(40px);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 20%, #f2e6d8 0%, #d9c4ad 55%, #9c8064 100%);
  direction: ltr;
}
.rec { position: absolute; top: 22px; left: 18px; color: #fff; font: 600 12px/1 -apple-system, sans-serif; display: flex; align-items: center; gap: 6px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; }
@media (prefers-reduced-motion: no-preference) { .dot { animation: blink 1.2s steps(2, start) infinite; } }
@keyframes blink { to { visibility: hidden; } }
.timer { position: absolute; top: 18px; left: 0; right: 0; text-align: center; color: #fff; font: 600 15px/1 ui-monospace, "SF Mono", monospace; font-variant-numeric: tabular-nums; }
.timer small { opacity: .75; font-weight: 500; }
.grid3 {
  position: absolute; inset: 60px 0 110px;
  background:
    linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px));
}
.product {
  position: absolute; left: 50%; top: 46%; width: 30%; aspect-ratio: 1 / 2.1; transform: translate(-50%, -50%);
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(90deg, #0b5c4a, #138a6d 45%, #0b5c4a);
  box-shadow: 0 20px 30px -10px rgba(0,0,0,.4);
}
.product::before { content: ""; position: absolute; top: -14%; left: 32%; width: 36%; height: 16%; border-radius: 6px 6px 2px 2px; background: #e8e1d6; }
.product::after { content: ""; position: absolute; top: 38%; left: 12%; right: 12%; height: 26%; border-radius: 4px; background: rgba(255,255,255,.85); }
.shutter { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; }
.shutter span { width: 26px; height: 26px; border-radius: 6px; background: #ff3b30; }

/* Bands */
.band { background: var(--band); padding-block: 96px; }
.band.plain { background: var(--bg); }
.tiles { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 720px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { background: var(--card); border-radius: var(--radius); padding: 32px 30px 36px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile-k { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.tile h3 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 17px; }

.dark { background: var(--dark-bg); color: var(--dark-fg); padding-block: 120px; text-align: center; }
.dark-in { display: flex; flex-direction: column; align-items: center; }
.h1-alt { margin: 0; font-size: clamp(40px, 8vw, 80px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.on-dark { color: var(--dark-muted); }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 18px; }
.steps li::before { content: counter(s); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.steps b { font-size: 21px; }
.steps span { color: var(--muted); font-size: 16px; }

.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 21px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--muted); max-width: 60ch; }

/* Apply */
.apply { padding-block: 96px 120px; background: var(--bg); }
.card {
  margin: 40px auto 0; max-width: 680px; background: var(--card);
  border-radius: 28px; padding: 32px clamp(20px, 5vw, 44px) 36px;
  box-shadow: 0 2px 6px rgba(0,0,0,.04), 0 24px 60px -24px rgba(0,0,0,.18);
}
@media (prefers-color-scheme: dark) { .card { box-shadow: none; border: 1px solid var(--line); } }
.progress { height: 4px; border-radius: 4px; background: var(--band); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .35s ease; }
.step-meta { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 26px; font-size: 14px; color: var(--muted); }
.step-meta #stepName { color: var(--fg); font-weight: 600; }

#fields { display: flex; flex-direction: column; gap: 28px; }
.f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.f > .lbl { font-size: 17px; font-weight: 600; }
.f .opt { color: var(--muted); font-weight: 400; font-size: 14px; }
.f .hint { margin-top: -4px; font-size: 14px; color: var(--muted); }
.f .msg { font-size: 14px; color: var(--err); }
.f .msg:empty { display: none; }
.f.bad input[type=text], .f.bad input[type=email], .f.bad input[type=url], .f.bad input[type=tel], .f.bad select { border-color: var(--err); }

.f input[type=text], .f input[type=email], .f input[type=url], .f input[type=tel], .f select {
  width: 100%; font: inherit; font-size: 17px; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; min-height: 52px; appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.f select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: 22px 23px, 17px 23px; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 40px;
}
.f input:focus, .f select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ltr { direction: ltr; text-align: left; }
.phone-row { display: flex; gap: 10px; direction: ltr; }
.phone-row select { width: 120px; flex: none; }
.phone-row input { flex: 1; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 980px; font-size: 15px;
  border: 1px solid var(--line); background: var(--card); transition: all .15s; user-select: none;
}
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); }
.chips input:disabled + span { opacity: .4; cursor: not-allowed; }

.scale { display: flex; flex-direction: column; gap: 14px; }
.scale-row { display: flex; flex-direction: column; gap: 6px; }
.scale-row > span { font-size: 15px; }
.seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--band); border-radius: 10px; padding: 3px; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 7px 2px; font-size: 13px; border-radius: 8px; color: var(--muted); transition: all .15s; }
.seg input:checked + span { background: var(--card); color: var(--fg); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-err { margin-top: 20px; color: var(--err); font-size: 15px; }
.form-err:empty { display: none; }
.nav-btns { margin-top: 32px; display: flex; justify-content: space-between; gap: 12px; }
.nav-btns .btn { min-width: 120px; }

.done { text-align: center; padding: 30px 0 10px; }
.done h3 { margin: 18px 0 8px; font-size: 32px; }
.done p { margin: 0 auto; color: var(--muted); max-width: 36ch; }
.check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); margin: 0 auto; position: relative; }
.check::after { content: ""; position: absolute; left: 25px; top: 18px; width: 18px; height: 32px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }

.foot { background: var(--band); padding-block: 22px; font-size: 12px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card { scroll-margin-top: 72px; }
body { overflow-x: clip; }

.brand img { display: block; height: 30px; width: auto; }
.reqs { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .reqs { grid-template-columns: minmax(0, 1fr); } }
.reqs div { background: var(--band); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.reqs b { font-size: 21px; }
.reqs span { color: var(--muted); font-size: 16px; }
.consent + .hint { margin-top: 0; padding-inline-start: 34px; }
