/* site.css: the app site pages (home, updates). Fonts are the app's own files; nothing is fetched from a third party. */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/amiri-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/amiri-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/amiri-400-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;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/amiri-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/amiri-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/amiri-700-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;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/tajawal-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/tajawal-400-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;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/tajawal-500-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/tajawal-500-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;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/tajawal-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/tajawal-700-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;
}
  :root {
    --paper: #F7F3EA;
    --card: #FFFFFF;
    --line: #E5DFD2;
    --green: #1E6B52;
    --green-soft: #4E9C7C;
    --green-tint: #EAF2EE;
    --ink: #1C1917;
    --muted: #655E58;
    --cta: #1E6B52;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #141312;
      --card: #1E1C1A;
      --line: #35322D;
      --green: #4E9C7C;
      --green-tint: #20302A;
      --ink: #F0EDE6;
      --muted: #A5A09A;
      --cta: #257356;
    }
  }
  :root[data-theme="dark"] {
    --paper: #141312;
    --card: #1E1C1A;
    --line: #35322D;
    --green: #4E9C7C;
    --green-tint: #20302A;
    --ink: #F0EDE6;
    --muted: #A5A09A;
    --cta: #257356;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Tajawal', -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: var(--green); text-decoration: none; }
  .wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

  header { text-align: center; padding: 72px 0 40px; }
  .icon {
    width: 108px; height: 108px; border-radius: 24px;
    box-shadow: 0 10px 34px rgba(30,107,82,0.18);
  }
  h1 { font-family: 'Amiri', serif; font-size: 46px; color: var(--ink); margin-top: 0; }
  .tagline { font-size: 17px; color: var(--green); font-weight: 500; }
  .lede { font-size: 15px; color: var(--muted); max-width: 500px; margin: 14px auto 0; }

  .badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
  .badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 500;
    padding: 11px 20px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--card); color: var(--muted);
  }
  .badge.live { background: var(--cta); border-color: var(--cta); color: #fff; font-weight: 700; }
  .badge.live:hover { filter: brightness(1.08); }
  .badge.web { border-color: var(--cta); color: var(--cta); background: var(--card); font-weight: 700; }
  .badge.web:hover { background: var(--green-tint); }
  .notes { list-style: none; max-width: 560px; margin: 16px auto 0; padding: 0; text-align: center; font-size: 13.5px; color: var(--muted); line-height: 1.75; text-wrap: pretty; }
  .notes li + li { margin-top: 6px; }
  .notes b { color: var(--ink); font-weight: 700; }
  /* FAQ: native disclosure, one card per question */
  .faq { display: grid; gap: 10px; }
  .faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
  .faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: '+'; color: var(--green); font-size: 20px; line-height: 1; flex-shrink: 0; }
  .faq details[open] summary::after { content: '−'; }
  .faq p { margin: 0 0 14px; font-size: 14px; line-height: 1.85; color: var(--muted); text-wrap: pretty; }
  /* features as editorial blocks: text beside one cropped detail, sides alternating */
  .features-editorial { display: grid; gap: 48px; padding-top: 10px; }
  .feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; }
  .feature.reverse { direction: ltr; }
  .feature.reverse > * { direction: rtl; }
  .feature-text h2 { font-family: 'Amiri', serif; font-size: 28px; font-weight: 700; color: var(--ink); margin: 0 0 8px; text-align: start; }
  .feature-text p { margin: 0; font-size: 15px; line-height: 1.95; color: var(--muted); text-align: start; }
  .feature-shot { margin: 0; }
  .feature-shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
  .feature-shot figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: start; }
  @media (max-width: 640px) {
    .feature, .feature.reverse { grid-template-columns: 1fr; direction: rtl; gap: 16px; }
    .features-editorial { gap: 40px; }
  }
  /* the count as an editorial stat, on the app's own ornament */
  .stat { position: relative; text-align: center; padding: 44px 0 36px; }
  .stat::before { content: ''; position: absolute; inset: 0; background: url(/shots/ornament.png) center / 300px 300px no-repeat; opacity: 0.11; pointer-events: none; }   /* one size on every screen */
  .stat > * { position: relative; }
  .stat-num { font-family: 'Amiri', serif; font-size: 68px; line-height: 1; color: var(--ink); }
  .stat-label { font-family: 'Amiri', serif; font-size: 24px; color: var(--green); margin-top: 2px; }
  .stat p { max-width: 520px; margin: 14px auto 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
  /* the quote as a rule-bound passage rather than another card */
  .quote { background: none; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 30px 12px; }
  /* text set to breathe at every width */
  h1, h2 { text-wrap: balance; }
  p, .f span, .lede { text-wrap: pretty; }

  section { padding: 34px 0; }
  .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
  .f {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 14px; padding: 18px;
  }
  .f b { display: block; font-size: 15px; color: var(--green); margin-bottom: 4px; }
  .f span { font-size: 13.5px; color: var(--muted); }

  .quote {
    text-align: center;
    font-family: 'Amiri', serif;
    font-size: 18px; color: var(--ink);
    background: var(--green-tint);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 22px;
  }
  .quote .src { font-family: 'Tajawal', sans-serif; font-size: 12.5px; color: var(--muted); margin-top: 8px; }

  footer {
    border-top: 1px solid var(--line);
    margin-top: 30px; padding: 26px 0 40px;
    text-align: center; font-size: 13.5px; color: var(--muted);
  }
  footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 10px; }
  @media (max-width: 480px) {
    h1 { font-size: 38px; }
    .badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .badge.web { grid-column: 1 / -1; }
    .topbar { padding: 9px 16px; gap: 10px; }
    .nav { gap: 13px; }
    .nav a { font-size: 13px; }
    .badge { justify-content: center; padding: 11px 10px; font-size: 13.5px; }
  }

  /* Screens: the same phone frames, row and arrows as the studio site */
  .close-lede { font-size: 14px; color: var(--muted); margin: 0 0 18px; text-align: start; }
  .shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 2px 20px; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 208px; scroll-snap-align: center; margin: 0; border-radius: 26px; overflow: hidden; border: 5px solid #2A2622; box-shadow: 0 10px 26px rgba(40,30,15,0.30); background: #2A2622; }
  .shot img { display: block; width: 100%; height: auto; border-radius: 21px; }
  .row-arrows { display: flex; gap: 8px; }
  .arrow { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,252,244,0.7), 0 2px 8px rgba(53,48,42,0.15); cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.25s ease; }
  .arrow:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,252,244,0.7), 0 5px 14px rgba(53,48,42,0.22); }
  .arrow[disabled] { opacity: 0.22; pointer-events: none; }
  .no-overflow .row-arrows { display: none; }
  /* What's new: short lists, one card per platform release */
  h2.sec-head, .sec-head { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 12px; font-family: inherit; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .sec-head a { font-size: 13.5px; font-weight: 500; }
  .f .chip { display: inline-block; font-size: 11.5px; font-weight: 500; color: var(--green); background: var(--green-tint); border-radius: 999px; padding: 1px 9px; margin-inline-start: 6px; vertical-align: middle; }
  .f ul { margin: 6px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: 13.5px; }
  .f li { margin: 3px 0; }
  .f li::marker { color: var(--green-soft); }
  .updates .f { margin-bottom: 14px; }
  .updates .f b { font-size: 16px; }
  .back { display: inline-block; margin-top: 8px; font-size: 14px; }
  /* top bar: sticky, blurred, safe-area aware; the same shape as the studio site */
  .topbar-outer {
    position: sticky; top: 0; z-index: 20;
    padding-top: env(safe-area-inset-top, 0px);
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent; transition: border-color 0.18s ease;
  }
  .topbar-outer.is-stuck { border-bottom-color: var(--line); }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 720px; margin: 0 auto; padding: 11px 24px; }
  .brandlink { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 17px; }
  .brandlink img { width: 32px; height: 32px; border-radius: 9px; display: block; }
  .nav { display: flex; gap: 20px; }
  .nav a { color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; padding: 4px 0; }
  .nav a:hover { color: var(--ink); }
  section, footer { scroll-margin-top: 70px; }
  header { padding-top: 64px; }
  .theme-btn {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer;
  }
  .theme-btn:hover { color: var(--ink); border-color: var(--line); }
  .theme-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
  .theme-btn svg { display: none; }
  html:not([data-theme-choice]) .theme-btn .ic-auto, html[data-theme-choice="system"] .theme-btn .ic-auto,
  html[data-theme-choice="light"] .theme-btn .ic-sun, html[data-theme-choice="dark"] .theme-btn .ic-moon { display: block; }
