/*═══════════════════════════════════════════════════════════════
  ۱) فونت — Estedad، محدودشده به حروف فارسی و لاتین
     در نسخهٔ نهایی: url(fonts/Estedad-Regular.woff2)
═══════════════════════════════════════════════════════════════*/
@font-face {
  font-family: Estedad;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Estedad-Regular.woff2) format("woff2");
}
@font-face {
  font-family: Estedad;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Estedad-Medium.woff2) format("woff2");
}
@font-face {
  font-family: Estedad;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Estedad-Bold.woff2) format("woff2");
}

/*═══════════════════════════════════════════════════════════════
  ۲) توکن‌ها — رنگ‌ها از لوگوی نیواکر استخراج شده‌اند
═══════════════════════════════════════════════════════════════*/
:root {
  --navy: #0b2a5e; /* سرمهٔ لوگو */
  --navy-2: #123c7e;
  --teal: #12908c; /* فیروزهٔ لوگو — رنگ اصلی تعامل */
  --teal-d: #0c6f6c;
  --mint: #21b09e; /* سبز-فیروزهٔ برگ */
  --teal-soft: #e4f1ef;
  --dark: #071b3c; /* پس‌زمینهٔ نوارهای تیره */
  --dark-line: #1d3560;
  --dark-text: #9db2ce;
  --paper: #f4f7f8;
  --surface: #fff;
  --line: #dde4e8;
  --ink: #0e2038;
  --ink-2: #54687f;
  --ink-3: #8a9bac;
  --flag: #c9862a; /* فقط «نیازمند بررسی» */

  --t-h1: clamp(30px, 5vw, 52px);
  --t-h2: clamp(23px, 3.2vw, 34px);
  --t-h3: clamp(16px, 1.5vw, 19px);
  --t-lead: clamp(16px, 1.6vw, 18px);
  --t-num: clamp(32px, 4.6vw, 52px);
  --gap: 20px;
  --pad: clamp(70px, 8.5vw, 112px);
  --wrap: 1080px;
  --r: 14px;
}

/*═══════════════════════════════════════════════════════════════
  ۳) پایه
═══════════════════════════════════════════════════════════════*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  background: var(--paper);
  color: var(--ink);
  font:
    400 16px/1.85 Estedad,
    Tahoma,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}
.sec {
  padding-block: var(--pad);
}
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--navy);
}
h1 {
  font-size: var(--t-h1);
  line-height: 1.26;
}
h2 {
  font-size: var(--t-h2);
}
h3 {
  font-size: var(--t-h3);
}
.lead {
  font-size: var(--t-lead);
  color: var(--ink-2);
  line-height: 1.9;
  max-width: 58ch;
}
.tiny {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.8;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.head {
  max-width: 62ch;
  margin-bottom: 44px;
}
.head h2 {
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font:
    500 15px/1 Estedad,
    Tahoma;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}
.btn--primary {
  background: var(--teal);
  color: #fff;
}
.btn--primary:hover {
  background: var(--teal-d);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--navy);
}
.btn--ghost:hover {
  border-color: var(--navy);
  background: var(--surface);
}

.grid {
  display: grid;
  gap: var(--gap);
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  color: var(--ink-2);
  font-size: 15px;
}

/*═══════════════════════════════════════════════════════════════
  ۴) ریل پیشرفت اسکرول
═══════════════════════════════════════════════════════════════*/
.rail {
  position: fixed;
  inset-inline-end: 24px;
  top: 50%;
  translate: 0 -50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rail__i {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row-reverse;
  padding: 5px 0;
  cursor: pointer;
  background: none;
  border: 0;
  font:
    400 12px Estedad,
    Tahoma;
}
.rail__d {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-3);
  transition: 0.25s;
  flex: 0 0 auto;
}
.rail__t {
  color: var(--ink-2);
  opacity: 0;
  translate: 8px 0;
  transition: 0.25s;
  white-space: nowrap;
}
.rail__i:hover .rail__t,
.rail__i.on .rail__t {
  opacity: 1;
  translate: 0;
}
.rail__i.on .rail__d {
  background: var(--teal);
  border-color: var(--teal);
  scale: 1.3;
}
.rail__i.seen .rail__d {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.pbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--teal);
  transform-origin: right center;
  scale: 0 1;
  z-index: 60;
  display: none;
}

/*═══════════════════════════════════════════════════════════════
  ۵) نوار بالا
═══════════════════════════════════════════════════════════════*/
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
}
.nav__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.logo {
  height: 38px;
  width: 74px;
  background: url(media/logo.png) center/contain no-repeat;
}
.nav__l {
  display: flex;
  gap: 20px;
  margin-inline-start: auto;
  font-size: 15px;
  color: var(--ink-2);
}
.nav__l a:hover {
  color: var(--navy);
}
.lang {
  border: 1px solid var(--line);
  background: none;
  border-radius: 999px;
  padding: 6px 14px;
  font:
    500 13px Estedad,
    Tahoma;
  cursor: pointer;
  color: var(--ink-2);
}
.lang:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.burger {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  margin-inline-start: auto;
}

/*═══════════════════════════════════════════════════════════════
  ۶) هیرو + نوار ریتم شبانه‌روز
═══════════════════════════════════════════════════════════════*/
.hero {
  padding-block: clamp(56px, 7.5vw, 96px) clamp(36px, 5vw, 60px);
}
.hero h1 {
  margin-bottom: 20px;
  max-width: 16ch;
}
.hero .lead {
  margin-bottom: 30px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rhythm {
  margin-top: clamp(44px, 6vw, 72px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 26px 18px;
}
.rhythm__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.rhythm__t {
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-2);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--teal);
}
.dot--g {
  background: var(--line);
}
.dot--f {
  background: var(--flag);
}
.track {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 110px;
}
.hr {
  position: relative;
  flex: 1;
  height: 100%;
}
.hb {
  position: absolute;
  bottom: 0;
  border-radius: 3px 3px 0 0;
}
.hb--g {
  background: var(--line);
  width: 100%;
}
.hb--n {
  background: var(--teal);
  width: 52%;
  right: 24%;
}
.hr.flag .hb--n {
  background: var(--flag);
}
.hr.flag::after {
  content: "نیازمند بررسی";
  position: absolute;
  bottom: calc(100% + 8px);
  right: 50%;
  translate: 50% 0;
  white-space: nowrap;
  font-size: 11px;
  color: var(--flag);
  font-weight: 500;
}
.axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/*═══════════════════════════════════════════════════════════════
  ۷) نوار تیره: آمار + شکاف مراقبت
═══════════════════════════════════════════════════════════════*/
.band {
  background: var(--dark);
  color: #eaf0f6;
}
.band h2,
.band h3 {
  color: #fff;
}
.band .lead {
  color: var(--dark-text);
}
.band .eyebrow {
  color: var(--mint);
}
.band .eyebrow::after {
  background: var(--dark-line);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--dark-line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat {
  padding: 28px 24px;
  border-inline-start: 1px solid var(--dark-line);
}
.stat:first-child {
  border-inline-start: 0;
}
.stat b {
  display: block;
  font:
    700 var(--t-num)/1.1 Estedad,
    Tahoma;
  color: #fff;
  margin-bottom: 8px;
}
.stat p {
  font-size: 14px;
  color: var(--dark-text);
  line-height: 1.8;
}
.src {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #6e86a8;
}

.cgap {
  margin-top: 40px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r);
  padding: 26px;
}
.cgap__t {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cgap__t b {
  font-size: 16px;
  color: #fff;
}
.days {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 5px;
}
.days i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--dark-line);
}
.days i.visit {
  background: var(--flag);
}

/*═══════════════════════════════════════════════════════════════
  ۸) پلان تعاملی خانه
═══════════════════════════════════════════════════════════════*/
.plan {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}
.plan__fig {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
}
.plan__img {
  aspect-ratio: 1000/814;
  background: url(media/floorplan.png) center/contain no-repeat;
}
.pin {
  position: absolute;
  width: 30px;
  height: 30px;
  translate: 50% -50%;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.pin::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--teal);
  transition: 0.2s;
}
.pin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.16;
  scale: 0.75;
  transition: 0.2s;
}
.pin:hover::after,
.pin.on::after {
  scale: 1.15;
  opacity: 0.26;
}
.pin.on::before {
  inset: 4px;
}
.plan__hint {
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 6px;
}

.plan__info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  position: sticky;
  top: 96px;
}
.plan__info .kind {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 8px;
}
.plan__info .kind span {
  color: var(--ink-3);
}
.plan__info h3 {
  margin-bottom: 10px;
}
.plan__info p {
  color: var(--ink-2);
  font-size: 15px;
}

/*═══════════════════════════════════════════════════════════════
  ۹) حریم خصوصی
═══════════════════════════════════════════════════════════════*/
.nots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.not {
  border: 1px solid var(--dark-line);
  border-radius: var(--r);
  padding: 30px 26px;
  text-align: center;
}
.not__m {
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
  position: relative;
  background-size: 58% 58%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  background-color: #ffffff;
}
.not__m::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6%;
  width: 88%;
  height: 2px;
  background: #d0685e;
  rotate: -38deg;
  border-radius: 2px;
}
.i-cam {
  background-image: url(media/icon-camera.png);
}
.i-mic {
  background-image: url(media/icon-mic.png);
}
.i-watch {
  background-image: url(media/icon-watch.png);
}
.not h3 {
  margin-bottom: 8px;
}
.not p {
  color: var(--dark-text);
  font-size: 14px;
}

/*═══════════════════════════════════════════════════════════════
  ۱۰) پشتوانه علمی
═══════════════════════════════════════════════════════════════*/
.funnel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.fstep {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
}
.fstep b {
  display: block;
  font:
    700 clamp(26px, 3.4vw, 38px)/1.1 Estedad,
    Tahoma;
  color: var(--teal);
  margin-bottom: 10px;
}
.fstep span {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.8;
}

.story {
  margin-top: var(--gap);
  background: var(--navy);
  color: #dce7f5;
  border-radius: var(--r);
  padding: 30px 32px;
}
.story p {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 2;
  max-width: 64ch;
}
.story p b {
  color: #fff;
  font-weight: 500;
}

.fields {
  margin-top: var(--gap);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
}
.fields h3 {
  margin-bottom: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}
.chips span {
  background: var(--teal-soft);
  color: var(--teal-d);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 14px;
}

/*═══════════════════════════════════════════════════════════════
  ۱۱) جدول مقایسه
═══════════════════════════════════════════════════════════════*/
.tblwrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  font-size: 15px;
}
th,
td {
  padding: 16px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
thead th {
  font:
    500 14px Estedad,
    Tahoma;
  color: var(--ink-2);
  background: #fafbfc;
}
tbody th {
  text-align: start;
  font:
    400 15px Estedad,
    Tahoma;
  color: var(--ink);
  white-space: nowrap;
}
tr:last-child td,
tr:last-child th {
  border-bottom: 0;
}
.mine {
  background: var(--teal-soft);
}
thead .mine {
  color: var(--teal-d);
  font-weight: 700;
}
.yes {
  color: var(--teal);
  font-size: 17px;
}
.no {
  color: #b78a85;
  font-size: 17px;
}

/*═══════════════════════════════════════════════════════════════
  ۱۲) لایه‌های خروجی / داشبورد / سطوح
═══════════════════════════════════════════════════════════════*/
.layer {
  border-top: 2px solid var(--teal);
  padding-top: 18px;
}
.layer b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.layer em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--teal);
  margin: 4px 0 8px;
}
.layer p {
  font-size: 14.5px;
  color: var(--ink-2);
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tabs span {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  color: var(--ink-2);
}
.tabs span:first-child {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.shot {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
}
.shot div {
  aspect-ratio: 1276/795;
  background: url(media/dashboard.jpg) center/cover no-repeat;
}
.shot video {
  width: 100%;
  height: auto;
  display: block;
}

.tier {
  position: relative;
}
.tier--now {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.tier .tag {
  position: absolute;
  top: -11px;
  inset-inline-start: 22px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  padding: 3px 11px;
  border-radius: 999px;
}

/*═══════════════════════════════════════════════════════════════
  ۱۳) تیم / تماس / پاورقی
═══════════════════════════════════════════════════════════════*/
.member {
  text-align: center;
}
a.photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--teal-soft);
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  font-size: 12px;
  color: var(--ink-3);
  transition: 0.2s;
}
a.photo:hover {
  border-color: var(--teal);
  translate: 0 -3px;
}
a.photo::after {
  content: "in";
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font:
    700 12px/28px Estedad,
    Tahoma;
  text-align: center;
  opacity: 0;
  transition: 0.2s;
}
a.photo:hover::after {
  opacity: 1;
}
.member h3 {
  margin-bottom: 4px;
}
.member p {
  color: var(--teal);
  font-size: 14px;
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: start;
}
.rows {
  border-top: 1px solid var(--line);
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.row span {
  color: var(--ink-2);
}
.footer {
  background: var(--dark);
  color: #7e93b4;
  padding-block: 34px;
  font-size: 13px;
}
.footer__in {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.footer p {
  max-width: 70ch;
  line-height: 1.85;
}
.footer .logo {
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 12px;
}

/*═══════════════════════════════════════════════════════════════
  ۱۴) انیمیشن و موبایل
═══════════════════════════════════════════════════════════════*/
[data-rv] {
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity 0.6s,
    translate 0.6s;
}
[data-rv].in {
  opacity: 1;
  translate: 0;
}

@media (max-width: 900px) {
  .plan,
  .contact {
    grid-template-columns: 1fr;
  }
  .plan__info {
    position: static;
  }
}
@media (max-width: 760px) {
  .g3,
  .g2,
  .nots,
  .stats,
  .funnel {
    grid-template-columns: 1fr;
  }
  .stat {
    border-inline-start: 0;
    border-top: 1px solid var(--dark-line);
  }
  .stat:first-child {
    border-top: 0;
  }
  .days {
    grid-template-columns: repeat(15, 1fr);
  }
  .rail {
    display: none;
  }
  .pbar {
    display: block;
  }
  .nav__l {
    display: none;
  }
  .burger {
    display: block;
  }
  .nav__l.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset-inline: 0;
    top: 68px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
    gap: 14px;
    margin: 0;
  }
  .track {
    height: 86px;
  }
  .pin {
    width: 26px;
    height: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  [data-rv] {
    opacity: 1;
    translate: 0;
  }
}
