/* avatalk.elden.sa: the landing page and its Privacy, Terms and Support pages.
   The app's own look: a near-black ground lit by soft round glows, frosted glass, Unbounded for
   display and Onest for text, apricot labels and an orange button. Dark only, as the app is. */

@font-face { font-family: "Unbounded"; src: url("/fonts/Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #07070B; --text: #F6F4FA; --soft: #D8D4DE; --faint: #CFCAD7;
  --accent: #FFC89A; --on-accent: #1A0B03; --fill: #E8722A;
  --glass: rgba(255,255,255,.07); --line: rgba(255,255,255,.18);
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 17px/1.55 var(--body); }
a { color: var(--soft); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }

/* ── The landing page ─────────────────────────────────────────────────────────────────────────── */
.hero { min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; justify-content: center;
  background: radial-gradient(circle at 78% 30%, rgba(255,150,64,.44), transparent 40%),
    radial-gradient(circle at 4% 0%, rgba(150,96,255,.34), transparent 42%),
    radial-gradient(circle at 70% 110%, rgba(42,191,191,.32), transparent 42%), var(--ground); }
.hero-in { width: 100%; max-width: 1240px; padding: 28px max(24px, env(safe-area-inset-right)) 28px max(24px, env(safe-area-inset-left));
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.words { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 52px; height: 52px; border-radius: 13px; }
.brand span { font: 600 20px var(--display); }
.hero h1 { margin: 12px 0 0; font: 500 clamp(34px, 4.6vw, 64px)/1.08 var(--display); text-wrap: balance; }
.hero .lede { margin: 0; max-width: 540px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: var(--soft); }

.features { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; max-width: 600px; }
.features button { font: 600 14px var(--body); color: var(--accent); min-height: 44px; padding: 0 17px; border-radius: 999px;
  cursor: pointer; background: var(--glass); border: 1px solid var(--line); transition: background .3s ease, border-color .3s ease; }
.features button:hover, .features button[aria-pressed="true"] { background: rgba(255,200,154,.22); border-color: rgba(255,200,154,.75); }

.get { margin: 14px 0 8px; display: inline-flex; align-items: center; gap: 14px; min-height: 72px; padding: 0 38px 0 30px;
  border-radius: 999px; color: var(--on-accent); text-decoration: none; background: linear-gradient(#FF9A4D, var(--fill));
  border: 1px solid rgba(255,214,176,.7);
  box-shadow: 0 0 0 6px rgba(255,138,61,.14), 0 12px 46px rgba(232,114,42,.7), 0 0 100px rgba(255,138,61,.45);
  transition: transform .2s ease, box-shadow .3s ease; }
.get:hover { color: var(--on-accent); transform: translateY(-1px);
  box-shadow: 0 0 0 7px rgba(255,138,61,.2), 0 14px 54px rgba(232,114,42,.85), 0 0 120px rgba(255,138,61,.55); }
.get svg { width: 31px; height: 40px; flex: none; }
.get span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.get small { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.get b { font-size: 27px; font-weight: 700; letter-spacing: -.01em; }

.legal-links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.legal-links a { padding: 12px 0; text-decoration: none; }

.stage { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; padding: 16px 0; }
.phone { width: 340px; max-width: 78vw; padding: 9px; border-radius: 54px; background: #050507; border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 40px 100px rgba(0,0,0,.65), 0 0 110px rgba(255,150,64,.24); transform: rotate(3deg); }
.screen { position: relative; border-radius: 45px; overflow: hidden; aspect-ratio: 1206 / 2622; background: #0B0B0F; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04);
  transition: opacity .5s ease, transform .7s ease; }
.screen img.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .screen img { transform: none; transition: opacity .2s linear; }
  .get, .get:hover { transform: none; transition: none; }
}
@media (max-width: 560px) {
  .phone { transform: none; }
  .get { min-height: 64px; padding: 0 30px 0 24px; }
  .get b { font-size: 24px; }
}

/* ── Privacy, Terms, Support ──────────────────────────────────────────────────────────────────── */
.doc { min-height: 100vh; padding: 28px max(20px, env(safe-area-inset-right)) 72px max(20px, env(safe-area-inset-left)); }
/* The glows stay where they are while a long page scrolls, and keep their size however long it is. */
.doc::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(560px circle at 8% 0%, rgba(255,150,64,.36), transparent 70%),
    radial-gradient(620px circle at 100% 34%, rgba(150,96,255,.30), transparent 70%),
    radial-gradient(640px circle at 40% 106%, rgba(42,191,191,.24), transparent 70%); }
.doc-in { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.doc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.pages { display: flex; flex-wrap: wrap; gap: 8px; }
.pages a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 17px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 14px; color: var(--accent); background: var(--glass); border: 1px solid var(--line); }
.pages a[aria-current="page"] { color: var(--on-accent); background: var(--fill); border-color: transparent; }
.sheet { padding: clamp(22px, 4.4vw, 44px); border-radius: 30px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); overflow-wrap: break-word; }
.sheet h1 { margin: 0 0 14px; font: 500 clamp(28px, 4.4vw, 40px)/1.12 var(--display); text-wrap: balance; }
.sheet h2 { margin: 38px 0 10px; font: 500 clamp(18px, 2.6vw, 22px)/1.25 var(--display); color: var(--text); }
.sheet h3 { margin: 26px 0 8px; font: 600 17px/1.3 var(--body); color: var(--accent); }
.sheet p, .sheet li { color: var(--soft); }
.sheet p { margin: 0 0 14px; }
.sheet ul, .sheet ol { margin: 0 0 14px; padding-left: 22px; }
.sheet li { margin-bottom: 6px; }
.sheet strong { color: var(--text); font-weight: 600; }
.sheet a { color: var(--accent); }
.sheet .lede { font-size: 19px; line-height: 1.5; color: var(--text); }
.sheet .meta { margin: 0 0 22px; padding: 14px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line);
  font-size: 15px; color: var(--soft); display: flex; flex-direction: column; gap: 4px; }
.sheet .card { margin: 22px 0; padding: 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); }
.sheet .card > :first-child { margin-top: 0; }
.sheet .card p:last-of-type { margin-bottom: 16px; }
.sheet .btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--fill);
  color: var(--on-accent); font-weight: 700; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.sheet .btn:hover { background: #FF8A3D; color: var(--on-accent); }
.sheet .faq { display: flex; flex-direction: column; gap: 10px; }
.sheet details { border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.sheet summary { cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--text); min-height: 44px; }
.sheet details[open] summary { color: var(--accent); }
.sheet details p { margin: 0; padding: 0 18px 16px; }
.sheet .sched-wrap { overflow-x: auto; margin: 0 0 14px; border-radius: 16px; border: 1px solid var(--line); }
.sheet table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--soft); }
.sheet th { color: var(--accent); font-weight: 600; background: rgba(255,255,255,.05); }
.sheet tr:last-child td { border-bottom: 0; }
.doc-foot { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.doc-foot a { padding: 12px 0; text-decoration: none; }
.doc-foot .copy { flex-basis: 100%; margin: 6px 0 0; color: var(--faint); }
