/* Layout: a 3D magnet hero on top, then a plain page that runs problem, cost, fix, invite. Black and cream, like the logo. */
:root {
  --ink:   #2B2C30;  /* Stretch Limo, the logo black */
  --base:  #F0EEE9;  /* Cloud Dancer */
  --paper: #FBFAF6;  /* card face */
  --mute:  #5B5C60;
  --line:  #D9D6CE;
  --font-latin: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", var(--font-latin), sans-serif;
  --font-display: "Lobster Two", "Brush Script MT", cursive;
  --ease: cubic-bezier(.22, .8, .25, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--base); color: var(--ink); font: 400 1rem/1.55 var(--font-latin); }
html[lang="ar"] body { font-family: var(--font-arabic); }
[lang="ar"], [lang="ar"] * { letter-spacing: normal !important; text-transform: none; }
html[lang="ar"] p, html[lang="ar"] li { line-height: 1.9; }
.wrap { max-width: 70rem; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* nav */
.nav-wrap {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  z-index: 100; direction: ltr; display: flex; align-items: stretch; gap: 12px;
  width: max-content; max-width: calc(100% - 28px);
}
.nav {
  position: static; direction: ltr; display: flex; align-items: center; gap: 20px;
  padding: 6px 8px; border-radius: 999px; width: max-content; max-width: 100%;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 10px 30px rgba(43, 44, 48, .12);
}
.nav-wrap > .nav-login {
  align-self: stretch; min-height: 0; height: auto; min-width: 11rem;
  padding: 0 18px; font-size: .875rem;
  box-shadow: 0 10px 30px rgba(43, 44, 48, .12);
}
.nav > a.link {
  color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 600; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; transition: background .15s var(--ease), color .15s var(--ease);
}
.nav > a.link:hover, .nav > a.link:focus-visible { text-decoration: none; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nav > a.link.is-here, .nav > a.link.is-here:hover, .nav > a.link.is-here:focus-visible { background: var(--ink); color: var(--base); }
.lang { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.lang a { background: none; border: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; opacity: .5; padding: 8px 2px; text-decoration: none; }
.lang a[lang="ar"] { font-family: var(--font-arabic); }
.lang a.active { opacity: 1; font-weight: 700; }
.lang .divider { opacity: .4; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: .9375rem; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  color: var(--ink); background: var(--paper); border: 2px solid var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--base); font-weight: 700; }
.btn-ink:hover { box-shadow: 0 8px 22px rgba(43, 44, 48, .28); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.0625rem; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; display: none; place-items: center; cursor: pointer; padding: 0; color: var(--base); background: var(--ink); border: 2px solid var(--ink); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn path { transition: transform .25s var(--ease), opacity .2s var(--ease); transform-box: fill-box; transform-origin: center; }
.icon-btn[aria-expanded="true"] .b1 { transform: translateY(5px) rotate(45deg); }
.icon-btn[aria-expanded="true"] .b2 { opacity: 0; }
.icon-btn[aria-expanded="true"] .b3 { transform: translateY(-5px) rotate(-45deg); }
.sheet {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; margin: 0; padding: 24px;
  border: 0; border-radius: 0; box-shadow: none;
  background: color-mix(in srgb, var(--base) 74%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.sheet[hidden] { display: none; }
.sheet-menu { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sheet-menu a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.2;
  padding: 10px 28px; border-radius: 999px; opacity: 0; transform: translateY(16px);
  animation: menu-in .5s var(--ease) forwards;
}
.sheet-menu a:nth-child(1) { animation-delay: .05s; }
.sheet-menu a:nth-child(2) { animation-delay: .1s; }
.sheet-menu a:nth-child(3) { animation-delay: .15s; }
.sheet-menu a:nth-child(4) { animation-delay: .2s; }
.sheet-menu a:nth-child(5) { animation-delay: .25s; }
.sheet-menu a:nth-child(6) { animation-delay: .3s; }
.sheet-menu a:hover, .sheet-menu a:focus-visible { background: var(--ink); color: var(--base); text-decoration: none; }
html[lang="ar"] .sheet-menu a { line-height: 1.45; }
@keyframes menu-in { to { opacity: 1; transform: none; } }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
.hero .wrap { position: relative; width: 100%; padding-block: 110px 56px; }
.hero-in { max-width: 34rem; }
.logo { display: block; width: clamp(190px, 20vw, 270px); height: auto; margin: 0 0 20px -8px; }
.nav-wrap { animation: fade-in 1s cubic-bezier(.16, 1, .3, 1) both; }
#scene { animation: fade-in 1.7s cubic-bezier(.16, 1, .3, 1) .2s both; }
.hero-in > * { animation: enter-in 1.15s cubic-bezier(.16, 1, .3, 1) both; }
.hero-in > *:nth-child(1) { animation-delay: .18s; }
.hero-in > *:nth-child(2) { animation-delay: .32s; }
.hero-in > *:nth-child(3) { animation-delay: .46s; }
.hero-in > *:nth-child(4) { animation-delay: .6s; }
.hero-in > *:nth-child(5) { animation-delay: .74s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes enter-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-weight: 800; font-size: clamp(2.3rem, 4.9vw, 4.1rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.35; }
.sub { font-size: clamp(1rem, 1.5vw, 1.1875rem); margin: 0 0 28px; max-width: 31rem; color: var(--mute); }

/* page sections */
section.band { padding-block: clamp(64px, 11vw, 132px); }
h2 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 18px; text-wrap: balance; }
.lede { font-size: clamp(1rem, 1.5vw, 1.1875rem); color: var(--mute); margin: 0; max-width: 34rem; }
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.wait { opacity: 0; transform: translateY(22px); }
.access .card.reveal { transform-origin: 50% 0; }
.access .card.reveal.wait { opacity: 0; transform: translateY(46px) scale(.9); }

.problem .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.chores { list-style: none; margin: 0; padding: 0; display: grid; }
.chores li { display: flex; gap: 14px; align-items: baseline; padding: 20px 0; border-top: 2px solid var(--ink); font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 600; min-width: 0; }
.chores li:last-child { border-bottom: 2px solid var(--ink); }
.chores svg { flex: none; width: 16px; height: 16px; stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: round; transform: translateY(1px); }

.cost { background: var(--ink); color: var(--base); }
.cost .lede { color: #C9C7C1; }
.costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); margin-top: clamp(36px, 6vw, 72px); }
.costs div { border-top: 2px solid var(--base); padding-top: 18px; min-width: 0; }
.costs h3 { display: block; font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 var(--font-display); margin: 0 0 12px; }
html[lang="ar"] .costs h3 { font-family: var(--font-arabic); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.3; }
.costs p { margin: 0; color: #C9C7C1; }

.steps { list-style: none; margin: clamp(36px, 6vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--paper); border: 2px solid var(--ink); border-radius: 24px; padding: clamp(22px, 3vw, 32px); min-width: 0; }
.steps li::before { content: counter(s); display: block; font: 700 3.4rem/.9 var(--font-display); margin-bottom: 18px; }
.steps h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--mute); }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 56px); }
.facts li { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; min-width: 0; }
.facts svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); stroke: var(--base); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.access { padding-bottom: 40px; }
.access-title { text-align: center; max-width: 40rem; margin: 0 auto 28px; }
.access .card { max-width: 40rem; margin-inline: auto; text-align: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 32px; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px) 28px; box-shadow: 0 24px 60px rgba(43, 44, 48, .12); }
.access .card > .label { margin-bottom: 22px; }
.agent { display: inline-block; margin-top: 0; font-size: .8125rem; color: #77787B; text-decoration: none; }
.agent:hover { color: var(--ink); }
.agent-line { margin: 28px 0 0; }
.powered { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--mute); }
.powered a { color: var(--ink); text-decoration: none; font-weight: 700; }

@media (max-width: 760px) {
  .nav-wrap { left: 14px; right: 14px; transform: none; width: auto; max-width: none; justify-content: center; }
  .nav { justify-content: center; gap: 12px; padding: 0; background: none; border: none; box-shadow: none; width: auto; }
  .nav-login { display: none; }
  .lang { min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); }
  .nav a.link { display: none; }
  .icon-btn { display: grid; }
  .hero { align-items: flex-end; text-align: center; }
  .hero .wrap { padding-block: 360px 36px; }
  .hero-in { margin-inline: auto; }
  .logo { margin: 0 auto 14px; width: 180px; }
  .sub { margin-inline: auto; }
  .problem .wrap, .costs, .steps, .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .btn, .icon-btn path, .nav > a.link, .hero-in > *, .nav-wrap, #scene { transition: none; }
  .reveal.wait, .hero-in > *, #scene { opacity: 1; transform: none; animation: none; }
  .nav-wrap { animation: none; opacity: 1; }
  .sheet-menu a { animation: none; opacity: 1; transform: none; }
}

.reach { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .85fr); gap: 20px 16px; margin: 0; }
.reach-k { display: block; margin: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.reach a, .reach span:last-child { display: block; color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: normal; word-break: normal; }
.reach a[href^="mailto"] { font-size: .95rem; line-height: 1.35; }
.reach a:hover { text-decoration: underline; text-underline-offset: 4px; }
.logo-link { display: block; width: fit-content; }
#problem, #how, #access { scroll-margin-top: 96px; }
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
@media (max-width: 760px) {
  .logo-link { margin-inline: auto; }
  .reach { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; }
  .reach a, .reach span:last-child { white-space: nowrap; }
}

/* links page: solid brand buttons on a solid field, no glass */
.links-page {
  min-height: 100vh; min-height: 100dvh; margin: 0;
  background: var(--base);
  display: flex; flex-direction: column; align-items: center;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 16px 48px;
}
.links-top { direction: ltr; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 28px; }
.links-top .lang { min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); }
.links-top .logo { width: clamp(180px, 42vw, 260px); margin: 0; }
.links { width: min(100%, 22rem); display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.links .btn { width: 100%; background: var(--paper); }
.links .powered { margin: 10px 0 0; padding: 0; border: 0; text-align: center; }
.links-top .lang, .links-top .logo, .links .btn, .links .powered { animation: pop-in .65s var(--ease) both; }
.links-top .lang { animation-delay: .04s; }
.links-top .logo { animation-delay: .14s; }
.links .btn:nth-child(1) { animation-delay: .26s; }
.links .btn:nth-child(2) { animation-delay: .34s; }
.links .btn:nth-child(3) { animation-delay: .42s; }
.links .btn:nth-child(4) { animation-delay: .5s; }
.links .btn:nth-child(5) { animation-delay: .58s; }
.links .powered { animation-delay: .68s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(28px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .links-top .lang, .links-top .logo, .links .btn, .links .powered { animation: none; opacity: 1; transform: none; }
}
