/* مواعيدي ومهامي — calendars.events
   Design language «المدار»: the logo ring becomes the motif (orbits, time rings). */

@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F6F3FB;
  --bg-2: #EFE9FA;
  --surface: #FFFFFF;
  --surface-2: #EFE9FA;
  --line: #E7E0F4;
  --ink: #1F1A33;
  --ink-2: #3D3654;
  --muted: #5A5470;
  --brand: #9675CE;
  --brand-strong: #6B48B8;
  --brand-text: #6B48B8;
  --deep: #2B1F4D;
  --lilac: #D9CCF2;
  --amber: #F5A524;
  --green: #0CB450;
  --coral: #FC7F79;
  --cyan: #01B8CA;
  --orange: #FC823A;
  --nav-bg: rgba(246, 243, 251, .78);
  --shadow-sm: 0 4px 14px rgba(59, 42, 107, .07);
  --shadow-md: 0 12px 32px rgba(59, 42, 107, .12);
  --shadow-lg: 0 30px 70px rgba(59, 42, 107, .22);
  --store-bg: #1F1A33;
  --r-card: 22px;
  --r-btn: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "IBM Plex Sans Arabic", "Poppins", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #141026;
  --bg-2: #1A1530;
  --surface: #1E1836;
  --surface-2: #2A2247;
  --line: #2D2550;
  --ink: #F1EDFA;
  --ink-2: #D9D2EA;
  --muted: #B4ACCB;
  --brand-text: #B9A3E0;
  --deep: #3A2A6B;
  --nav-bg: rgba(20, 16, 38, .74);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .55);
  --store-bg: #FFFFFF;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--brand); color: #fff; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tint { background: var(--bg-2); }

.h-display { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.h-section { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.4; }
.h-sub { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.5; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--brand-strong), var(--brand), var(--amber));
  transform: scaleX(var(--p, 0)); transform-origin: right center;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 18px;
  transition: padding .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.nav.is-stuck {
  padding-block: 10px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
/* inner pages open on the deep-purple hero, so the bar starts light-on-dark */
.inner .nav:not(.is-stuck) .brand, .inner .nav:not(.is-stuck) .nav__link { color: #fff; }
.inner .nav:not(.is-stuck) .nav__link:hover, .inner .nav:not(.is-stuck) .nav__link[aria-current="page"] { color: var(--lilac); }
.nav__inner { display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; }
.brand img { width: 44px; transition: transform .8s var(--ease); }
.brand:hover img { transform: rotate(-200deg) scale(1.06); }
.nav__links { display: flex; gap: 4px; margin-inline-start: 18px; }
.nav__link {
  position: relative; padding: 8px 14px; border-radius: 12px;
  font-weight: 500; font-size: .96rem; color: var(--ink-2);
  transition: color .3s, background-color .3s;
}
.nav__link::after {
  content: ""; position: absolute; inset: auto 14px 3px 14px; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--brand-text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__spacer { flex: 1; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .4s var(--ease), background-color .3s;
}
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.theme-toggle svg { transition: transform .7s var(--ease); }
.theme-toggle:hover svg { transform: rotate(40deg); }
.nav__burger { display: none; }

.btn {
  --btn-bg: var(--brand-strong);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding-inline: 22px; border-radius: var(--r-btn);
  background: var(--btn-bg); color: #fff; font-weight: 600; font-size: .95rem;
  box-shadow: 0 10px 24px rgba(107, 72, 184, .32);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .8s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(107, 72, 184, .42); }
.btn:hover::before { transform: translateX(-120%); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn--sm { height: 44px; padding-inline: 18px; border-radius: 15px; font-size: .9rem; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 130; visibility: hidden; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(20, 16, 38, .5); opacity: 0; transition: opacity .4s; }
.drawer__panel {
  position: absolute; inset: 0 0 0 auto; width: min(320px, 86vw);
  background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transform: translateX(100%); transition: transform .5s var(--ease);
  border-start-start-radius: 28px; border-end-start-radius: 28px;
}
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.drawer__head h5 { font-size: 1.05rem; font-weight: 600; }
.drawer__link { padding: 13px 14px; border-radius: 16px; font-weight: 500; transition: background-color .3s, color .3s; }
.drawer__link:hover, .drawer__link[aria-current="page"] { background: var(--surface-2); color: var(--brand-text); }
.drawer .btn { margin-top: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(120px, 14vw, 170px); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob--1 { width: 520px; height: 520px; background: #D9CCF2; inset: -160px auto auto -120px; }
.blob--2 { width: 420px; height: 420px; background: #FBE3B8; inset: auto -120px -160px auto; animation-duration: 22s; animation-delay: -6s; opacity: .4; }
.blob--3 { width: 320px; height: 320px; background: #C9F0DC; inset: 30% 38% auto auto; animation-duration: 26s; animation-delay: -12s; opacity: .32; }
:root[data-theme="dark"] .blob--1 { background: #4A3590; opacity: .5; }
:root[data-theme="dark"] .blob--2 { background: #6B4A12; opacity: .28; }
:root[data-theme="dark"] .blob--3 { background: #0E5B3A; opacity: .25; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.15); } }

.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero__copy .lead { max-width: 30em; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding-inline: 18px; border-radius: 18px; background: var(--store-bg);
  box-shadow: var(--shadow-md);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.store:hover { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-lg); }
.store .on-dark, :root[data-theme="dark"] .store .on-light { display: none; }
:root[data-theme="dark"] .store .on-dark { display: block; }

.scroll-cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .9rem; font-weight: 500; color: var(--muted); align-self: flex-start; }
.scroll-cue span.cue {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center; color: var(--brand-text);
}
.scroll-cue svg { width: 20px; height: 20px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* phones */
.phone {
  position: relative; width: 100%; aspect-ratio: 390 / 844;
  border-radius: 13.5% / 6.3%; padding: 2.7%;
  background: linear-gradient(160deg, #3A2F5E, #15102A 55%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.phone::before {
  content: ""; position: absolute; z-index: 2; top: 3.6%; left: 50%; width: 27%; height: 2.9%;
  transform: translateX(-50%); border-radius: 99px; background: #0C0919;
}
.phone img, .phone .phone__stack { width: 100%; height: 100%; border-radius: 11.2% / 5.2%; object-fit: cover; }
.phone .phone__stack { position: relative; overflow: hidden; background: var(--bg); }
.phone__stack img { position: absolute; inset: 0; border-radius: 0; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.phone__stack img.is-active { opacity: 1; transform: none; }

.hero__stage { position: relative; aspect-ratio: 1 / 1; max-width: 620px; width: 100%; margin-inline: auto; }
.orbit { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; }
.orbit circle { fill: none; stroke-linecap: round; }
.orbit--a { animation: spin 40s linear infinite; }
.orbit--b { animation: spin 28s linear infinite reverse; }
.orbit--c { animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__phone { position: absolute; width: 43%; will-change: transform; }
.hero__phone--front { inset: 3% auto auto 12%; z-index: 2; transform: translate3d(0, calc(var(--py, 0) * -22px), 0) rotate(-5deg); }
.hero__phone--back { inset: 12% 10% auto auto; transform: translate3d(0, calc(var(--py, 0) * 26px), 0) rotate(7deg); }
.hero__phone > .phone { animation: float 7s ease-in-out infinite; }
.hero__phone--back > .phone { animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-14px); } }

.chip-ring {
  position: absolute; z-index: 3; width: 76px; height: 76px; border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  animation: float 6s ease-in-out infinite;
}
.chip-ring svg { width: 50px; height: 50px; }
.chip-ring--1 { inset: 12% auto auto 1%; animation-delay: -1s; }
.chip-ring--2 { inset: auto 2% 20% auto; animation-delay: -3s; }
.chip-ring--3 { inset: auto auto 6% 40%; width: 64px; height: 64px; border-radius: 20px; animation-delay: -4.5s; }
.ring-track { fill: none; stroke-width: 5; }
.ring-arc { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: 151; transform: rotate(-90deg); transform-origin: center; }
.is-in .ring-arc, .hero .ring-arc { animation: ring 1.8s var(--ease) .6s forwards; }
@keyframes ring { to { stroke-dashoffset: var(--to, 40); } }

/* hero entrance */
.hero [data-enter] { opacity: 0; transform: translateY(26px); animation: enter .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
.hero .hero__stage[data-enter] { transform: translateY(40px) scale(.96); }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="left"] { transform: translateX(-46px); }
[data-reveal="zoom"] { transform: scale(.9); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Features ---------- */
.features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(32px, 5vw, 56px); }
.feature {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s, opacity .9s var(--ease);
}
.feature::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 6px; background: var(--stripe, var(--brand)); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.feature::after {
  content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  border: 22px solid var(--stripe, var(--brand)); opacity: 0; inset: -80px auto auto -80px;
  transform: scale(.6) rotate(-40deg); transition: opacity .6s, transform .8s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 50%);
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature:hover::before { transform: scaleY(1); }
.feature:hover::after { opacity: .13; transform: scale(1) rotate(20deg); }
.feature__icon {
  width: 54px; height: 54px; border-radius: 18px; background: var(--surface-2); color: var(--brand-text);
  display: flex; align-items: center; justify-content: center;
  transition: transform .6s var(--ease), background-color .4s, color .4s;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.08); background: var(--brand-strong); color: #fff; }
.feature h3 { font-size: 1.12rem; font-weight: 600; }
.feature p { color: var(--muted); font-size: .97rem; }

/* ---------- How it works ---------- */
.how__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 90px); align-items: center; margin-top: clamp(32px, 5vw, 56px); }
.how__phone { position: relative; max-width: 310px; width: 100%; margin-inline: auto; }
.how__phone::before {
  content: ""; position: absolute; inset: -9% -22%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 117, 206, .35), transparent 72%);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.08); opacity: .7; } }
.how__nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); }
.how__nav--prev { inset-inline-start: -62px; }
.how__nav--next { inset-inline-end: -62px; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  position: relative; overflow: hidden; text-align: start; width: 100%;
  padding: 18px 22px; border-radius: var(--r-card); border: 1px solid transparent;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), border-color .5s, transform .5s var(--ease), opacity .9s var(--ease);
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; transition: color .4s; }
.step p { color: var(--muted); font-size: .96rem; }
.step:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.step.is-active { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-md); transform: translateX(-8px); }
.step.is-active h3 { color: var(--brand-text); }
.step__bar { position: absolute; inset: auto 0 0 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: right; }
.step.is-active .step__bar { animation: bar var(--step-ms, 5200ms) linear forwards; }
.steps.is-paused .step__bar { animation-play-state: paused; }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- Highlights ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 90px); align-items: center; }
.split + .split { margin-top: clamp(72px, 10vw, 130px); }
.split__copy { display: flex; flex-direction: column; gap: 22px; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 1.04rem; }
.checks .tick { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--surface-2); color: var(--brand-text); display: flex; align-items: center; justify-content: center; }
.checks .tick svg { width: 16px; height: 16px; stroke-dasharray: 24; stroke-dashoffset: 24; }
.checks li.is-in .tick svg { animation: draw .6s var(--ease) calc(var(--i, 0) * 90ms + .3s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.duo { position: relative; max-width: 470px; width: 100%; margin-inline: auto; aspect-ratio: 10 / 11; }
.duo::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 40px; background: linear-gradient(150deg, var(--deep), #4A3590); transform: rotate(-4deg); }
.duo__ring { position: absolute; inset: -6% auto auto -8%; width: 58%; animation: spin 50s linear infinite; }
.duo .phone { position: absolute; width: 47%; }
.duo .phone:nth-of-type(1) { inset: 2% 6% auto auto; transform: translateY(calc(var(--sy, 0) * -30px)) rotate(4deg); }
.duo .phone:nth-of-type(2) { inset: auto auto 0 5%; transform: translateY(calc(var(--sy, 0) * 34px)) rotate(-5deg); z-index: 2; }

.widgets { position: relative; max-width: 500px; width: 100%; margin-inline: auto; aspect-ratio: 1 / 1; }
.widgets::before { content: ""; position: absolute; inset: 8%; border-radius: 44px; background: linear-gradient(200deg, #E4DAF6, #CFC8E0); transform: rotate(5deg); }
:root[data-theme="dark"] .widgets::before { background: linear-gradient(200deg, #2A2247, #1E1836); }
.widgets img { position: absolute; border-radius: 12%/12%; filter: drop-shadow(0 18px 30px rgba(43, 31, 77, .28)); }
.widgets .w-large { width: 58%; inset: 4% auto auto 2%; transform: translateY(calc(var(--sy, 0) * -26px)) rotate(-4deg); }
.widgets .w-medium { width: 62%; inset: auto 0 6% auto; transform: translateY(calc(var(--sy, 0) * 30px)) rotate(3deg); z-index: 2; }
.widgets .w-small { width: 30%; inset: 10% 6% auto auto; transform: translateY(calc(var(--sy, 0) * 16px)) rotate(6deg); }
.widgets .w-small-b { width: 28%; inset: auto auto 2% 10%; transform: translateY(calc(var(--sy, 0) * -18px)) rotate(-7deg); z-index: 3; }

.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease); }
.mini:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mini p { color: var(--muted); font-size: .97rem; }

/* ---------- Testimonials ---------- */
.reviews { position: relative; overflow: hidden; background: var(--deep); color: #fff; }
.reviews__orbit { position: absolute; width: 620px; inset: -260px auto auto -200px; opacity: .55; animation: spin 70s linear infinite; pointer-events: none; }
.reviews__head { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.reviews__head h2 { max-width: 12em; }
.reviews__ctrl { display: flex; gap: 10px; }
.reviews .icon-btn { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.reviews .icon-btn:hover { background: var(--brand); }
.reviews__track {
  position: relative; display: flex; gap: 18px; margin-top: clamp(28px, 4vw, 48px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 26px max(20px, calc((100vw - 1180px) / 2)) 16px;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  position: relative; flex: none; width: min(380px, 82vw); scroll-snap-align: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 26px; padding: 34px 24px 22px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .5s var(--ease), background-color .5s, opacity .9s var(--ease);
}
.review:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .13); }
.review__quote { position: absolute; top: -22px; inset-inline-start: 24px; width: 46px; height: 46px; border-radius: 16px; background: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(150, 117, 206, .5); }
.review__quote svg { width: 20px; height: 20px; }
.stars { display: flex; gap: 3px; color: var(--amber); }
.stars svg { width: 18px; height: 18px; transform: scale(0); }
.review.is-in .stars svg { animation: pop .5s var(--ease) calc(var(--s) * 80ms + .35s) forwards; }
@keyframes pop { 60% { transform: scale(1.3); } to { transform: scale(1); } }
.review blockquote { flex: 1; }
.review blockquote p { font-size: 1.04rem; line-height: 1.95; color: #F1EDFA; }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--lilac); }
.review__who h6 { font-size: 1rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq__intro { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); transition: box-shadow .5s var(--ease), border-color .5s, opacity .9s var(--ease), transform .9s var(--ease); }
.acc.is-open { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.acc h2 { font-size: inherit; line-height: inherit; }
.acc__q { display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px 22px; text-align: start; font-weight: 600; font-size: 1.04rem; }
.acc__q span { flex: 1; }
.acc__icon { width: 34px; height: 34px; border-radius: 12px; flex: none; background: var(--surface-2); color: var(--brand-text); display: flex; align-items: center; justify-content: center; transition: background-color .4s, color .4s; }
.acc__icon svg { width: 16px; height: 16px; transition: transform .6s var(--ease); }
.acc.is-open .acc__icon { background: var(--brand-strong); color: #fff; }
.acc.is-open .acc__icon svg { transform: rotate(135deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 22px 22px; color: var(--muted); font-size: .98rem; opacity: 0; transform: translateY(-8px); transition: opacity .5s .1s, transform .6s var(--ease) .1s; }
.acc.is-open .acc__a p { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--bg-2); padding-block: clamp(56px, 8vw, 96px) 40px; text-align: center; }
.footer__ring { position: absolute; width: 520px; inset: auto auto -300px 50%; transform: translateX(-50%); opacity: .5; pointer-events: none; }
.footer__ring svg { animation: spin 60s linear infinite; }
.footer__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.footer .brand { font-size: 1.4rem; }
.footer .brand img { width: 60px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.footer .stores { justify-content: center; }

.to-top {
  position: fixed; inset: auto auto 22px 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 16px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(150, 117, 206, .5);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 22px; height: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; padding-top: clamp(120px, 13vw, 160px); padding-bottom: clamp(70px, 8vw, 100px); background: var(--deep); color: #fff; }
.page-hero__ring { position: absolute; width: 460px; inset: -190px auto auto -130px; pointer-events: none; }
.page-hero__ring svg { animation: spin 60s linear infinite; }
.page-hero__ring--2 { width: 300px; inset: auto -90px -170px auto; opacity: .6; }
.page-hero .container { position: relative; display: flex; flex-direction: column; gap: 14px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .92rem; color: var(--lilac); }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; transition: color .3s; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 8px; opacity: .6; }
.crumbs svg { width: 17px; height: 17px; }
.page-hero h1, .page-hero h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 700; line-height: 1.4; }
.page-hero [data-enter] { opacity: 0; transform: translateY(22px); animation: enter .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms + 100ms); }
.page-body { position: relative; margin-top: -36px; background: var(--bg); border-radius: 36px 36px 0 0; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 110px); }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }

/* changelog timeline */
.timeline { position: relative; display: flex; flex-direction: column; gap: 18px; }
.timeline::before { content: ""; position: absolute; inset: 10px 27px 10px auto; width: 2px; background: var(--line); }
.timeline__fill { position: absolute; inset: 10px 27px auto auto; width: 2px; height: calc(var(--tp, 0) * (100% - 20px)); background: linear-gradient(var(--brand-strong), var(--brand)); border-radius: 2px; }
.release { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; }
.release__num {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); color: var(--ink); font-family: "Poppins", var(--font); font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.release__num svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.release.is-in .ring-arc { animation: ring 1.4s var(--ease) .25s forwards; }
.release__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.release__card:hover { transform: translateX(-6px); box-shadow: var(--shadow-md); }
.release h4 { font-size: 1.1rem; font-weight: 600; }
.release h5 { font-size: .86rem; font-weight: 500; color: var(--brand-text); background: var(--surface-2); display: inline-block; padding: 2px 12px; border-radius: 999px; margin: 8px 0 12px; }

/* rich text (changelog bodies, privacy policy) */
.prose { color: var(--ink-2); font-size: 1rem; line-height: 2; }
.prose p { margin-bottom: 1em; }
.prose > :last-child, .prose li:last-child { margin-bottom: 0; }
.prose ul { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1em; }
.prose li { position: relative; padding-inline-start: 22px; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .82em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.prose ol { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1em; counter-reset: step; }
.prose ol > li { counter-increment: step; padding-inline-start: 34px; }
.prose ol > li::before { content: counter(step); top: .36em; width: 24px; height: 24px; display: grid; place-items: center; font-size: .8rem; font-weight: 600; line-height: 1; color: #fff; }
.prose a { color: var(--brand-text); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent); text-underline-offset: 5px; transition: text-decoration-color .3s; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 600; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-sm); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav__links, .nav .btn { display: none; }
  .nav__burger { display: inline-flex; }
  .hero__grid, .how__grid, .split, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { align-items: center; text-align: center; }
  .stores { justify-content: center; }
  .scroll-cue { align-self: center; }
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq__intro { position: static; text-align: center; }
  .split__copy { order: 2; }
  .how__phone { max-width: 260px; }
  .step.is-active { transform: none; }
}
@media (max-width: 620px) {
  .features__grid, .minis { grid-template-columns: minmax(0, 1fr); }
  .how__nav--prev { inset-inline-start: -52px; }
  .how__nav--next { inset-inline-end: -52px; }
  .chip-ring { width: 58px; height: 58px; border-radius: 18px; }
  .chip-ring svg { width: 38px; height: 38px; }
  .chip-ring--3 { display: none; }
  .release { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
  .release__num { width: 46px; height: 46px; font-size: .95rem; }
  .timeline::before, .timeline__fill { inset-inline-start: 22px; right: 22px; }
  .to-top { inset: auto auto 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], .hero [data-enter], .page-hero [data-enter] { opacity: 1; transform: none; }
}

/* ring wrappers size themselves; the SVG inside fills them */
.page-hero__ring, .footer__ring, .reviews__orbit, .duo__ring { aspect-ratio: 1; }

/* ---------- Legal pages (legal/app/*) ---------- */
.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.doc-tabs a { padding: 7px 18px; border-radius: 999px; font-size: .94rem; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); transition: background-color .3s, color .3s; }
.doc-tabs a:hover { background: rgba(255, 255, 255, .2); }
.doc-tabs a[aria-current="page"] { background: #fff; color: #2B1F4D; border-color: #fff; font-weight: 600; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; color: var(--lilac); }
.doc-meta span { display: inline-flex; align-items: center; gap: 7px; }
.doc-meta svg { width: 16px; height: 16px; flex: none; }
.doc-meta bdi, .legal bdi, .legal .ltr { font-family: "Poppins", var(--font); }

.legal { width: min(1140px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 12px; box-shadow: var(--shadow-sm); }
.toc h2 { font-size: .86rem; font-weight: 600; color: var(--muted); padding: 0 12px 8px; }
.toc ol { display: flex; flex-direction: column; gap: 2px; }
.toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 12px; border-radius: 12px; font-size: .93rem; line-height: 1.7; color: var(--ink-2); transition: background-color .3s, color .3s; }
.toc a:hover { background: var(--surface-2); }
.toc a.is-active { background: var(--surface-2); color: var(--brand-text); font-weight: 600; }
.toc__n { font-family: "Poppins", var(--font); font-size: .8rem; font-weight: 600; color: var(--brand-text); min-width: 1.3em; }

.legal__doc { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.keypoints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.keypoint { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.keypoint__icon { width: 42px; height: 42px; flex: none; border-radius: 14px; background: var(--surface-2); color: var(--brand-text); display: flex; align-items: center; justify-content: center; }
.keypoint__icon svg { width: 22px; height: 22px; }
.keypoint h3 { font-size: 1rem; font-weight: 600; line-height: 1.6; }
.keypoint p { font-size: .92rem; line-height: 1.8; color: var(--muted); }

.legal .sheet { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.legal section > :last-child { margin-bottom: 0; }
.legal section + section { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 40px); }
.legal h2.legal__h { display: flex; align-items: center; gap: 14px; font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 700; line-height: 1.5; color: var(--ink); margin-bottom: 14px; }
.legal__n { width: 40px; height: 40px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Poppins", var(--font); font-size: .95rem; font-weight: 600; color: var(--brand-text); background: var(--surface-2); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 40%, transparent); }
.legal h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 1.3em 0 .5em; }
.legal .prose ul ul { margin: 6px 0 0; }
.legal .prose ul ul li::before { width: 6px; height: 6px; background: none; box-shadow: inset 0 0 0 1.5px var(--brand); }
.callout { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 18px; padding: 14px 18px; margin-bottom: 1em; font-size: .96rem; line-height: 1.9; }
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 5px; color: var(--brand-text); }
.callout p { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 1em; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .94rem; line-height: 1.85; }
.legal th, .legal td { padding: 12px 16px; text-align: start; vertical-align: top; }
.legal th { background: var(--surface-2); color: var(--ink); font-weight: 600; white-space: nowrap; }
.legal tr + tr td { border-top: 1px solid var(--line); }
.legal td:first-child { font-weight: 600; color: var(--ink); }
.doc-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doc-next a { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 20px; font-weight: 600; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.doc-next a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.doc-next small { display: block; font-size: .84rem; font-weight: 400; color: var(--muted); }
.doc-next svg { width: 20px; height: 20px; flex: none; color: var(--brand-text); }

@media (max-width: 1000px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
}
@media (max-width: 620px) {
  .keypoints, .doc-next { grid-template-columns: minmax(0, 1fr); }
  .legal__n { width: 34px; height: 34px; font-size: .88rem; }
}
@media print {
  .nav, .drawer, .progress, .toc, .to-top, .footer, .doc-tabs, .doc-next, .page-hero__ring { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { background: none; color: #000; padding: 0 0 12px; }
  .page-hero [data-enter] { opacity: 1; transform: none; animation: none; }
  .doc-meta { color: #333; }
  .page-body { margin: 0; padding: 0; border-radius: 0; background: none; }
  .legal { display: block; width: 100%; }
  .legal .sheet, .keypoint { border: 0; box-shadow: none; padding: 0; }
  .keypoints { margin-bottom: 18px; }
  .legal section { break-inside: avoid-page; }
}
