/* CHANGELOG — append newest entry first (ISO date + short bullets).
 * -----------------------------------------------------------------------------
 * 2026-08-25
 * - Sticky top nav stays visible while scrolling.
 * 2026-08-25
 * - Center the Persian letter tiles under the hero paragraph.
 * 2026-08-25
 * - Waitlist copy width matches the hero lede; dropped standalone release line.
 * 2026-08-25
 * - Waitlist form styles (Loops signup under store badges).
 * 2026-08-24
 * - Footer copyright line.
 * 2026-08-24
 * - Release date caption under store badges.
 * 2026-08-24
 * - Styles for guide-based landing: why-grid, callout, HTML class aliases.
 * 2026-08-24
 * - Dark ink on light surfaces; white only on solid teal. Fixes unreadable
 *   white hero/nav text on the mint/cream gradient.
 * 2026-08-23
 * - Letter tiles, how-it-works steps, FAQ, mobile menu, legal-page layout.
 * 2026-08-22
 * - Phone frame for the in-app landing snapshot.
 * 2026-08-22
 * - Marketing landing styles (Citrus Pulse / Magu cream).
 * ----------------------------------------------------------------------------- */

:root {
  --ink: #1a2330;
  --paper: #fff8f0;
  --card: #ffffff;
  --teal: #0f766e;
  --teal-deep: #0b5c56;
  --gold: #f4b400;
  --mint: #d5f0ec;
  --muted: #334155;
  --on-dark: #ffffff;
  --line: rgba(15, 118, 110, 0.18);
  --shadow: 0 18px 40px rgba(15, 118, 110, 0.12);
  --radius: 20px;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--mint) 0%, var(--paper) 32%);
  line-height: 1.5;
}

body.legal {
  background: var(--paper);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-deep);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: var(--on-dark);
  padding: 8px 12px;
}

.skip:focus {
  left: 12px;
  z-index: 110;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(11, 92, 86, 0.18);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: var(--on-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-dark);
  font-weight: 700;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  color: var(--on-dark);
}

.nav-menu {
  display: none;
}

.nav-menu summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--on-dark);
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0 72px;
}

.eyebrow {
  color: var(--teal-deep);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 10px;
}

h1,
h2 {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 16px;
}

.hero h1 {
  color: var(--ink);
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 36rem;
}

.letter-row {
  display: flex;
  gap: 10px;
  margin: 0 0 8px;
  max-width: 36rem;
  justify-content: center;
}

.letter-caption {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
  text-align: center;
}

.tile {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--teal-deep);
  border-radius: 14px;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.55rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.store-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 36rem;
}

.hero .store-block {
  max-width: 36rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-form {
  width: 100%;
  margin-top: 8px;
}

.waitlist-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--ink);
}

.waitlist-hint,
.waitlist-legal {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: none;
}

.waitlist-legal a {
  color: var(--teal-deep);
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.waitlist-form input[type="email"] {
  flex: 1 1 12rem;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.waitlist-form button[type="submit"] {
  min-height: 42px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--teal-deep);
  color: var(--on-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.waitlist-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.waitlist-success,
.waitlist-error {
  margin: 8px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.waitlist-success {
  color: var(--teal-deep);
}

.waitlist-error {
  color: #9f1239;
}

.cta-band .waitlist-title,
.cta-band .waitlist-success {
  color: var(--on-dark);
}

.cta-band .waitlist-hint,
.cta-band .waitlist-legal {
  color: #f4faf9;
}

.cta-band .waitlist-legal a {
  color: #fff;
  text-decoration: underline;
}

.cta-band .waitlist-form input[type="email"] {
  border-color: transparent;
}

.cta-band .waitlist-form button[type="submit"] {
  background: #111;
}

.cta-band .waitlist-error {
  color: #fecdd3;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 8px 14px 8px 10px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  text-decoration: none;
  gap: 10px;
  min-width: 180px;
}

.store-badge.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.store-badge .mark {
  font-size: 1.6rem;
  line-height: 1;
}

.store-badge small {
  display: block;
  font-size: 0.68rem;
  opacity: 0.8;
}

.store-badge strong {
  font-size: 1.05rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.device {
  width: min(320px, 100%);
  margin: 0;
  background: #111;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.device img {
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.section {
  padding: 24px 0 72px;
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.section .intro {
  color: var(--muted);
  margin: 0 0 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.callout {
  margin: 28px 0 0;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
  box-shadow: var(--shadow);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card .num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-deep);
  font-weight: 700;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: magu-step;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  counter-increment: magu-step;
}

.steps li::before {
  content: counter(magu-step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-inline-end: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  vertical-align: middle;
}

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  background: var(--mint);
  color: var(--teal-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
}

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.cta-band {
  background: var(--teal-deep);
  color: var(--on-dark);
  border-radius: 28px;
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 8px;
  color: var(--on-dark);
}

.cta-band p {
  margin: 0;
  color: #f4faf9;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.site-footer .copyright {
  margin: 0 0 8px;
  color: var(--ink);
}

.site-footer .legal {
  font-size: 0.82rem;
  color: var(--muted);
}

.note {
  background: #fff4e5;
  border: 1px solid #f4b400;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0 24px;
}

.prose {
  max-width: 42rem;
}

.prose h1 {
  font-size: 2rem;
  color: var(--ink);
}

.prose h2 {
  font-size: 1.25rem;
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose p strong {
  color: var(--ink);
}

.prose ul {
  padding-inline-start: 1.2rem;
}

@media (max-width: 860px) {
  .hero,
  .grid,
  .why-grid,
  .audience {
    grid-template-columns: 1fr;
  }

  .nav-desktop {
    display: none;
  }

  .nav-menu {
    display: block;
    position: relative;
  }

  .nav-menu .nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    flex-direction: column;
    gap: 0;
    min-width: 180px;
    background: var(--teal-deep);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: var(--shadow);
    z-index: 10;
  }

  .nav-menu .nav a {
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 0.95rem;
  }
}
