:root {
  color-scheme: dark;
  --bg: #111014;
  --cream: #f5f1ea;
  --body: #d6d1c8;
  --muted: #9a958c;
  --saffron: #f4b942;
  --green: #2fb37a;
  --green-deep: #1f7f57;
  --ink: #0b1a12;
  --line: #2f2d36;
  --card: #1b1a20;
  --raised: #232128;
  --clay: #3a2418;
  --nav-bg: rgba(17, 16, 20, 0.92);
  --nav-bg-solid: rgba(17, 16, 20, 0.98);
  --band: #1a1814;
  --accent-glow: rgba(47, 179, 122, 0.16);
  --saffron-glow: rgba(244, 185, 66, 0.1);
  --card-grad: rgba(27, 26, 32, 0.95);
  --loop-wash: rgba(22, 20, 26, 0.85);
  --why-wash: rgba(58, 36, 24, 0.55);
  --why-fade: rgba(17, 16, 20, 0.2);
  --story-wash: rgba(58, 36, 24, 0.4);
  --story-fade: rgba(17, 16, 20, 0.15);
  --cta-grad-a: #232128;
  --cta-grad-b: #1b1a20;
  --error-bg: rgba(180, 60, 60, 0.18);
  --error-border: rgba(220, 100, 100, 0.45);
  --error-text: #f0c2c2;
  --on-pill-hover: #f5f1ea;
  --select-fg: #f5f1ea;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--body);
  background: var(--bg);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3eee5;
  --cream: #15130f;
  --body: #3a362f;
  --muted: #6b655b;
  --saffron: #c98a12;
  --green: #249a68;
  --green-deep: #155c3e;
  --ink: #0b1a12;
  --line: #ddd5c8;
  --card: #fffcf7;
  --raised: #ebe4d8;
  --clay: #e8d5c8;
  --nav-bg: rgba(243, 238, 229, 0.92);
  --nav-bg-solid: rgba(243, 238, 229, 0.98);
  --band: #ebe4d8;
  --accent-glow: rgba(36, 154, 104, 0.14);
  --saffron-glow: rgba(201, 138, 18, 0.12);
  --card-grad: rgba(255, 252, 247, 0.95);
  --loop-wash: rgba(235, 228, 216, 0.85);
  --why-wash: rgba(232, 213, 200, 0.55);
  --why-fade: rgba(243, 238, 229, 0.2);
  --story-wash: rgba(232, 213, 200, 0.4);
  --story-fade: rgba(243, 238, 229, 0.15);
  --cta-grad-a: #ebe4d8;
  --cta-grad-b: #fffcf7;
  --error-bg: rgba(176, 68, 32, 0.12);
  --error-border: rgba(176, 68, 32, 0.35);
  --error-text: #a8432a;
  --on-pill-hover: #f5f1ea;
  --select-fg: #15130f;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(47, 179, 122, 0.35); color: var(--select-fg); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.wrap { width: min(1100px, calc(100% - 2.5rem)); margin: 0 auto; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.05;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}
.wordmark { display: flex; flex-direction: column; }
.brand small {
  display: block;
  font-family: "IBM Plex Sans Arabic", serif;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}
.navlinks { display: flex; gap: 1.1rem; margin-left: auto; }
.navlinks a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.navlinks a:hover { color: var(--cream); }

.menu-toggle {
  display: none;
  margin-left: auto;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle:hover {
  background: var(--raised);
  border-color: var(--muted);
}
.nav.is-open .navlinks {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 0.85rem 1.25rem 1.1rem;
  gap: 0.85rem;
  background: var(--nav-bg-solid);
  border-bottom: 1px solid var(--line);
}
.nav.is-open .pill {
  position: relative;
  z-index: 5;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.nav > .brand + .theme-toggle,
.top > .brand + .theme-toggle {
  margin-left: auto;
}
.theme-toggle:hover {
  background: var(--raised);
  border-color: var(--muted);
}
/* Show the icon for the mode you switch into (sun in dark, moon in light). */
html:not([data-theme="light"]) .theme-toggle [data-icon="dark"] { display: none; }
html[data-theme="light"] .theme-toggle [data-icon="light"] { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease;
}
.pill:hover { background: var(--green-deep); color: var(--on-pill-hover); }
.pill.big { padding: 0 1.35rem; min-height: 48px; }
.pill.ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
}
.pill.ghost:hover {
  background: var(--raised);
  color: var(--cream);
  border-color: var(--muted);
}
button.pill {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.text-link {
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.text-link:hover { border-color: var(--saffron); color: var(--saffron); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 2.8rem;
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  pointer-events: none;
  position: absolute;
  inset: -20% -10% auto 40%;
  height: 120%;
  background:
    radial-gradient(ellipse at 70% 40%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse at 40% 70%, var(--saffron-glow), transparent 50%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem 4rem;
  align-items: center;
}
.arabic-mark {
  margin: 0 0 0.75rem;
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--saffron);
  letter-spacing: 0.02em;
}
h1 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  font-size: 1.2rem;
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.4rem;
  margin-top: 1.6rem;
}

.phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.phone {
  position: relative;
  width: min(270px, 70vw);
  aspect-ratio: 720 / 1566;
  max-height: 560px;
  border-radius: 36px;
  border: 8px solid #2c2a32;
  overflow: hidden;
  background: #0c0b0e;
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(245, 241, 234, 0.04);
  transform: rotate(-6deg);
  animation: phone-settle 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.demo,
.demo-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-still { display: none; }

/* Loop — Kiku rhythm: max ~1100, gap-24/32 between rows, alternate flip */
.loop {
  padding: 5rem 0 7rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--loop-wash), transparent 18%),
    var(--bg);
}
.features {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
  align-items: center;
}
.feature > * { min-width: 0; }
.feature-flip > :first-child { order: 2; }
.feature-flip > :last-child { order: 1; }
.plans h2,
.download h2,
.why h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.band-copy h3 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.band-copy p {
  margin: 0.7rem 0 0;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.55;
}
.shot {
  margin: 0 auto;
  width: min(280px, 72%);
  aspect-ratio: 1206 / 2622;
  border-radius: 36px;
  border: 8px solid #2c2a32;
  overflow: hidden;
  background: #0c0b0e;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  justify-self: center;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Why */
.why {
  padding: 4.5rem 0;
  background:
    linear-gradient(180deg, var(--why-wash), var(--why-fade)),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-inner { max-width: 40rem; }
.why blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}
.why blockquote p {
  margin: 0 0 1rem;
  color: var(--cream);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.why-sign {
  margin: 1.4rem 0 0;
  color: var(--saffron);
  font-weight: 600;
}

/* Plans */
.plans { padding: 3.5rem 0 3rem; }
.plans .lede { margin-top: 0.7rem; }
.plan-feature {
  display: block;
  margin-top: 1.8rem;
  padding: 1.4rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent-glow), var(--card-grad));
  border: 1px solid rgba(47, 179, 122, 0.45);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease;
}
.plan-feature:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}
.plan-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
}
.plan-feature strong,
.plan-rest strong {
  display: block;
  color: var(--cream);
  font-size: 1.45rem;
}
.plan-feature span,
.plan-rest span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.4;
}
.plan-rest {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.plan-rest li {
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.fine { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }

/* Download */
.download {
  position: relative;
  overflow: hidden;
  padding: 4.8rem 0;
  background: var(--band);
  border-top: 1px solid var(--line);
}
.download-inner { position: relative; z-index: 1; max-width: 28rem; }
.download h2 { max-width: 12ch; }
.download p {
  margin: 0.8rem 0 0;
  max-width: 28rem;
  font-size: 1.1rem;
  line-height: 1.45;
}
.download .pill { margin-top: 1.5rem; }
.jasmine {
  position: absolute;
  right: 4vw;
  bottom: 0;
  width: min(300px, 44vw);
  pointer-events: none;
}

/* Early / waitlist */
.early-page .nav { justify-content: space-between; }
.early {
  position: relative;
  overflow: hidden;
  padding: 2.4rem 0 3.5rem;
  min-height: calc(100vh - 140px);
}
.early .hero-glow {
  inset: -30% 0 auto -20%;
  height: 90%;
}
.early-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: start;
}
.early-copy h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.founding-card {
  margin-top: 1.8rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent-glow), var(--card-grad));
  border: 1px solid rgba(47, 179, 122, 0.45);
  max-width: 28rem;
}
.founding-card strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--cream);
  font-size: 1.35rem;
}
.founding-card > p {
  margin: 0.55rem 0 0;
  color: var(--body);
  line-height: 1.45;
}
.founding-card .pill { margin-top: 1.1rem; }
.founding-card .fine { margin-top: 0.85rem; }

.early-form-card {
  padding: 1.5rem 1.45rem 1.6rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}
.early-form-card h2 {
  margin: 0;
  color: var(--cream);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.form-lede {
  margin: 0.45rem 0 1.2rem;
  color: var(--muted);
  line-height: 1.4;
}
.early-form-card form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.early-form-card label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
}
.early-form-card .optional {
  font-weight: 400;
  color: var(--muted);
}
.early-form-card input,
.early-form-card select,
.early-form-card textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--cream);
  font: inherit;
  font-weight: 400;
}
.early-form-card textarea { resize: vertical; min-height: 5.5rem; }
.early-form-card input::placeholder,
.early-form-card textarea::placeholder { color: var(--muted); }
.early-form-card .pill { width: 100%; margin-top: 0.25rem; }
.early-form-card .fine { margin: 0; text-align: center; }
.early-form-card .fine a { color: var(--cream); }
.hp { position: absolute; left: -9999px; }

.thanks { display: flex; align-items: center; }
.thanks-inner { max-width: 32rem; padding: 2rem 0 3rem; }
.thanks-inner .pill { margin-top: 1.4rem; }
.thanks-inner .fine { margin-top: 1.2rem; }
.thanks-inner .fine a { color: var(--saffron); }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--cream); }
.foot-copy {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.88rem;
}
.form-status {
  display: none;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.4;
}
.form-status.is-error {
  display: block;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}
.early-form-card :user-invalid {
  border-color: rgba(220, 100, 100, 0.7);
}

/* SEO guide / keyword landing pages */
.guide-page .nav { justify-content: space-between; }
.guide {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.4rem 0 3.5rem;
}
.guide-kicker {
  margin: 0 0 0.65rem;
  color: var(--saffron);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.guide h1 {
  margin: 0 0 0.85rem;
  color: var(--cream);
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.guide .lede {
  margin: 0 0 1.6rem;
  max-width: 36ch;
  color: var(--body);
  font-size: 1.15rem;
  line-height: 1.45;
}
.guide h2 {
  margin: 2.1rem 0 0.7rem;
  color: var(--cream);
  font-size: 1.25rem;
  line-height: 1.3;
}
.guide h3 {
  margin: 1.4rem 0 0.45rem;
  color: var(--cream);
  font-size: 1.05rem;
}
.guide p, .guide li {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--body);
}
.guide ul, .guide ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}
.guide li + li { margin-top: 0.4rem; }
.guide a { color: var(--cream); }
.guide-cta {
  margin: 2.2rem 0 0;
  padding: 1.35rem 1.3rem 1.45rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--cta-grad-a), var(--cta-grad-b) 55%);
}
.guide-cta h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}
.guide-cta p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}
.guide-cta .pill { display: inline-flex; }
.guide-related {
  margin: 2.4rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.guide-related h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
}
.guide-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.guide-related a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
}
.guide-related a:hover { border-color: var(--green); }
.guide-related span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.4;
}
.guide-section-label {
  margin: 2.2rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.guides-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}
.guides-list a {
  display: block;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: var(--cream);
  font-weight: 700;
  font-size: 1.08rem;
}
.guides-list a:hover { border-color: var(--green); }
.guides-list span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Phrase rows read like a caption: Arabic, Latin, gloss. */
.guide .phrase-list,
.guide .split-words {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}
.guide .phrase-list li,
.guide .split-words li {
  margin: 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.guide .phrase-list li:last-child,
.guide .split-words li:last-child {
  border-bottom: 1px solid var(--line);
}
.guide .phrase-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 14rem);
  column-gap: 1.25rem;
  align-items: center;
}
.guide .phrase-main {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.guide .phrase-ar,
.guide .split-side b {
  margin: 0;
  font-family: "Noto Naskh Arabic", serif;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.35;
}
.guide .phrase-ar { font-size: 1.7rem; }
.guide .phrase-latin {
  margin: 0.1rem 0 0;
  color: var(--saffron);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.guide .phrase-gloss {
  margin: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.guide .split-words li {
  display: grid;
  grid-template-columns: 5.5rem 1fr 1fr;
  gap: 0.35rem 1rem;
  align-items: baseline;
}
.guide .split-meaning {
  margin: 0;
  color: var(--cream);
  font-weight: 600;
}
.guide .split-side {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.1rem;
}
.guide .split-side b { font-size: 1.35rem; }
.guide .split-side span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}
@media (max-width: 640px) {
  .guide .phrase-list li,
  .guide .split-words li {
    grid-template-columns: 1fr;
  }
  .guide .phrase-gloss {
    grid-column: 1;
    grid-row: auto;
    text-align: right;
    margin-top: 0.15rem;
  }
}

/* Homepage dialect row. Arabic is the mark. Status is the only extra. */
.dialect-rail {
  padding: 4.2rem 0 4.6rem;
  border-top: 1px solid var(--line);
}
.dialect-rail h2 { max-width: 14ch; }
.dialect-rail .lede {
  max-width: 36rem;
  margin-top: 0.75rem;
}
.dialect-picks {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.dialect-picks a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 9.2rem;
  padding: 1.05rem 0.85rem 1.1rem 0;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.dialect-picks li:last-child a { border-right: 0; padding-right: 0; }
.dialect-picks a:hover .dialect-ar { color: var(--saffron); }
.dialect-ar {
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  font-weight: 700;
  line-height: 1.3;
}
.dialect-name { font-weight: 600; font-size: 1rem; }
.dialect-state { color: var(--muted); font-size: 0.9rem; }
.dialect-state.is-open { color: var(--green); }
.dialect-rail .text-link { margin-top: 0.2rem; }
@media (max-width: 800px) {
  .dialect-picks { grid-template-columns: 1fr 1fr; }
  .dialect-picks a { padding-left: 0; padding-right: 0.85rem; border-right: 0; }
  .dialect-picks li:nth-child(odd) a { padding-right: 0.85rem; }
}

/* Legal pages */
.doc-page { color: var(--body); }
.doc { width: min(40rem, calc(100% - 2.5rem)); margin: 0 auto; padding: 2.5rem 0 4rem; }
.doc h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0;
  max-width: 16ch;
}
.note { color: var(--saffron); }
.doc h2 { margin-top: 2rem; font-size: 1.2rem; color: var(--cream); }
.doc h3 { margin-top: 1.35rem; font-size: 1.05rem; color: var(--cream); }
.doc p, .doc li { font-size: 1.02rem; line-height: 1.6; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.doc th, .doc td {
  border: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.doc th { color: var(--cream); font-weight: 600; }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top .links { margin-left: auto; }
.top .pill { flex-shrink: 0; }
.links { display: flex; gap: 1rem; }
.links a { color: var(--muted); text-decoration: none; }

@keyframes phone-settle {
  from {
    opacity: 0;
    transform: rotate(-6deg) translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: rotate(-6deg) translateY(0) scale(1);
  }
}

/* Product theater */
.hero-accent { color: var(--saffron); }
.phone.theater-phone,
.theater-phone {
  transform: none;
  animation: theater-settle 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  display: flex;
  flex-direction: column;
  background: #0c0b0e;
  width: min(280px, 78vw);
  height: min(560px, 72vh);
  max-height: 560px;
  aspect-ratio: auto;
}
@keyframes theater-settle {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.theater-feed {
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.theater-feed::-webkit-scrollbar { display: none; }
.theater-slide {
  height: 100%;
  min-height: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  position: relative;
}
.theater-video {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  background: #000;
}
.theater-meta {
  flex-shrink: 0;
  padding: 0.55rem 0.7rem 0.35rem;
  background: #16141a;
  border-top: 1px solid var(--line);
  text-align: center;
}
.theater-show {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}
.theater-pips {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
}
.theater-pips i {
  display: block;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #3a3842;
}
.theater-pips i.on {
  width: 0.55rem;
  background: var(--saffron);
}
.theater-caption {
  flex-shrink: 0;
  margin: 0;
  padding: 0.75rem 0.85rem 1rem;
  min-height: 4.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.35rem;
  background: #16141a;
  border-top: 1px solid var(--line);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.45;
}
.theater-token {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0.05rem 0.2rem;
  background: rgba(244, 185, 66, 0.16);
  color: var(--saffron);
  font: inherit;
  border-bottom: 1px dotted var(--saffron);
  border-radius: 4px;
  cursor: pointer;
}
.theater-hint {
  margin: 0;
  flex-shrink: 0;
  padding: 0.4rem 0.5rem 0.6rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  background: #16141a;
  border-top: 1px solid var(--line);
}

.band-card {
  position: relative;
  padding: 1.6rem 1.7rem;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Phone / clip chrome stays Kohl so captions stay readable on video. */
.phone,
.theater-phone,
.shot,
.taste-card {
  --cream: #f5f1ea;
  --body: #d6d1c8;
  --muted: #9a958c;
  --line: #2f2d36;
  --saffron: #f4b942;
  --raised: #232128;
  --card: #1b1a20;
  --green: #2fb37a;
}
.band-pain {
  color: var(--muted) !important;
  font-weight: 400 !important;
}
.band-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.band-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.98rem;
}
.band-list li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--saffron);
  flex-shrink: 0;
}

.taste-stage {
  width: min(480px, 100%);
  max-width: 100%;
  justify-self: center;
  overflow: hidden;
}
.taste-rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 0.8rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.taste-rail::-webkit-scrollbar { display: none; }
.taste-card {
  flex: 0 0 140px;
  scroll-snap-align: center;
  appearance: none;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0c0b0e;
  cursor: pointer;
  opacity: 0.55;
  transform: scale(0.97);
  transition: opacity 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  text-align: left;
  color: var(--cream);
}
.taste-card.is-active {
  opacity: 1;
  transform: scale(1.03);
  box-shadow: 0 0 0 2px var(--saffron);
}
.taste-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
}
.taste-card span {
  display: block;
  padding: 0.45rem 0.55rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  margin-top: -2.2rem;
  position: relative;
}
.taste-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}
.taste-dots button {
  appearance: none;
  border: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #3a3842;
  padding: 0;
  cursor: pointer;
}
.taste-dots button.is-active {
  width: 0.75rem;
  background: var(--saffron);
}

.sheet-demo { width: min(420px, 100%); justify-self: center; }
.sheet-line {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.sheet-line button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(245, 241, 234, 0.45);
  font: inherit;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 10px;
}
.sheet-line button.is-focus {
  color: var(--saffron);
  background: rgba(244, 185, 66, 0.12);
  border: 1px dotted var(--saffron);
}
.sheet-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.sheet-head {
  padding: 1rem 1.15rem 0.5rem;
}
.sheet-head h4 {
  margin: 0;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.7rem;
  color: var(--cream);
}
.sheet-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.sheet-body {
  padding: 0.4rem 1.15rem 1rem;
  min-height: 5.5rem;
}
.sheet-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sheet-body p:last-child {
  margin: 0;
  color: var(--cream);
  line-height: 1.45;
  font-size: 0.98rem;
}
.sheet-mastery {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--line);
}
.sheet-mastery button {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  border: 0;
  background: var(--raised);
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.sheet-mastery button.is-picked {
  background: rgba(244, 185, 66, 0.18);
  color: var(--saffron);
}

.review-demo {
  width: min(380px, 100%);
  justify-self: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 200ms ease, opacity 200ms ease;
}
.review-demo.is-graded {
  transform: scale(0.97);
  opacity: 0.7;
}
.review-still {
  height: 140px;
  background: #0c0b0e;
  overflow: hidden;
}
.review-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-face {
  appearance: none;
  border: 0;
  width: 100%;
  margin: 0;
  padding: 1.35rem 1.2rem 1.1rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: center;
}
.review-sentence {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-family: "Noto Naskh Arabic", serif;
  font-size: 0.9rem;
}
.review-face h3 {
  margin: 0;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 2rem;
  color: var(--cream);
}
.review-reading {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.review-reveal {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.review-gloss {
  margin: 0;
  color: var(--saffron);
  font-size: 1.1rem;
  font-weight: 700;
}
.review-hint {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  animation: pulse-hint 1.6s ease-in-out infinite;
}
@keyframes pulse-hint {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.review-grades {
  padding: 0 1rem 1.1rem;
  text-align: center;
}
.review-grades > p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.review-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.review-btns button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem 0.5rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.review-btns button[data-grade="again"] {
  background: rgba(180, 70, 50, 0.16);
  color: #e07a62;
  border-color: rgba(180, 70, 50, 0.35);
}
.review-btns button[data-grade="good"] {
  background: rgba(47, 179, 122, 0.16);
  color: var(--green);
  border-color: rgba(47, 179, 122, 0.4);
}

.story {
  padding: 5rem 0 7rem;
  background:
    linear-gradient(180deg, var(--story-wash), var(--story-fade)),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story h2 {
  margin: 0 0 2.5rem;
  max-width: 18ch;
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.story-rail {
  display: grid;
  gap: 4.5rem;
}
.story-beat {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem 3.5rem;
  align-items: start;
}
.story-beat-flip {
  grid-template-columns: 1.1fr 0.9fr;
}
.story-beat-flip .story-shot { order: 2; }
.story-beat-text {
  grid-template-columns: 1fr;
  max-width: 40rem;
}
.story-shot {
  margin: 0;
  position: relative;
}
.story-shot img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.story-shot figcaption {
  position: absolute;
  top: -0.85rem;
  right: 12%;
  transform: rotate(-3deg);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
}
.story-tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--saffron);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.story-lead {
  margin: 0 0 0.85rem;
  color: var(--cream);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}
.story-copy p {
  margin: 0 0 0.75rem;
  color: var(--body);
  line-height: 1.55;
  max-width: 36rem;
}

@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
  .phone { transform: none; animation: none; }
  .theater-phone { animation: none; }
  .demo { display: none; }
  .demo-still { display: block; }
  .plan-feature:hover { transform: none; }
  .review-hint { animation: none; }
  .taste-card { transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .wrap { width: min(1100px, calc(100% - 1.5rem)); }
  .nav {
    position: sticky;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.7rem 0.9rem;
  }
  .navlinks { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav .pill { margin-left: 0; }
  .hero {
    padding: 1.6rem 0 1.8rem;
  }
  .hero-inner,
  .feature,
  .plan-rest,
  .early-grid,
  .story-beat,
  .story-beat-flip {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .feature-flip > :first-child,
  .feature-flip > :last-child { order: 0; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-actions {
    justify-content: center;
    margin-top: 1.2rem;
  }
  h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }
  .story-beat-flip .story-shot { order: 0; }
  .phone-stage {
    min-height: 0;
    padding-bottom: 0.4rem;
  }
  .theater-phone,
  .phone.theater-phone {
    width: min(300px, 86vw);
    height: min(480px, 58vh);
    max-height: 500px;
    border-width: 7px;
    border-radius: 32px;
  }
  .loop { padding: 3.2rem 0 4rem; }
  .features { gap: 3.2rem; }
  .band-card {
    padding: 1.2rem 1.2rem;
  }
  .band-copy h3 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }
  .band-copy p {
    font-size: 1.02rem;
  }
  .taste-stage,
  .sheet-demo,
  .review-demo {
    width: 100%;
    max-width: 420px;
    justify-self: center;
  }
  .taste-card { flex-basis: 128px; }
  .sheet-line { font-size: 1.15rem; }
  .sheet-mastery button {
    width: 2.35rem;
    height: 2.35rem;
  }
  .review-btns button { min-height: 44px; }
  .story { padding: 2.8rem 0 3rem; }
  .story h2 {
    max-width: none;
    margin-bottom: 1.6rem;
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }
  .story-rail { gap: 2.2rem; }
  .story-shot figcaption {
    right: auto;
    left: 0.8rem;
    top: -0.7rem;
  }
  .story-shot img { max-width: none; }
  .download { padding: 3.2rem 0 3.6rem; }
  .download-inner { max-width: none; text-align: center; }
  .download h2 { max-width: none; margin-left: auto; margin-right: auto; }
  .download p { margin-left: auto; margin-right: auto; }
  .jasmine {
    opacity: 0.9;
    width: min(200px, 46vw);
    right: -0.5rem;
    bottom: -0.4rem;
  }
  .founding-card { max-width: none; }
  .foot {
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding: 1.1rem 0 1.4rem;
  }
  .foot-copy { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .wrap { width: calc(100% - 1.15rem); }
  .nav .pill { min-height: 40px; padding: 0 0.85rem; font-size: 0.88rem; }
  .pill.big { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .theater-phone,
  .phone.theater-phone {
    width: min(320px, 92vw);
    height: min(500px, 56vh);
  }
  .theater-caption { font-size: 0.88rem; min-height: 3.6rem; padding: 0.6rem 0.7rem 0.85rem; }
  .band-list li { font-size: 0.95rem; }
  .story-lead { font-size: 1.05rem; }

  /* Early: compact founding + waitlist above the fold (phones only) */
  .early-page .nav {
    padding: 0.55rem 0.85rem;
  }
  .early-page .nav .logo {
    width: 28px;
    height: 28px;
  }
  .early-page .nav .brand {
    font-size: 1rem;
  }
  .early-page .nav .brand small {
    display: none;
  }
  .early {
    padding: 0.45rem 0 0.85rem;
    min-height: auto;
  }
  .early-grid {
    gap: 0.6rem;
  }
  .early-copy .arabic-mark {
    display: none;
  }
  .early-copy h1 {
    font-size: 1.2rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
  }
  .early-copy .lede {
    display: none;
  }
  .founding-card {
    margin-top: 0.4rem;
    padding: 0.65rem 0.8rem 0.75rem;
    border-radius: 14px;
  }
  .founding-card .plan-tag {
    font-size: 0.78rem;
  }
  .founding-card strong {
    font-size: 1.05rem;
    margin-top: 0.1rem;
  }
  .founding-card > p,
  .founding-card .fine {
    display: none;
  }
  .founding-card .pill {
    margin-top: 0.55rem;
    min-height: 44px;
  }
  .early-form-card {
    padding: 0.75rem 0.8rem 0.85rem;
    border-radius: 14px;
  }
  .early-form-card h2 {
    font-size: 1.15rem;
  }
  .form-lede {
    margin: 0.15rem 0 0.5rem;
    font-size: 0.88rem;
  }
  .early-form-card form {
    gap: 0.45rem;
  }
  .early-form-card label {
    gap: 0.25rem;
    font-size: 0.88rem;
  }
  .early-form-card input,
  .early-form-card select,
  .early-form-card textarea {
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 1rem;
  }
  .early-form-card textarea {
    min-height: 2.5rem;
  }
  .early-form-card .pill {
    min-height: 44px;
  }
  .early-page .foot {
    padding: 0.75rem 0 1rem;
  }
}
