/* AmberSplashApps website - shared by every page */

/* Inter, self-hosted (nothing loaded from Google: no visitor data shared, no cookie banner).
   One variable file covers weights 400-700; Latin characters. Licence: SIL Open Font License 1.1 (fonts/README.txt). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
}
  :root {
    /* colours of the live isitaki / isiziba sites (brand blue + green stay in the wordmark only) */
    --navy: #0A1826;
    --page: #274B68;     /* page background, as on the live sites */
    --glow: #3A6790;
    --card: #0F2436;     /* boxes, as on the live sites */
    --border: #4E77A3;   /* box borders, as on the live sites */
    --amber: #F2A93B;
    --text: #E9EEF2;
    --muted: #8FA6B8;    /* the live sites' grey */
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body {
    background: var(--page);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, sans-serif;
    line-height: 1.55;
    overflow-x: clip;   /* clip (not hidden) so the sticky menu keeps working */
  }
  a { color: var(--amber); }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

  /* ---- site menu (same look as today's rounded navy bar) ---- */
  .menu {
    position: sticky; top: 12px; z-index: 10;
    margin: 12px auto 0; max-width: 1120px; padding: 0 16px;
  }
  .menu nav {
    display: flex; align-items: center; width: fit-content; margin: 0 auto;
    background: rgba(10, 24, 38, .92);
    border: 1.5px solid var(--border); border-radius: 999px;
    padding: 6px;
    backdrop-filter: blur(6px);
  }
  .menu nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
  .menu nav li a {
    display: block; padding: 8px 16px; border-radius: 999px;
    color: var(--text); text-decoration: none; font-weight: 500;
  }
  .menu nav li a:hover { background: var(--page); }
  .menu nav li a[aria-current="page"] { background: var(--amber); color: var(--navy); }
  .menu-btn { display: none; background: none; border: 0; color: var(--text); font-size: 26px; padding: 2px 10px; cursor: pointer; }

  /* ---- top (same layout as the social image) ---- */
  .hero {
    position: relative; overflow: hidden;
    margin-top: -60px; padding: 100px 0 36px;
    background: radial-gradient(ellipse 60% 70% at 62% 60%, var(--glow) 0%, var(--page) 70%);
  }
  .hero .splash {
    position: absolute; left: -120px; top: -110px; width: 500px; pointer-events: none;
  }
  .hero .text {
    position: relative; margin-left: auto; width: min(400px, 100%);   /* right edge lines up with the app cards */
    display: flex; flex-direction: column; align-items: center; text-align: center;
  }
  .hero h1 { margin: 0; width: 100%; }
  .hero h1 img { display: block; width: 100%; height: auto; }
  .tagline { color: #FFFFFF; font-size: clamp(24px, 3vw, 27px); font-weight: 700; margin: 12px 0 0; letter-spacing: -.3px; }
  .sub { font-size: clamp(13px, 1.6vw, 14px); font-weight: 500; color: var(--muted); margin: 6px 0 0; }

  /* ---- sections ---- */
  section { padding: 64px 0 0; }
  h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.2px; color: #FFFFFF; }
  .lead { color: var(--text); margin: 0 0 28px; font-size: 17px; }

  .apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .app {
    background: var(--card); border: 1.5px solid var(--border); border-radius: 22px;
    padding: 24px; display: flex; flex-direction: column;
  }
  .app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }   /* icon + name + descriptor = one group, same level in every card */
  a.app-head { align-self: flex-start; text-decoration: none; color: inherit; }   /* the group links to the app page, like "More ›" */
  a.app-head:hover h3 { color: #FFFFFF; }
  .app-head img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
  .app h3 { margin: 0; font-size: 22px; color: var(--amber); }   /* app names amber, as in the apps (S29) */
  .descriptor { margin: 0; color: var(--amber); font-weight: 500; font-size: 15px; }
  .app p.line { margin: 0 0 20px; color: var(--text); flex: 1; }
  .app-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .app-foot .more { align-self: flex-end; }
  .badges { display: flex; align-items: center; gap: 20px; }   /* clear space: 1/4 badge height each, not overlapping = 1/2 height */
  .badge img { height: 40px; display: block; -webkit-user-select: none; user-select: none; }   /* Apple rule: never below 40 px; no Safari Live Text cursor on the badge words */
  .badge img.play { height: 41px; margin: -1px 0; }   /* same visible height as Apple's badge (both brand rules) */
  .soon {
    align-self: flex-start; margin: 0 0 14px; padding: 3px 10px; border-radius: 999px;
    border: 1.5px solid var(--amber); color: var(--amber); font-weight: 700; font-size: 12px; letter-spacing: .4px;
  }
  .more { color: var(--amber); font-weight: 700; text-decoration: none; white-space: nowrap; }
  .more:hover { color: #FFFFFF; }

  .why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .why div { border-top: 2px solid var(--amber); padding-top: 14px; }
  .why h3 { margin: 0 0 6px; font-size: 17px; color: #FFFFFF; }
  .why p { margin: 0; color: var(--text); font-size: 15px; }

  .contact {
    margin-top: 0; background: var(--card); border: 1.5px solid var(--border); border-radius: 22px;
    padding: 28px; text-align: center;
  }
  .contact p { margin: 0; color: var(--text); }
  .contact a.mail { display: inline-block; margin-top: 10px; font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; }
  .contact a.mail:hover { color: var(--amber); }

  footer.wrap { padding-top: 40px; padding-bottom: 32px; color: var(--muted); font-size: 14px; text-align: center; }
  footer a { color: var(--muted); }

  /* ---- phones ---- */
  @media (max-width: 820px) {
    .apps { grid-template-columns: 1fr; }
    .why { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) {
    .menu nav { margin: 0 0 0 auto; backdrop-filter: none; }   /* blur would make the dropdown measure against the small ☰ pill */
    .menu-btn { display: block; }
    .menu nav ul {
      display: none; position: absolute; left: 16px; right: 16px; top: 58px;
      flex-direction: column; background: var(--navy); border: 1.5px solid var(--border); border-radius: 22px; padding: 8px;
    }
    .menu.open nav ul { display: flex; }
    .hero { padding: 90px 0 28px; }
    .hero .splash { width: 280px; left: -90px; top: -70px; }
    .hero .text { margin: 70px auto 0; width: min(340px, 100%); }
    .why { grid-template-columns: 1fr; }
  }

  /* ---- app pages (layout of the live isitaki site) ---- */

  /* top bar: name | tagline | icon, side by side (stacked on phones) */
  .app-hero {
    display: flex; align-items: center; gap: 40px;
    margin-top: 24px; padding: 10px 28px 10px 60px;
    background: var(--card); border: 2px solid var(--border); border-radius: 15px;
  }
  .app-hero .name h1 { margin: 0; font-size: 64px; line-height: 1.05; color: var(--amber); letter-spacing: -.5px; }
  .app-hero .name .descriptor { color: var(--muted); font-size: 16px; margin: 0 0 6px 3px; }
  .app-tagline { margin: 0; color: var(--muted); font-weight: 700; font-size: 24px; line-height: 1.2; }
  .app-tagline span { display: block; }
  .app-hero img.icon { margin-left: auto; width: 72px; height: 72px; border-radius: 16px; }

  .narrow { max-width: 1120px; margin: 0 auto; }
  .intro { padding-top: 28px; text-align: center; }
  .intro p { font-size: 20px; line-height: 1.45; margin: 0; }
  .intro .motto { color: var(--amber); font-weight: 700; }
  .get-row { display: flex; justify-content: center; gap: 24px; margin-top: 36px; }   /* 1/2 of the 48 px badge height */
  .get-row .badge img { height: 48px; }
  .get-row .badge img.play { height: 49px; margin: -1px 0; }
  .intro .caption { text-align: center; color: var(--amber); font-size: 18px; margin: 24px 0 0; }

  /* amber divider above every section; same gap above and below it */
  .rule { border-top: 2px solid var(--amber); margin-top: 28px; padding-top: 28px; }
  .rule h2, .promise h2 { color: var(--amber); font-size: 28px; text-transform: uppercase; text-align: center; margin: 0 0 20px; }
  .feature > p, .rule > p { font-size: 18px; line-height: 1.4; margin: 0 0 20px; }
  .feature img { display: block; width: min(480px, 100%); height: auto; margin: 0 auto; }

  .promise { text-align: center; }
  .promise p { margin: 0; }

  .video { text-align: center; }
  .video video { width: min(306px, 100%); height: auto; border-radius: 26px; display: block; margin: 0 auto; background: #000; }

  .get { text-align: center; }
  .get h2 .appname { display: block; text-transform: none; }
  .get p { margin: 0 0 4px; }

  .privacy-note { text-align: left; }
  .privacy-note h3 { color: var(--amber); font-size: 20px; margin: 0 0 6px; }
  .privacy-note p { font-size: 16px; margin: 0 0 6px; }
  .privacy-note a { font-weight: 700; text-decoration: none; }
  [id] { scroll-margin-top: 80px; }   /* jumps land below the sticky menu */

  @media (max-width: 640px) {
    .app-hero { flex-direction: column; gap: 10px; padding: 20px 16px; text-align: center; }
    .app-hero .name .descriptor { margin: 2px 0 0; }
    .app-hero img.icon { margin: 0; order: -1; }
    .app-hero .name h1 { font-size: 48px; }
    .app-tagline { font-size: 20px; }
    .intro p { font-size: 18px; }
    .get-row { gap: 21px; }
    .get-row .badge img { height: 42px; }
    .get-row .badge img.play { height: 43px; }
  }

  /* ---- policy pages ---- */
  .policy { max-width: 800px; }
  .policy .back { margin: 28px 0 0; font-weight: 700; }
  .policy .back a { text-decoration: none; }
  .policy h1 { margin: 16px 0 0; font-size: 40px; line-height: 1.1; color: var(--amber); }
  .policy-app { margin: 6px 0 0; color: var(--muted); font-weight: 500; }
  .policy-box { margin-top: 24px; background: var(--card); border: 2px solid var(--border); border-radius: 15px; padding: 28px 32px; }
  .policy-box h2 { color: var(--amber); font-size: 20px; margin: 26px 0 6px; }
  .policy-box p { margin: 0 0 10px; }
  .policy-intro { font-size: 18px; }
  .policy-date, .policy-note { color: var(--muted); font-size: 15px; }
  .policy-note { margin-top: 26px !important; font-style: italic; }
  @media (max-width: 640px) {
    .policy h1 { font-size: 32px; }
    .policy-box { padding: 20px 18px; }
  }

  /* ---- "Other apps by AmberSplashApps" on app pages (same cards as the home page) ---- */
  .others h2 img.wordmark { display: block; width: min(285px, 68%); height: auto; margin: 14px auto 6px; }
  .apps.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; text-align: left; }
  .family { margin: 0 0 10px; color: var(--text); }
  @media (max-width: 820px) { .apps.two { grid-template-columns: 1fr; } }
  .feature img.square { width: min(760px, 100%); }   /* isiziba: iPad + iPhone pictures are square */
  .intro .soon-big {   /* coming-soon page: the COMING SOON pill, larger */
    display: inline-block; margin: 0 0 20px; padding: 6px 18px; border-radius: 999px;
    border: 2px solid var(--amber); color: var(--amber); font-weight: 700; font-size: 18px; letter-spacing: 1px;
  }
