/* Stitchelo site: the colours of the app (ConstsU: lightColor, darkColor,
   darkerColor, the yellow of the buttons) */
:root {
  --purple: #673ab7;
  --purple-dark: #512da8;
  --purple-darker: #311c63;
  --yellow: #ffc107;
  --white: #ffffff;
  --soft: rgba(255, 255, 255, 0.78);
  --card: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.14);
  --canvas: #eee7e7;
}

/* Cairo (SIL Open Font License), variable 400-800, from Google Fonts: the
   Arabic page */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, Tahoma, sans-serif;
  color: var(--white);
  background: linear-gradient(180deg, #5e35b1 0%, #4527a0 45%, var(--purple-darker) 100%);
  background-attachment: fixed;
  line-height: 1.55;
}

[dir="rtl"] body { font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif; }
[dir="rtl"] .hero h1 { line-height: 1.3; }
[dir="rtl"] .card p, [dir="rtl"] .hero p { font-size: 17px; }

a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* the top bar, as the app bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(69, 39, 160, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 21px; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; background: var(--white); padding: 3px; }
.bar nav { margin-inline-start: auto; display: flex; gap: 18px; align-items: center; font-weight: 600; }
.bar nav a { color: var(--soft); }
.bar nav a:hover { color: var(--yellow); text-decoration: none; }
.lang {
  border: 2px solid var(--yellow); border-radius: 18px; padding: 3px 12px;
  color: var(--yellow) !important;
}

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 64px 0 40px; }
.hero h1 { font-size: 54px; line-height: 1.1; margin: 0 0 10px; font-weight: 800; }
.hero .sub { color: var(--yellow); font-size: 22px; margin-top: 0; margin-bottom: 18px; }
.hero p { color: var(--soft); font-size: 18px; margin: 0 0 28px; max-width: 520px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: #2a1a52; font-weight: 800; font-size: 18px;
  padding: 13px 26px; border-radius: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; }

.note { color: var(--soft); font-size: 14px; margin-top: 12px; }

/* the phone, as the store pictures: yellow frame, app bar, the design */
.phone {
  justify-self: center;
  width: 330px; border: 3px solid var(--yellow); border-radius: 34px;
  background: #4e2aa6; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.phone .appbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #4527a0; border-bottom: 1px solid rgba(0,0,0,0.25); font-weight: 700; font-size: 18px; }
.dots { width: 22px; height: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.dots i { background: var(--yellow); border-radius: 50%; }
.phone .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 18px; font-size: 14px; font-weight: 700; }
.phone .stats b { color: var(--yellow); }
.phone .design { margin: 4px 14px 18px; border-radius: 12px; background: var(--canvas); overflow: hidden; }
.phone .design img { display: block; width: 100%; height: auto; }

/* sections */
section { padding: 46px 0; }
h2 { font-size: 34px; margin: 0 0 6px; text-align: center; font-weight: 800; }
.lead { text-align: center; color: var(--yellow); font-size: 18px; margin: 0 0 32px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px;
}
.card .ic {
  width: 48px; height: 48px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; margin-bottom: 12px;
}
.card .ic svg { width: 26px; height: 26px; stroke: #2a1a52; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--soft); font-size: 15.5px; }

.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.formats span {
  border: 2px solid var(--yellow); color: var(--yellow); border-radius: 20px;
  padding: 4px 14px; font-weight: 700; letter-spacing: 0.5px;
}

.cta { text-align: center; padding: 56px 0 64px; }
.cta p { color: var(--soft); font-size: 18px; margin: 0 0 24px; }

footer { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--soft); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero p { margin-inline: auto; }
  .hero h1 { font-size: 42px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .bar nav a.hide-s { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .phone { width: 290px; }
  h2 { font-size: 28px; }
}
