:root {
  color-scheme: light dark;
  --ink: #1d2027;
  --muted: #5b626d;
  --bg: #fff;
  --soft: #f3f4f6;
  --line: #e3e5e9;
  --night: #22252c;
  --night-ink: #f1f2f4;
  --night-muted: #a9afb9;
  --teal: #0089a8;
  --yellow: #fcc400;
  --orange: #fc6000;
  --green: #00894d;
  --violet: #9b3a78;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eaee;
    --muted: #a3a9b3;
    --bg: #131519;
    --soft: #1b1e24;
    --line: #2b2f37;
    --night: #0e1013;
    --violet: #c35b9d;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
section { padding-block: clamp(56px, 9vw, 104px); }
.wrap { max-width: 1184px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.lead { max-width: 40rem; font-size: 1.15rem; color: var(--muted); }
.soft { background: var(--soft); }
.flush { padding-top: 0; }

/* Header */
.top { position: relative; z-index: 5; background: var(--night); color: var(--night-ink); box-shadow: 0 1px 0 var(--night); }
.bar { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; }
nav { display: flex; gap: 24px; margin-inline-start: auto; }
nav a { font-size: .95rem; color: var(--night-muted); text-decoration: none; }
nav a:hover { color: #fff; }
.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid #3a3f48; border-radius: 999px;
  font-size: .9rem; cursor: pointer; list-style: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg, .icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang summary svg { width: 18px; height: 18px; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  min-width: 13rem; margin: 0; padding: 6px; list-style: none;
  background: #fff; color: #1d2027; border-radius: 14px; box-shadow: 0 16px 40px rgb(0 0 0 / .3);
}
.lang ul a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; }
.lang ul a:hover, .lang ul a[aria-current] { background: #eef0f3; }

/* Hero */
.hero { overflow: hidden; padding-block: 32px 80px; background: var(--night); color: var(--night-ink); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
.kicker { margin-bottom: 14px; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }
:lang(ar) .kicker { letter-spacing: 0; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
.hero .lead { color: var(--night-muted); }
.note { margin: 18px 0 0; font-size: .9rem; color: var(--night-muted); }
.stripe { display: flex; gap: 8px; margin: 18px 0 24px; }
.stripe i { width: 40px; height: 6px; border-radius: 3px; background: var(--c); }

/* Store badges: replace with the official localized artwork before release */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; min-width: 11.5rem;
  padding: 8px 18px 8px 14px; border: 1px solid #a6a6a6; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none; transition: transform .15s;
}
.badge[href]:hover { transform: translateY(-2px); }
.badge { position: relative; }
.badge.soon { border-color: #4a4f58; cursor: default; }
.badge.soon > :not(.soon-tag) { opacity: .4; filter: grayscale(1); }
.soon-tag {
  position: absolute; top: -10px; inset-inline-end: -8px; padding: 2px 9px; border-radius: 999px;
  background: var(--yellow); color: #1d2027; font-size: .7rem; font-style: normal; font-weight: 700; white-space: nowrap;
}
.badge:not(.soon) .soon-tag { display: none; }
.badge svg { flex: none; width: 28px; height: 28px; }
.badge small { display: block; font-size: .7rem; line-height: 1.2; }
.badge b { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.15; }

/* Phone mockup */
.stage { position: relative; justify-self: center; }
.stage::before {
  content: ""; position: absolute; inset: 6% -14%; border-radius: 50%;
  background: conic-gradient(from 45deg, var(--teal), var(--yellow), var(--orange), var(--green), var(--teal));
  filter: blur(70px); opacity: .35;
}
.phone {
  position: relative; width: min(280px, 70vw); aspect-ratio: 9 / 19;
  padding: 52px 18px 24px; border: 10px solid #0b0c0f; border-radius: 44px;
  background: #fff; box-shadow: 0 30px 60px rgb(0 0 0 / .45), 0 0 0 1px #3a3f48;
}
.phone::before {
  content: ""; position: absolute; z-index: 1; top: 10px; inset-inline: 0; width: 30%; height: 20px;
  margin-inline: auto; border-radius: 12px; background: #0b0c0f;
}
.prompt { margin-bottom: 22px; font-size: .8rem; font-weight: 700; line-height: 1.3; text-align: center; color: #8a8a8a; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cards i { width: 86%; aspect-ratio: 1; border-radius: 22%; background: var(--c); transition: opacity .35s, transform .35s; }
.cards i:nth-child(1), .cards i:nth-child(4), .cards i:nth-child(6), .cards i:nth-child(7) { justify-self: end; }
.cards i.picked { opacity: 0; transform: scale(.8); }

/* Report screen shown after all colors are picked */
.report {
  position: absolute; inset: 0; overflow: hidden; padding: 44px 18px 18px;
  border-radius: 34px; background: #fff; color: #222;
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.phone.done .report { opacity: 1; }
:where(.report p) { margin: 0; }
.r-bar { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #eceef1; font-size: .8rem; font-weight: 700; text-align: center; color: #6b6b6b; }
.r-title { font-size: .92rem; font-weight: 800; line-height: 1.25; color: #5b2a63; }
.r-date { margin: 2px 0 10px; font-size: .66rem; color: #8a8a8a; }
.r-head { font-size: .8rem; font-weight: 700; color: #0f6b6b; }
.r-sw { display: flex; gap: 4px; margin: 6px 0 10px; }
.r-sw i { width: 16px; height: 16px; border-radius: 4px; background: var(--c); }
.r-sub { margin-top: 8px; font-size: .72rem; font-weight: 700; color: #e07000; }
.r-text { font-size: .72rem; line-height: 1.4; }
.r-line { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: #e9eaed; }
.r-line:nth-of-type(4n+2) { width: 88%; }
.r-line:nth-of-type(4n+3) { width: 64%; }
.r-hl { width: 38%; height: 8px; margin-top: 14px; background: #f8dcc0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 24px; padding: 0; list-style: none; }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--soft); }
.steps p, .mode p, .feature p { margin: 0; color: var(--muted); }
.num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 14px; background: var(--c); color: var(--t, #fff); font-weight: 800;
}
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.swatches { display: flex; gap: 6px; height: 40px; margin-bottom: 18px; align-items: center; }
.swatches i { width: 22px; height: 22px; border-radius: 6px; background: var(--c); }
.swatches.pair i { width: 40px; height: 40px; border-radius: 11px; }
.swatches i[style*="#000"] { box-shadow: inset 0 0 0 1px #555; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--bg); }
.icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: 14px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c);
}
.icon svg { width: 26px; height: 26px; }
.icon.big { flex: none; width: 64px; height: 64px; border-radius: 18px; }
.icon.big svg { width: 34px; height: 34px; }
.shots {
  display: flex; justify-content: safe center; gap: 20px; margin-top: 48px; padding: 4px 4px 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.shots img { flex: none; width: 200px; height: auto; border: 7px solid #0b0c0f; border-radius: 30px; background: #fff; scroll-snap-align: center; }

/* About */
.about { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.about p { color: var(--muted); }
.when { margin: 0; padding: 0; list-style: none; }
.when li { display: flex; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.when li::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: .5em; border-radius: 4px; background: var(--c); }

/* Privacy */
.privacy {
  display: flex; align-items: flex-start; gap: 28px; padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line); border-radius: 28px; background: var(--night); color: var(--night-ink);
}
.privacy p { max-width: 44rem; color: var(--night-muted); }
.privacy a { font-weight: 600; }

/* Call to action */
.cta { padding-top: 0; text-align: center; }
.cta img { margin: 0 auto 20px; }
.cta .lead { margin-inline: auto; }
.cta .badges { justify-content: center; }
.cta .badge.soon { background: var(--soft); border-color: var(--line); color: var(--muted); }
.cta .badge.soon > span { opacity: 1; }
.cta .badge.soon > svg { opacity: .6; }

/* Footer */
.foot { padding-block: 40px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.foot .stripe { margin-top: 0; }
.disclaimer { max-width: 52rem; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0; padding: 0; list-style: none; }
.langs a { text-decoration: none; }
.langs a:hover { text-decoration: underline; }
.langs a[aria-current] { font-weight: 600; color: var(--ink); }

/* Privacy policy page */
.doc .wrap { max-width: calc(48rem + 64px); }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.doc h2 { margin-top: 2em; font-size: 1.25rem; }
.doc ul { padding-inline-start: 1.2em; }
.doc li { margin-bottom: .4em; }

@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  nav { display: none; }
  .lang { margin-inline-start: auto; }
  .hero-grid, .about { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .steps, .modes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .privacy { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
