/* youvyron.com: shared look for the home page and the three app pages. */
@font-face {
  font-family: "Cairo";
  src: url("/brand/fonts/cairo.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #d4af37;
  --gold-bright: #facc15;
  --violet: #7c3aed;
  --blue: #00a3ff;
  --bg: #f3effb;
  --bg-a: #e9e3f5;
  --bg-b: #d2e4f5;
  --bg-end: #e7e0f7;
  --text: #1b0f38;
  --muted: #5a4f7c;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(124, 58, 237, 0.16);
  --ghost: rgba(124, 58, 237, 0.08);
  --ghost-line: rgba(124, 58, 237, 0.28);
  --ghost-ink: #5b21b6;
  --shadow: 0 10px 34px rgba(27, 15, 56, 0.08);
  --accent: #6d28d9;
  --accent-ink: #6d28d9;
  --wash: rgba(124, 58, 237, 0.1);
  color-scheme: light;
}
:root[data-app="funoon"] { --accent: #c9352f; --accent-ink: #b92c27; --wash: rgba(232, 84, 79, 0.1); }
:root[data-app="elamir"] { --accent: #6d28d9; --accent-ink: #6d28d9; --wash: rgba(124, 58, 237, 0.1); }
:root[data-app="keyboard"] { --accent: #1d63d8; --accent-ink: #1a58c2; --wash: rgba(29, 99, 216, 0.1); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b0f38; --bg-a: #3b1d7a; --bg-b: #0b3a5e; --bg-end: #120a26;
    --text: #ede9fe; --muted: #b5acd2;
    --card: rgba(255, 255, 255, 0.05); --line: rgba(255, 255, 255, 0.11);
    --ghost: rgba(124, 58, 237, 0.16); --ghost-line: rgba(167, 139, 250, 0.42); --ghost-ink: #ede9fe;
    --shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
    color-scheme: dark;
  }
  :root:not([data-theme="light"])[data-app="funoon"] { --accent-ink: #ff9a8f; --wash: rgba(255, 138, 128, 0.12); }
  :root:not([data-theme="light"])[data-app="elamir"] { --accent-ink: #c8adff; --wash: rgba(167, 139, 250, 0.14); }
  :root:not([data-theme="light"])[data-app="keyboard"] { --accent-ink: #8dbcff; --wash: rgba(96, 165, 250, 0.14); }
  :root:not([data-theme="light"]):not([data-app]) { --accent-ink: #c8adff; }
}
:root[data-theme="dark"] {
  --bg: #1b0f38; --bg-a: #3b1d7a; --bg-b: #0b3a5e; --bg-end: #120a26;
  --text: #ede9fe; --muted: #b5acd2;
  --card: rgba(255, 255, 255, 0.05); --line: rgba(255, 255, 255, 0.11);
  --ghost: rgba(124, 58, 237, 0.16); --ghost-line: rgba(167, 139, 250, 0.42); --ghost-ink: #ede9fe;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}
:root[data-theme="dark"][data-app="funoon"] { --accent-ink: #ff9a8f; --wash: rgba(255, 138, 128, 0.12); }
:root[data-theme="dark"][data-app="elamir"] { --accent-ink: #c8adff; --wash: rgba(167, 139, 250, 0.14); }
:root[data-theme="dark"][data-app="keyboard"] { --accent-ink: #8dbcff; --wash: rgba(96, 165, 250, 0.14); }
:root[data-theme="dark"]:not([data-app]) { --accent-ink: #c8adff; }

/* One language at a time. Without the script both stay visible. */
html[data-lang="ar"] [data-l="en"],
html[data-lang="en"] [data-l="ar"] { display: none !important; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: "Cairo", "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 75% -10%, var(--bg-a) 0%, transparent 60%),
    radial-gradient(900px 640px at 8% 105%, var(--bg-b) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-end) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 8px;
}
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }

/* Top bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1040px, 100% - 32px);
  margin-inline: auto;
  padding-block: 14px;
}
.bar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text);
  text-decoration: none;
  direction: ltr;
}
.bar-brand svg { width: 30px; height: 23px; }
.bar-tools { display: flex; gap: 8px; margin-inline-start: auto; }
.tool {
  min-height: 40px;
  min-width: 40px;
  padding-inline: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ghost-ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.tool:hover { border-color: var(--ghost-line); }
.tool[hidden] { display: none; }
.tool svg { width: 18px; height: 18px; }
.ico-sun { display: none; }
html[data-shown-theme="dark"] .ico-sun { display: block; }
html[data-shown-theme="dark"] .ico-moon { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #241a05;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.3);
}
.btn-ghost {
  background: var(--ghost);
  border-color: var(--ghost-line);
  color: var(--ghost-ink);
}
.btn-accent { background: var(--accent); color: #fff; }
.btn small { display: block; font-weight: 600; font-size: 0.74rem; opacity: 0.86; }
.btn-stack { flex-direction: column; gap: 0; align-items: center; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Home hero */
.hero { text-align: center; padding-block: 18px 34px; }
.crown { display: inline-block; width: 124px; filter: drop-shadow(0 12px 26px rgba(250, 204, 21, 0.38)); cursor: default; }
.crown svg { width: 100%; height: auto; display: block; }
.wordmark {
  font-size: clamp(3rem, 11vw, 5.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  direction: ltr;
  margin-top: 6px;
}
.wordmark .vyron {
  background: linear-gradient(90deg, var(--violet), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rule { width: 112px; height: 3px; margin: 10px auto 16px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.tagline { font-size: clamp(1.1rem, 3.2vw, 1.5rem); font-weight: 800; }
.tagline .g { color: #9a7a10; }
html[data-shown-theme="dark"] .tagline .g { color: var(--gold-bright); }
.hero .row { justify-content: center; margin-top: 20px; }

/* Sections */
.sec { padding-block: 26px; }
.sec-title { font-size: clamp(1.35rem, 3.6vw, 1.75rem); font-weight: 900; line-height: 1.35; margin-bottom: 6px; }
.sec-lead { color: var(--muted); margin-bottom: 18px; }
.home .sec-title, .home .sec-lead { text-align: center; }

/* Home app cards */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.app-card:hover { transform: translateY(-3px); border-color: var(--ghost-line); }
.app-card img { width: 76px; height: 76px; border-radius: 18px; }
.app-card h3 { font-size: 1.22rem; font-weight: 900; line-height: 1.3; }
.app-card h3 a { color: inherit; text-decoration: none; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.app-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--ghost);
  color: var(--ghost-ink);
  white-space: nowrap;
}
.chip-soon { background: transparent; border: 1px dashed var(--ghost-line); color: var(--muted); }
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}
.card-more { color: var(--accent-ink); }
.card-foot a.priv {
  position: relative;
  z-index: 1;
  color: var(--muted);
  padding-block: 6px;
  text-underline-offset: 3px;
}
.contact-box { text-align: center; }
.contact-box .row { justify-content: center; margin-top: 14px; }

/* App pages */
.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 28px;
  align-items: center;
  padding-block: 18px 22px;
}
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.app-id img { width: 92px; height: 92px; border-radius: 22px; box-shadow: var(--shadow); flex: none; }
.app-id h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); font-weight: 900; line-height: 1.15; }
.app-id .alt { color: var(--muted); font-weight: 700; font-size: 1rem; }
.lead { font-size: 1.1rem; margin-bottom: 18px; }
.soon-note { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.shots { display: flex; gap: 10px; justify-content: center; }
.shots img {
  width: calc((100% - 20px) / 3);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}
.notice {
  background: var(--wash);
  border: 1px solid var(--ghost-line);
  border-inline-start: 5px solid var(--accent);
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 600;
  margin-block: 8px 4px;
}
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}
.feature h3 { font-size: 1.04rem; font-weight: 800; line-height: 1.4; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 0.95rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 8px;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 12px 16px;
  list-style-position: inside;
}
.faq details p { color: var(--muted); padding: 0 16px 14px; }
.help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.help-box {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.help-box h2 { font-size: 1.28rem; font-weight: 900; margin-bottom: 4px; }
.help-box p { margin-bottom: 12px; }
.help-box .email { overflow-wrap: anywhere; direction: ltr; }
.linklist { list-style: none; display: grid; gap: 4px; font-weight: 700; }

/* Footer */
.foot {
  margin-top: 26px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot a { color: var(--muted); }

@media (max-width: 860px) {
  .apps, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps .app-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .app-hero { grid-template-columns: minmax(0, 1fr); }
  .shots { max-width: 480px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .apps, .features, .help { grid-template-columns: minmax(0, 1fr); }
  .app-id img { width: 76px; height: 76px; border-radius: 18px; }
  .row .btn { flex: 1 1 100%; }
  .bar-brand span { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
