/* Ting — sau-app.com. One stylesheet for the landing page and the legal pages.
   Black and white like the app icon; the only colour is the kicker's gold
   and the app's own accents inside the product illustrations. */
:root {
  --bg: #000;
  --surface: #0c0c0d;
  --surface-2: #151517;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, 0.68);
  --ink-3: rgba(255, 255, 255, 0.46);
  --gold: #f3d08f;
  --live: #ff2d55;
  --me: #f23c57;
  --friend: #3d8bff;
  --radius: 28px;
  --max: 1160px;
  --font: 'Inter', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
html[lang='ar'] { --font: 'IBM Plex Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }

[data-l] { display: none; }
html[lang='ar'] [data-l='ar'], html[lang='en'] [data-l='en'] { display: revert; }
.hidden { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ── Header ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { direction: ltr; display: inline-flex; align-items: center; gap: 10px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.3px; }
.logo img { width: 28px; height: auto; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--ink-2); }
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink);
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); cursor: pointer;
}
.lang:hover { background: rgba(255, 255, 255, 0.1); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  background: #fff; color: #000; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.97); }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid var(--line-strong); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 12px; }
}

/* ── Type ───────────────────────────────────────────────────────────────── */
.kicker { color: var(--gold); font-weight: 600; font-size: 15px; letter-spacing: 0.2px; margin: 0 0 14px; }
.display { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 0; }
html[lang='ar'] .display { letter-spacing: 0; line-height: 1.2; }
.h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0; }
html[lang='ar'] .h2 { letter-spacing: 0; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin: 18px 0 0; max-width: 560px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(40% 36% at 72% 34%, rgba(255, 255, 255, 0.13), transparent 70%),
    radial-gradient(34% 30% at 14% 18%, rgba(150, 156, 168, 0.12), transparent 70%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 92%);
  mask-image: linear-gradient(#000 55%, transparent 92%);
}
html[dir='rtl'] .hero::before { transform: scaleX(-1); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.hero-copy { padding-bottom: 24px; }
.store { display: inline-block; margin-top: 36px; }
.store img { height: 54px; width: auto; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { padding-bottom: 0; }
  .hero .lead { margin-inline: auto; }
}

/* ── Phone ──────────────────────────────────────────────────────────────── */
.phone {
  position: relative; width: min(340px, 78vw); aspect-ratio: 440 / 956; margin: 0 auto;
  border-radius: 56px; padding: 11px;
  background: linear-gradient(145deg, #2c2c2f, #0d0d0e 40%, #1d1d20);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 40px 120px -30px rgba(255, 255, 255, 0.14), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; background: #050607; display: flex; flex-direction: column; }
.island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 31%; height: 30px; border-radius: 20px; background: #000; z-index: 3; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0; font: 600 14px 'Inter', sans-serif; direction: ltr; height: 44px; }
.status i { display: inline-block; width: 24px; height: 11px; border-radius: 3px; border: 1.5px solid rgba(255, 255, 255, 0.5); position: relative; }
.status i::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #fff; border-radius: 1px; }

/* The welcome, drawn in HTML (it follows the page language). */
.welcome { flex: 1; display: flex; flex-direction: column; padding: 0 16px 20px; position: relative;
  background: radial-gradient(60% 34% at 50% 30%, rgba(255, 255, 255, 0.1), transparent 70%), #050607; }
.welcome .mark { flex: 1; display: grid; place-items: center; }
.welcome .mark img { width: 34%; }
.welcome .k { color: var(--gold); font-weight: 600; font-size: 11px; text-align: center; margin: 0 0 6px; }
.welcome h3 { font-size: 21px; line-height: 1.2; text-align: center; margin: 0 0 18px; font-weight: 700; }
.welcome .pill { height: 38px; border-radius: 19px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; font-weight: 600; margin-top: 9px; }
.welcome .pill.apple { background: #fff; color: #000; }
.welcome .pill.google { background: #131314; border: 1px solid #8e918f; color: #e3e3e3; }
.welcome .pill.mail { border: 1px solid rgba(255, 255, 255, 0.22); }
.welcome .pill svg { width: 14px; height: 14px; flex: none; }
.welcome .fine { font-size: 9.5px; color: rgba(226, 233, 240, 0.46); text-align: center; margin-top: 12px; }

/* ── Features (bento) ───────────────────────────────────────────────────── */
.section { padding: 110px 0; }
.section.tight { padding: 80px 0; }
@media (max-width: 640px) { .section { padding: 72px 0; } }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  padding: 30px; min-height: 360px; display: flex; flex-direction: column;
}
.tile h3 { font-size: 24px; letter-spacing: -0.02em; margin: 0; }
html[lang='ar'] .tile h3 { letter-spacing: 0; }
.tile p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; max-width: 420px; }
.tile .art { margin-top: auto; padding-top: 28px; }
.span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; }
@media (max-width: 960px) { .span-4, .span-3, .span-2 { grid-column: span 6; } .tile { min-height: 0; } }

/* Chat art: Snapchat-style lines — me red, friend blue. */
.chat { display: grid; gap: 14px; max-width: 460px; }
.chat .who { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.chat .line { border-inline-start: 2px solid; padding-inline-start: 10px; font-size: 15px; }
.chat .me .who { color: var(--me); } .chat .me .line { border-color: var(--me); }
.chat .fr .who { color: var(--friend); } .chat .fr .line { border-color: var(--friend); }
.chat .ping { font-weight: 800; letter-spacing: 0.5px; }
.chat .snap { display: inline-flex; align-items: center; gap: 8px; }
.chat .snap b { width: 12px; height: 12px; border-radius: 3px; background: var(--me); display: inline-block; }

/* Space art */
.space { background: #0a0a0b; border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.space .top { display: flex; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 5px; background: var(--live); color: #fff; font: 700 11px 'Inter', sans-serif; padding: 3px 8px; border-radius: 6px; direction: ltr; }
.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.space .title { font-weight: 700; font-size: 17px; margin: 12px 0 16px; }
.people { display: flex; gap: 14px; }
.person { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--ink-2); }
.av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 18px 'Inter', sans-serif; color: rgba(255, 255, 255, 0.92); }
.av.talk { box-shadow: 0 0 0 2px #0a0a0b, 0 0 0 4px #fff; animation: talk 1.6s ease-in-out infinite; }
@keyframes talk { 50% { box-shadow: 0 0 0 2px #0a0a0b, 0 0 0 5px rgba(255, 255, 255, 0.55); } }
.c1 { background: linear-gradient(135deg, #b0643c, #6e3219); } .c2 { background: linear-gradient(135deg, #3b6fd1, #1f3f86); }
.c3 { background: linear-gradient(135deg, #8b5cf6, #4c2a9e); } .c4 { background: linear-gradient(135deg, #10a37f, #0b5e4a); }

/* Live art */
.golive { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden;
  background: radial-gradient(70% 90% at 30% 20%, #3a3a40, #0b0b0c 70%); border: 1px solid var(--line); }
.golive .live { position: absolute; top: 14px; inset-inline-start: 14px; }
.golive .host { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.golive .host .av { width: 76px; height: 76px; font-size: 26px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 12px 40px rgba(0, 0, 0, 0.5); }
.golive .hearts { position: absolute; bottom: 14px; inset-inline-end: 16px; display: grid; gap: 6px; }
.golive .hearts span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; font-size: 12px; }
.golive .call { position: absolute; bottom: 14px; inset-inline-start: 14px; display: flex; gap: 8px; }
.golive .call span { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: grid; place-items: center; }
.golive .call span.end { background: var(--live); }
.golive .call svg { width: 18px; height: 18px; }

/* Clips art */
.clips { display: flex; gap: 10px; justify-content: center; }
.clip { width: 30%; aspect-ratio: 9 / 16; border-radius: 16px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.clip:nth-child(1) { background: linear-gradient(170deg, #26262a, #0b0b0c); transform: translateY(14px); }
.clip:nth-child(2) { background: linear-gradient(170deg, #3a3a3f, #111113); }
.clip:nth-child(3) { background: linear-gradient(170deg, #202024, #0a0a0b); transform: translateY(14px); }
.clip::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-40%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent rgba(255, 255, 255, 0.85); }

/* Communities art */
.comm { display: grid; gap: 10px; }
.comm .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.comm .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; }
.comm .row b { font-size: 14px; } .comm .row small { display: block; color: var(--ink-3); font-size: 12px; }
.comm .join { margin-inline-start: auto; font-size: 12px; font-weight: 700; background: #fff; color: #000; border-radius: 999px; padding: 6px 12px; }

/* Posts art */
.post { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.post .by { display: flex; align-items: center; gap: 10px; }
.post .by .av { width: 36px; height: 36px; font-size: 14px; }
.post .by b { font-size: 14px; } .post .by small { color: var(--ink-3); font-size: 12px; }
.post p { color: var(--ink); font-size: 15px; margin: 10px 0 12px; }
.post .tag { color: var(--gold); }
.post .acts { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; direction: ltr; }
.post .acts span { display: inline-flex; align-items: center; gap: 5px; }
.post .acts svg { width: 16px; height: 16px; }

/* ── Made here ──────────────────────────────────────────────────────────── */
.made { position: relative; text-align: center; padding: 140px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.made::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 60% at 50% 50%, rgba(255, 255, 255, 0.08), transparent 70%); }
.made .wrap { position: relative; }
.made .mark { width: 72px; margin: 0 auto 34px; }
.made .lead, .final .lead { margin-inline: auto; }

/* ── Safety ─────────────────────────────────────────────────────────────── */
.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.safety .tile { min-height: 0; }
.safety .ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; margin-bottom: 22px; }
.safety .ic svg { width: 22px; height: 22px; }
.safety h3 { font-size: 20px; }
@media (max-width: 860px) { .safety { grid-template-columns: 1fr; } }

/* ── Final call ─────────────────────────────────────────────────────────── */
.final { text-align: center; padding: 120px 0 130px; }
.final .mark { width: 96px; margin: 0 auto 30px; }
.final .store { margin-top: 30px; }

/* ── Open in Ting (a shared link, opened without the app) ──────────────── */
.open-card {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 30; max-width: 460px; margin-inline: auto;
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: rgba(20, 20, 22, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.open-card .icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.open-card b { display: block; font-size: 15px; } .open-card small { color: var(--ink-2); font-size: 13px; }
.open-card .btn { margin-inline-start: auto; }

/* ── Legal pages ────────────────────────────────────────────────────────── */
.page-head { padding: 72px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
html[lang='ar'] .page-head h1 { letter-spacing: 0; line-height: 1.3; }
.page-head p { color: var(--ink-2); font-size: 18px; margin: 14px 0 0; max-width: 640px; }
.meta { color: var(--ink-3); font-size: 13px; margin-top: 14px; }
.two { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 48px 0 96px; }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc a { color: var(--ink-3); padding: 6px 0; transition: color 0.15s ease; }
.toc a:hover { color: var(--ink); }
article { max-width: 720px; }
article h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 12px; scroll-margin-top: 96px; }
article h2:first-child { margin-top: 0; }
article h3 { font-size: 18px; margin: 28px 0 8px; }
article p, article li { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
article ul { padding-inline-start: 22px; }
article a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
@media (max-width: 800px) {
  .two { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px 16px; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font-size: 13px; color: var(--ink-3); font-weight: 600; margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--ink-2); } .foot ul a:hover { color: var(--ink); }
.foot .blurb { color: var(--ink-3); margin: 14px 0 0; max-width: 280px; }
.foot .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll (the script adds .in; without JS everything is visible). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .av.talk { animation: none; }
}
