@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --color-navy: #012470;
  --color-green: #1b5e20;
  --color-green-light: #e8f5e9;
  --color-text: #1a1a1a;
  --color-bg: #fff;
  --color-muted: #555f6d;
  --color-border: #d6dbe3;
  --font-family: "Vazirmatn", Tahoma, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 2px 8px #01247012;
  --shadow-md: 0 12px 32px #01247018;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 17px/1.9 var(--font-family);
  direction: rtl;
}
img,
svg {
  max-width: 100%;
}
a {
  color: var(--color-navy);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
textarea {
  font: inherit;
}
button,
.button {
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--color-navy);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}
.button:hover,
button:hover {
  filter: brightness(1.12);
}
:focus-visible {
  outline: 3px solid #d68b00;
  outline-offset: 3px;
}
.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  background: #fff;
  padding: 0.7rem;
  z-index: 99;
}
.skip-link:focus {
  inset-block-start: 1rem;
}
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: #ffffffed;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.45rem;
  text-decoration: none;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand img {
  width: 42px;
  height: 42px;
}
.nav-toggle {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 0;
  position: relative;
}
.nav-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
  box-shadow:
    0 -7px 0 currentColor,
    0 7px 0 currentColor;
}
.nav-toggle[aria-expanded="true"]::before {
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: none;
}
.nav-toggle[aria-expanded="true"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}
.nav-list.open {
  display: flex;
  position: absolute;
  inset-block-start: 76px;
  inset-inline: 0;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 1rem 5vw;
  flex-direction: column;
}
.nav-list a {
  font-weight: 700;
  text-decoration: none;
}
.nav-cta {
  display: none;
}
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(145deg, #f5f8ff, #fff 62%);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  color: var(--color-green);
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.45;
  color: var(--color-navy);
  margin: 0.4rem 0;
}
.lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 740px;
}
.download-grid,
.feature-grid,
.value-grid,
.screens-grid,
.steps-grid {
  display: grid;
  gap: 1rem;
}
.download-grid {
  margin-top: 2rem;
}
.download-card,
.card,
.content-panel,
.phone-frame {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.download-card {
  border-block-start: 5px solid var(--color-navy);
}
.download-card.green {
  border-block-start-color: var(--color-green);
}
.download-card h2,
.download-card h3 {
  font-size: 1.17em;
  margin: 0.2rem 0;
  color: var(--color-navy);
}
.download-card.green h2,
.download-card.green h3 {
  color: var(--color-green);
}
.badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.badge {
  background: #f4f6fa;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  min-height: 44px;
}
.section {
  padding: 3.5rem 0;
}
.section-soft {
  background: #f6f8fb;
}
.section-title {
  text-align: center;
  color: var(--color-navy);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 1.8rem;
}
.steps-grid,
.feature-grid,
.value-grid {
  grid-template-columns: 1fr;
}
.card h3 {
  margin: 0.35rem 0;
  color: var(--color-navy);
}
.icon {
  width: 44px;
  height: 44px;
  color: var(--color-green);
}
.phone-frame {
  min-height: 230px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed #aab5c7;
  color: var(--color-muted);
}
.screens-grid {
  grid-template-columns: repeat(2, 1fr);
}
.site-footer {
  background: #071c42;
  color: #fff;
  padding: 2.8rem 0 1rem;
}
.site-footer a {
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.footer-grid h2,
.footer-grid h3 {
  margin-top: 0;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.copyright {
  text-align: center;
  border-top: 1px solid #ffffff40;
  margin-top: 1.8rem;
  padding-top: 1rem;
}
.page-hero {
  padding: 2.5rem 0;
  background: #f5f8ff;
}
.page-hero h1 {
  color: var(--color-navy);
  margin: 0;
}
.prose {
  max-width: 850px;
}
.prose h2 {
  color: var(--color-navy);
  margin-top: 2rem;
}
.prose li {
  margin-block: 0.4rem;
}
@media (max-width: 640px) {
  body .prose table,
  body .prose table thead,
  body .prose table tbody,
  body .prose table th,
  body .prose table td,
  body .prose table tr {
    display: block;
  }
  body .prose table thead {
    display: none;
  }
  body .prose table tr {
    margin-bottom: 16px;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--color-bg-card, #fff);
  }
  body .prose table tbody tr:nth-child(even),
  body .prose table tbody tr:hover {
    background: var(--color-bg-card, #fff);
  }
  body .prose table td {
    border: none;
    padding: 6px 0;
    position: static;
    padding-right: 0;
  }
  body .prose table td:first-child {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--color-primary, #012470);
    border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
    padding: 0 0 10px;
    margin-bottom: 6px;
  }
  body .prose table td:first-child::before {
    content: none;
  }
  body .prose table td:not(:first-child) {
    padding-top: 8px;
  }
  body .prose table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    position: static;
    right: auto;
    top: auto;
    font-weight: 600;
    font-size: 0.8em;
    color: var(--color-primary, #012470);
    opacity: 0.75;
    margin-bottom: 2px;
  }
  body .prose table td:last-child {
    padding-bottom: 0;
  }
}
@media (prefers-color-scheme: dark) {
  body .prose table tr {
    background: #1a1a1a;
  }
  body .prose table tbody tr:nth-child(even),
  body .prose table tbody tr:hover {
    background: #1a1a1a;
  }
  body .prose table td:first-child {
    color: #90caf9;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  body .prose table td:not(:first-child)::before {
    color: #90caf9;
  }
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  text-align: right;
  background: transparent;
  color: var(--color-navy);
  padding: 1rem 0;
  justify-content: space-between;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 260px;
  padding-block-end: 1rem;
}
.form-field {
  display: grid;
  gap: 0.4rem;
  margin-block: 1rem;
}
.form-field input,
.form-field textarea {
  padding: 0.75rem;
  border: 1px solid #9aa4b2;
  border-radius: 8px;
  min-height: 48px;
}
.form-field textarea {
  min-height: 150px;
}
.muted {
  color: var(--color-muted);
}
.notice {
  padding: 1rem;
  border-inline-start: 4px solid var(--color-green);
  background: #eff7ef;
}
.store-link {
  scroll-margin-top: 90px;
}
/* Pricing components */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pricing-card.free {
  border-color: var(--color-muted);
}
.pricing-card.featured {
  border: 2px solid var(--color-navy);
  box-shadow: var(--shadow-md);
}
.popular-badge {
  position: absolute;
  inset-block-start: -0.8rem;
  inset-inline-start: 1rem;
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.pricing-card h2,
.pricing-card h3 {
  margin: 0.2rem 0;
  color: var(--color-navy);
}
.pricing-price {
  color: var(--color-navy);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.pricing-price small {
  font-size: 0.95rem;
  color: var(--color-text);
}
.pricing-period {
  color: var(--color-muted);
  font-size: 0.95rem;
}
.pricing-savings {
  align-self: flex-start;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--color-green-light);
  color: var(--color-green);
  font-size: 0.9rem;
  font-weight: 700;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: grid;
  gap: 0.35rem;
}
.pricing-features li {
  padding-inline-start: 1.5rem;
  position: relative;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--color-green);
  font-weight: 700;
}
.pricing-cta {
  width: 100%;
  margin-block-start: auto;
}
.pricing-mini .pricing-price {
  font-size: 1.45rem;
}
.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}
.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: center;
}
.compare-table th,
.compare-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--color-border);
}
.compare-table thead {
  background: #f5f8ff;
  color: var(--color-navy);
}
.compare-table th:first-child,
.compare-table td:first-child {
  text-align: right;
}
.comparison-mark {
  font-weight: 700;
  color: var(--color-green);
}
.comparison-mark.no {
  color: var(--color-muted);
}
.pricing-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.5rem;
}
.pricing-summary {
  font-size: 1.08rem;
}
@media (min-width: 640px) {
  .download-grid,
  .steps-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    padding-block: 5rem;
  }
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
  .nav-toggle {
    display: none;
  }
  .nav-list {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-wrap {
    justify-content: flex-start;
  }
  .nav-list {
    margin-inline-start: auto;
  }
  .nav-list.open {
    position: static;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    background: transparent;
  }
  .pricing-grid.four-up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .container {
    width: min(1160px, calc(100% - 48px));
  }
  .section {
    padding-block: 4rem;
  }
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .button,
  .nav-toggle {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
  .section,
  .page-hero {
    padding: 1rem 0;
    background: #fff;
  }
  .container {
    width: 100%;
  }
  a {
    color: #000;
    text-decoration: none;
  }
}

/* Screenshots carousel */
.screens-intro {
  text-align: center;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.9;
}
.screens-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: 1rem 1.5rem;
  margin-inline: calc(-1 * 5vw);
  padding-inline: 5vw;
  -webkit-overflow-scrolling: touch;
}
.screens-carousel::-webkit-scrollbar {
  height: 6px;
}
.screens-carousel::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}
.screens-track {
  display: flex;
  flex-direction: row;
  direction: rtl;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.screen-slide {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: center;
  text-align: center;
}
.screen-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.screen-button:hover,
.screen-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.screen-button img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.screen-caption {
  margin-block-start: 0.75rem;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.95rem;
}
.screens-hint {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-block-start: 1rem;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-content {
  max-width: min(420px, 95vw);
  max-height: 92vh;
  display: grid;
  gap: 0.75rem;
  text-align: center;
}
.lightbox-image {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  color: #fff;
  font-weight: 700;
  margin: 0;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-height: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-close {
  inset-block-start: 1rem;
  inset-inline-end: 1rem;
}
.lightbox-prev {
  inset-inline-start: 1rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  inset-inline-end: 1rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
}
@media (min-width: 640px) {
  .screen-slide {
    width: 300px;
  }
}
@media (min-width: 900px) {
  .screen-slide {
    width: 320px;
  }
  .screens-carousel {
    margin-inline: 0;
    padding-inline: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .screen-button {
    transition: none;
  }
  .screens-carousel {
    scroll-behavior: auto;
  }
}

/* Screenshot section variants */
.screens-section--elder .screen-caption {
  color: var(--color-navy);
}
.screens-section--caregiver .screen-caption {
  color: var(--color-green);
}

.prose .screens-carousel {
  margin-inline: 0;
  padding-inline: 0;
}
.screens-section h3 {
  color: var(--color-navy);
  margin-block: 1.5rem 1rem;
}

/* ===== Hero download card app icons (SVG) ===== */
.download-card .icon.app-icon-img {
  width: 64px;
  height: 64px;
  min-width: 128px;
  min-height: 128px;
  max-width: 128px;
  max-height: 128px;
  border-radius: 16px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  background: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  padding: 4px;
  box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
  .download-card .icon.app-icon-img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  }
}

/* ───────── Store badges (image links) ───────── */
.store-link {
  display: inline-block;
  line-height: 0;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
  border-radius: 10px;
}
.store-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.store-link:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 3px;
}
.store-link img {
  display: block;
  width: min(320px, 100%);
  height: auto;
  aspect-ratio: 180 / 53;
  object-fit: contain;
  object-position: center;
}

/* ───────── QR row inside download cards ───────── */
.qr-row {
  display: flex;
  gap: 3rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--color-border);
  justify-content: center;
  flex-wrap: wrap;
}
.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.qr-item img {
  display: block;
  width: 180px;
  height: 180px;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 18px rgba(1, 36, 112, 0.08);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.qr-item:hover img {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(1, 36, 112, 0.14);
}
.qr-item span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
}

/* Hide QR on small screens (users are already on mobile) */
@media (max-width: 640px) {
  .qr-row {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .qr-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

.download-card {
  text-align: center;
}

.badges {
  justify-content: center;
}
