/* Chylo website: shared by index.html and privacy.html */
:root {
  --ink: #0E0B16;
  --plum: #1A1625;
  --plum-2: #241E33;
  --violet: #8B5CF6;
  --lilac: #A78BFA;
  --orchid: #C026D3;
  --mist: #EDEAF5;
  --haze: #A19DB4;
  --line: rgba(237, 234, 245, .1);
  --display: "Bricolage Grotesque", "Figtree", "Noto Sans Arabic", system-ui, sans-serif;
  --body: "Figtree", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--lilac); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 11, 22, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo b { font: 700 1.6rem/1 "Poppins", var(--display); letter-spacing: -.02em; }
.top nav { display: flex; gap: 26px; margin-inline-start: auto; }
.top nav a { color: var(--haze); text-decoration: none; font-weight: 500; font-size: .98rem; }
.top nav a:hover { color: #fff; }

/* ---------- buttons ---------- */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 16px; border-radius: 14px;
  background: #fff; color: var(--ink); text-decoration: none;
  font-weight: 600; line-height: 1.15;
  transition: transform .15s, background .15s;
}
.store:hover { color: var(--ink); background: #F2EEFF; transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .72rem; font-weight: 500; opacity: .7; }
.store span { font-size: 1.05rem; }
.store.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(237, 234, 245, .28); }
.store.ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.top .store { padding: 8px 16px; border-radius: 11px; font-size: .95rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(70px, 9vw, 130px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  margin: 0;
  font: 800 clamp(2.9rem, 6.4vw, 5.6rem)/.94 var(--display);
  font-variation-settings: "wdth" 85;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
}
.hero p.lead { margin: 24px 0 34px; max-width: 30em; color: var(--haze); font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* the screen, lit up: the picture's own colours spill onto the wall behind it */
.stage { position: relative; padding: 6% 0 14% 0; }
.screen { position: relative; aspect-ratio: 1440 / 779; }
.screen .glow {
  position: absolute; inset: -8% -10%;
  width: 120%; height: 116%; object-fit: cover;
  filter: blur(70px) saturate(1.6); opacity: .55;
  transform: scale(1.02);
}
.screen .frame {
  position: relative; height: 100%;
  border-radius: 14px; overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 9px #07060B, 0 0 0 10px rgba(255, 255, 255, .07), 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.screen .frame img { width: 100%; height: 100%; object-fit: cover; }
.screen .stand {
  position: absolute; left: 50%; bottom: -11%; width: 26%; height: 11%; transform: translateX(-50%);
  background: linear-gradient(#141019, #0A080F);
  clip-path: polygon(38% 0, 62% 0, 70% 82%, 100% 86%, 100% 100%, 0 100%, 0 86%, 30% 82%);
}
.phone {
  position: relative; width: 100%; aspect-ratio: 600 / 1072;
  border-radius: 13% / 7.3%; padding: 3.2%;
  background: #08070C;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12), 0 30px 60px -20px rgba(0, 0, 0, .85);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 10.5% / 5.8%; }
.stage .phone { position: absolute; width: 27%; left: -6%; bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  .screen .frame img { animation: power 1.4s .2s both cubic-bezier(.2, .7, .2, 1); }
  .screen .glow { animation: lamp 2.2s .5s both ease-out; }
  .stage .phone { animation: rise .9s .9s both cubic-bezier(.2, .8, .2, 1); }
}
@keyframes power { from { opacity: 0; filter: brightness(2.2) saturate(0); transform: scaleY(.012); } 45% { opacity: 1; transform: scaleY(.012); } to { opacity: 1; filter: none; transform: none; } }
@keyframes lamp { from { opacity: 0; } to { opacity: .55; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------- devices strip ---------- */
.devices { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.devices ul { list-style: none; margin: 0 auto; padding: 26px var(--gutter); max-width: var(--wrap); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.devices li { display: flex; align-items: center; gap: 12px; color: var(--haze); font-weight: 500; }
.devices svg { width: 28px; height: 28px; color: var(--lilac); flex: none; }
.devices b { color: #fff; font-weight: 600; }

/* ---------- features ---------- */
.feature { padding: clamp(70px, 10vw, 130px) 0 0; }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.feature.flip .text { order: 2; }
.feature h2 {
  margin: 0 0 18px;
  font: 700 clamp(2.1rem, 4.2vw, 3.4rem)/1 var(--display);
  font-variation-settings: "wdth" 88;
  letter-spacing: -.03em; color: #fff; text-wrap: balance;
}
.feature p { margin: 0 0 14px; color: var(--haze); max-width: 33em; }
.feature .art { position: relative; display: flex; justify-content: center; }
.feature .art .phone { width: min(300px, 70%); }
.feature .art::before {
  content: ""; position: absolute; inset: 12% 8%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .35), transparent);
  filter: blur(30px);
}
.feature .art .screen { width: 100%; }
.feature .art .screen .glow { opacity: .4; }

.extras { padding: clamp(80px, 11vw, 140px) 0 clamp(60px, 8vw, 100px); }
.extras h2 { margin: 0 0 34px; font: 700 clamp(1.8rem, 3.2vw, 2.5rem)/1.05 var(--display); letter-spacing: -.02em; color: #fff; }
.extras dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px 40px; margin: 0; }
.extras dt { color: #fff; font-weight: 600; font-size: 1.08rem; margin-bottom: 6px; padding-top: 16px; border-top: 2px solid var(--violet); }
.extras dd { margin: 0; color: var(--haze); font-size: 1rem; }

/* ---------- download band ---------- */
.get { padding: 0 0 clamp(70px, 9vw, 120px); }
.get .band {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: clamp(36px, 6vw, 72px);
  background: linear-gradient(120deg, #2A1B52, #1A1625 55%, #3A1446);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.get h2 { margin: 0; font: 800 clamp(2rem, 4.6vw, 3.6rem)/.95 var(--display); font-variation-settings: "wdth" 85; letter-spacing: -.03em; color: #fff; max-width: 12em; }
.get .cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- privacy (on the home page and its own page) ---------- */
.policy { padding: clamp(60px, 8vw, 100px) 0; border-top: 1px solid var(--line); }
.policy .wrap { max-width: 780px; }
.policy h1, .policy > .wrap > h2 { margin: 0 0 8px; font: 700 clamp(2rem, 4vw, 3rem)/1.05 var(--display); letter-spacing: -.025em; color: #fff; }
.policy .updated { margin: 0 0 30px; color: var(--haze); font-size: .95rem; }
.policy h3 { margin: 34px 0 10px; font: 600 1.2rem/1.3 var(--display); color: #fff; }
.policy p, .policy li { color: var(--haze); }
.policy li { margin-bottom: 8px; }
.policy li strong { color: var(--mist); font-weight: 600; }
.policy ul { padding-inline-start: 1.2em; }
.policy .note { margin: -18px 0 26px; padding: 12px 16px; border-radius: 12px; background: var(--plum); font-size: .95rem; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--haze); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
footer .logo b { font-size: 1.25rem; }
footer .logo svg { width: 26px; height: 26px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; margin-inline-start: auto; }
.lang { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--haze); }
.lang svg { width: 18px; height: 18px; }
.lang select { appearance: none; -webkit-appearance: none; background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A19DB4' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 11px 8px; color: var(--mist); border: 1px solid var(--line); border-radius: 10px; padding: 7px 34px 7px 14px; font: inherit; cursor: pointer; }
[dir="rtl"] .lang select { background-position: left 12px center; padding: 7px 14px 7px 34px; }
.lang select:hover { border-color: rgba(237, 234, 245, .3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
footer nav a { color: var(--haze); text-decoration: none; }
footer nav a:hover { color: #fff; }

/* ---------- setup guide (guide.html) ---------- */
.get .more { flex: 1 1 100%; color: var(--mist); font-weight: 500; }
.guide { padding: clamp(48px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); border-top: 1px solid var(--line); }
.guide .wrap { max-width: 1020px; }
.guide h1 { margin: 0; font: 800 clamp(2.2rem, 5vw, 3.8rem)/.98 var(--display); font-variation-settings: "wdth" 85; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.guide .lead { margin: 18px 0 0; max-width: 34em; color: var(--haze); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.guide code { font: 600 1em/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; }

.addrbox { margin: 34px 0 0; padding: 22px clamp(20px, 3vw, 30px); border-radius: 20px; background: var(--plum); border: 1px solid var(--line); }
.addrbox.has { background: linear-gradient(120deg, #2A1B52, #1A1625 60%, #3A1446); border-color: transparent; }
.addrbox .label { display: block; color: var(--lilac); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.addrbox p { margin: 6px 0 0; color: var(--haze); }
.addrbox .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.addrbox .row[hidden], .addrbox p[hidden] { display: none; }
.addrbox .addr { color: #fff; font-size: clamp(1.25rem, 3.4vw, 2rem); overflow-wrap: anywhere; }
.addrbox button { border: 0; border-radius: 11px; padding: 9px 18px; background: #fff; color: var(--ink); font: 600 .98rem/1 var(--body); cursor: pointer; }
.addrbox button:hover { background: #F2EEFF; }

.tabs { display: inline-flex; gap: 4px; margin: 40px 0 0; padding: 4px; border-radius: 14px; background: var(--plum); border: 1px solid var(--line); max-width: 100%; }
.tabs button { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 10px; padding: 10px 18px; background: transparent; color: var(--haze); font: 600 1rem/1.2 var(--body); cursor: pointer; }
.tabs button svg { width: 20px; height: 20px; flex: none; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: var(--violet); color: #fff; }

.steps { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: step; }
.steps[hidden] { display: none; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.steps > li:last-child { border-bottom: 0; }
.steps .txt { position: relative; padding-inline-start: 62px; }
.steps .txt::before { content: counter(step); position: absolute; inset-inline-start: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--plum-2); color: var(--lilac); font: 700 1.25rem/1 var(--display); box-shadow: inset 0 0 0 1.5px rgba(167, 139, 250, .35); }
.steps h3 { margin: 0 0 8px; font: 700 clamp(1.25rem, 2.1vw, 1.55rem)/1.2 var(--display); letter-spacing: -.01em; color: #fff; }
.steps p { margin: 0 0 10px; color: var(--haze); }
.steps p:last-child { margin-bottom: 0; }
.steps .addr-line { margin-top: 12px; }
.steps .addr-line[hidden] { display: none; }
.steps .addr-line .addr { display: inline-block; padding: 7px 14px; border-radius: 10px; background: var(--plum-2); color: #fff; font-size: 1.05rem; overflow-wrap: anywhere; }
.steps .store { margin-top: 6px; }
.shot { margin: 0; }
.shot + .shot { margin-top: 16px; }
.shot.tv .frame { border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 7px #07060B, 0 0 0 8px rgba(255, 255, 255, .07), 0 30px 60px -30px rgba(0, 0, 0, .9); margin: 8px; }
.shot.tv img { width: 100%; height: auto; }
.shot.ph { display: flex; justify-content: center; }
.shot.ph .phone { width: min(250px, 62%); }
.steps > li > .shot ~ .shot { grid-column: 2; }

.guide .help { margin-top: clamp(30px, 5vw, 56px); padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--plum); }
.guide .help h2 { margin: 0 0 12px; font: 700 clamp(1.2rem, 2vw, 1.45rem)/1.25 var(--display); color: #fff; }
.guide .help ul { margin: 0; padding-inline-start: 1.2em; color: var(--haze); }
.guide .help li { margin-bottom: 6px; }
[dir="rtl"] .guide h1 { letter-spacing: 0; line-height: 1.2; font-variation-settings: normal; }
@media (max-width: 760px) {
  .steps > li { grid-template-columns: minmax(0, 1fr); }
  .steps > li > .shot ~ .shot { grid-column: auto; }
  .steps .txt { padding-inline-start: 54px; }
  .steps .txt::before { width: 40px; height: 40px; font-size: 1.1rem; }
  .tabs { display: flex; }
  .tabs button { flex: 1 1 0; justify-content: center; padding: 10px 8px; font-size: .93rem; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .top nav a:not(.keep) { display: none; }
  .hero .wrap, .feature .wrap { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .text { order: 0; }
  .stage { margin: 0 4% 0 10%; }
  .stage .phone { width: 30%; left: -10%; }
  .feature .art { order: 2; }
}
@media (max-width: 560px) {
  .top .wrap { gap: 14px; }
  .top .store { display: none; }
  .hero .cta .store, .get .cta .store { flex: 1 1 100%; justify-content: center; }
  .devices ul { flex-direction: column; }
  footer nav { margin-inline-start: 0; }
}

/* right-to-left (Arabic) */
[dir="rtl"] .hero h1, [dir="rtl"] .feature h2, [dir="rtl"] .get h2 { letter-spacing: 0; line-height: 1.15; font-variation-settings: normal; }
[dir="rtl"] .stage .phone { left: auto; right: -6%; }
[dir="rtl"] .store { padding: 11px 16px 11px 20px; }
@media (max-width: 900px) { [dir="rtl"] .stage { margin: 0 10% 0 4%; } [dir="rtl"] .stage .phone { right: -10%; } }
