/* Sabete website. The app's own "Gesh" look: the sunset gradient, rounded
   mastheads, emoji as pictures, Noto Kufi Arabic. Logical properties
   throughout, so the same rules lay out Kurdish and Arabic right-to-left. */

:root {
  --pomegranate: #ff3e8a;
  --berry: #7b2ff7;
  --accent: #a626c9;
  --sunset: var(--pomegranate);
  --rose: var(--berry);
  --ink: #1b1420;
  --muted: #6e6577;
  --paper: #fffafc;
  --mist: #f8f1f6;
  --leaf: #17a35a;
  --line: rgba(27, 20, 32, 0.09);
  --gradient: linear-gradient(135deg, var(--pomegranate), var(--berry));
  --radius-hero: 56px;
  --shadow-phone: 0 40px 80px -30px rgba(180, 20, 120, 0.5), 0 12px 24px -12px rgba(27, 20, 32, 0.3);
  --font: "IBM Plex Sans Arabic", "Bricolage Grotesque", system-ui, sans-serif;
  color-scheme: light;
}

:root[lang="ckb"],
:root[lang="ar"] {
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pomegranate: #f0367e;
    --berry: #6e28e6;
    --accent: #d494ff;
    --ink: #f7f0f4;
    --muted: #b3a8b9;
    --paper: #140f17;
    --mist: #1e1722;
    --line: rgba(255, 255, 255, 0.1);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

:root[lang="ckb"] body,
:root[lang="ar"] body {
  line-height: 1.95;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sunset);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- header ---------- */

.top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 5;
  color: #fff;
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  text-decoration: none;
  margin-inline-end: auto;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}
.langs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.langs a {
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.langs a[aria-current="true"] {
  background: #fff;
  color: #1b1420;
}
.top .get {
  display: none;
}

/* ---------- buttons ---------- */

.play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px 14px 22px;
  border-radius: 999px;
  background: #fff;
  color: #1b1420;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 16px 32px -16px rgba(60, 10, 30, 0.6);
  transition: transform 0.15s ease;
}
.play:hover {
  transform: translateY(-2px);
}
.play svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.play.dark {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--gradient);
  color: #fff;
  border-end-start-radius: var(--radius-hero);
  border-end-end-radius: var(--radius-hero);
  padding-block: 120px 0;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: end;
}
.hero-copy {
  padding-block-end: 20px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 84px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  max-width: 11ch;
}
:root[lang="ckb"] .hero h1,
:root[lang="ar"] .hero h1 {
  line-height: 1.3;
  letter-spacing: 0;
}
.hero .lead {
  margin: 20px 0 30px;
  font-size: clamp(18px, 2.4vw, 21px);
  max-width: 32ch;
  opacity: 0.95;
}
.hero .note {
  margin: 16px 0 0;
  font-size: 14px;
  opacity: 0.85;
}

.stage {
  position: relative;
  justify-self: center;
  width: min(320px, 78vw);
  margin-block-end: -70px;
}
.stage .phone {
  transform: rotate(-4deg);
}
[dir="rtl"] .stage .phone {
  transform: rotate(4deg);
}

/* The family, talking: the one moving thing on the page. */
.bubbles {
  position: absolute;
  inset-inline-start: -64px;
  top: 16%;
  display: grid;
  gap: 14px;
  z-index: 2;
}
.bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: #fff;
  color: #1b1420;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 14px 30px -14px rgba(60, 10, 30, 0.55);
  white-space: nowrap;
  width: max-content;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}
[dir="rtl"] .bubble {
  padding: 8px 8px 8px 16px;
}
.bubble:nth-child(1) { animation-delay: 0.6s; }
.bubble:nth-child(2) { animation-delay: 1.5s; margin-inline-start: 34px; }
.bubble:nth-child(3) { animation-delay: 2.4s; margin-inline-start: 10px; }
.bubble b {
  font-weight: 900;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex: none;
}
.bubble:nth-child(2) .avatar::after {
  content: "";
}
@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- phones ---------- */

.phone {
  aspect-ratio: 390 / 844;
  padding: 9px;
  border-radius: 46px;
  background: #140e18;
  box-shadow: var(--shadow-phone);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 37px;
}

/* ---------- sections ---------- */

section {
  padding-block: 110px 0;
}
.section-title {
  margin: 0 0 40px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
:root[lang="ckb"] .section-title,
:root[lang="ar"] .section-title {
  line-height: 1.45;
  letter-spacing: 0;
}

/* steps: a real sequence, so it is numbered */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
}
.steps h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}
.steps p {
  margin: 4px 0 0;
  color: var(--muted);
  max-width: 34ch;
}

/* features: phone beside words, alternating sides */
.feature {
  display: grid;
  gap: 36px;
  align-items: center;
  padding-block: 40px;
}
.feature + .feature {
  border-top: 1px solid var(--line);
}
.feature h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.25;
  font-weight: 900;
  max-width: 18ch;
}
:root[lang="ckb"] .feature h2,
:root[lang="ar"] .feature h2 {
  line-height: 1.5;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 38ch;
}
.feature .shots {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.feature .phone {
  width: min(270px, 70vw);
}
.feature .shots.pair .phone {
  width: min(230px, 42vw);
}
.feature .shots.pair .phone:last-child {
  margin-block-start: 60px;
}

/* extras: a plain two-column list, no boxes */
.extras {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 34px 48px;
}
.extras li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
}
.extras .emoji {
  font-size: 34px;
  line-height: 1.2;
}
.extras h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}
.extras p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 16px;
}

/* faq */
.faq {
  max-width: 760px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 22px;
  font-size: 19px;
  font-weight: 800;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  margin-inline-start: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mist);
  font-size: 22px;
  font-weight: 600;
  flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: -6px 0 24px;
  color: var(--muted);
  max-width: 62ch;
}
.faq a,
.legal a {
  color: var(--rose);
  text-underline-offset: 3px;
}

/* closing call */
.closing {
  padding-block-end: 110px;
}
.closing .card {
  background: var(--gradient);
  color: #fff;
  border-radius: 40px;
  padding: clamp(36px, 7vw, 72px);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.closing h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.2;
  font-weight: 900;
  max-width: 16ch;
}
:root[lang="ckb"] .closing h2,
:root[lang="ar"] .closing h2 {
  line-height: 1.45;
}
.closing p {
  margin: 0 0 12px;
  max-width: 40ch;
  opacity: 0.95;
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding-block: 36px 48px;
  font-size: 15px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}
footer .tag {
  margin-inline-end: auto;
  color: var(--ink);
  font-weight: 700;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
}

/* ---------- legal pages ---------- */

.page-head {
  background: var(--gradient);
  color: #fff;
  border-end-start-radius: 40px;
  border-end-end-radius: 40px;
  padding-block: 110px 48px;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.25;
  font-weight: 900;
}
.page-head p {
  margin: 8px 0 0;
  opacity: 0.9;
  font-size: 15px;
}
.legal {
  max-width: 720px;
  padding-block: 48px 90px;
}
.legal .intro {
  font-size: 19px;
  margin: 0 0 12px;
}
.legal h2 {
  margin: 44px 0 10px;
  font-size: 23px;
  font-weight: 800;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal strong {
  color: var(--ink);
}
.legal ul,
.legal ol {
  padding-inline-start: 1.3em;
  margin: 0;
  display: grid;
  gap: 10px;
}
.legal ol li::marker {
  color: var(--rose);
  font-weight: 800;
}

/* ---------- join page ---------- */

.join {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--gradient);
  display: grid;
  place-items: center;
  padding: 124px 16px 40px;
}
.join .card {
  width: min(460px, 100%);
  background: var(--paper);
  border-radius: 34px;
  padding: 34px 26px 28px;
  box-shadow: 0 40px 80px -30px rgba(80, 10, 30, 0.6);
  text-align: center;
}
.join .basket {
  width: 96px;
  height: 96px;
  margin: -82px auto 14px;
  border-radius: 30px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 52px;
  box-shadow: 0 18px 36px -18px rgba(80, 10, 30, 0.6);
}
.join h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.35;
  font-weight: 900;
}
.join .lead {
  margin: 10px 0 24px;
  color: var(--muted);
}
.join .actions {
  display: grid;
  gap: 10px;
}
.join .open {
  display: block;
  padding: 16px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
}
.join .small {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 15px;
}
.join .play {
  justify-content: center;
  box-shadow: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.join .help {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: start;
}
.join .help h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
}
.join .help ol {
  margin: 0 0 16px;
  padding-inline-start: 1.3em;
  color: var(--muted);
  font-size: 15px;
  display: grid;
  gap: 6px;
}
.copy {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  border: 0;
  background: var(--mist);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.join .bad {
  color: var(--rose);
  font-weight: 700;
}
.join .langs {
  position: absolute;
  top: 18px;
  inset-inline-end: 16px;
  color: #fff;
}

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  .top .get {
    display: inline-flex;
    padding: 8px 18px;
    font-size: 15px;
    box-shadow: none;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps li {
    grid-template-columns: 1fr;
  }
  .extras {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .hero {
    padding-block-start: 150px;
  }
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero-copy {
    padding-block-end: 110px;
  }
  .stage {
    margin-block-end: -90px;
  }
  .bubbles {
    inset-inline-start: -170px;
    top: 30%;
  }
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-block: 64px;
  }
  .feature:nth-of-type(even) .shots {
    order: -1;
  }
  .extras {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .bubbles {
    inset-inline-start: -8px;
    top: 8%;
  }
  .bubble {
    font-size: 13px;
  }
  .langs a {
    padding: 2px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bubble {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .play,
  .faq summary::after {
    transition: none;
  }
}
