/* هموگان | همیار سلامت به سبک ایرانی — صفحهٔ معرفی
   ایدهٔ صفحه: بالای صفحه خودِ نشان هموگان است در اندازهٔ صفحه؛
   خورشید زعفرانی روی خط افق، نیمی روز و نیمی شب، و اپ روی همین خط. */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/vazirmatn-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/vazirmatn-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --paper: #F7F2E8;
  --paper-deep: #EDE4D2;
  --surface: #FFFCF5;
  --line: #E2D7C2;
  --ink: #1F2A24;
  --muted: #59625A;

  --jade: #2C6E63;
  --jade-night: #245C53;
  --jade-tint: #E4EFEA;
  --cream: #F7F2E8;
  --cream-soft: rgba(247, 242, 232, 0.84);

  --saffron: #C58A2E;
  --saffron-hover: #D29A40;
  --saffron-text: #87590F;
  --saffron-tint: #F6EAD2;

  --lapis: #27477A;
  --lapis-deep: #1C3459;

  --clay: #A04A31;
  --clay-tint: #F6E3DB;

  --gutter: 20px;
  --max: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.9;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ——— دکمه‌ها ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-sun {
  background: var(--saffron);
  color: var(--ink);
}

.btn-sun:hover {
  background: var(--saffron-hover);
}

.btn-cream {
  background: var(--cream);
  color: var(--lapis-deep);
}

.btn-cream:hover {
  background: #FFFFFF;
}

.btn-ghost {
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid rgba(247, 242, 232, 0.5);
  border-radius: 12px;
  color: var(--cream);
  font-size: 0.9375rem;
  font-weight: 700;
}

.btn-ghost:hover {
  border-color: var(--cream);
}

/* ——— قاب گوشی ——— */

.phone {
  --w: 240px;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.16);
  background: var(--ink);
  box-shadow: 0 32px 60px -24px rgba(14, 28, 22, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone img {
  width: 100%;
  border-radius: calc(var(--w) * 0.127);
  background: var(--paper);
}

/* ——— سربرگ و بخش اول: نشان هموگان به اندازهٔ صفحه ——— */

.topbar,
.hero {
  background: var(--jade);
  color: var(--cream);
}

.hero {
  position: relative;
  overflow: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: auto;
  flex: none;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.brand-tagline {
  display: none;
  padding-inline-start: 12px;
  border-inline-start: 1.5px solid rgba(247, 242, 232, 0.4);
  color: var(--cream-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-link {
  display: none;
  color: var(--cream-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.header-link:hover {
  color: var(--cream);
}

/* افق همیشه لبهٔ پایینِ صحنه است؛ گوشی با حاشیهٔ منفی ۴۰٪ پایینش را به «شب» می‌برد.
   پس اگر متن بلندتر شود، افق پایین‌تر می‌آید و هیچ‌وقت از روی متن نمی‌گذرد. */
.hero-grid {
  --w: min(250px, 64vw);
  --below: calc(var(--w) * 0.834);
  display: grid;
  grid-template-areas:
    "copy"
    "scene"
    "caption";
  padding-top: 28px;
}

.hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.2;
}

.hero-lede {
  margin-top: 16px;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.375rem);
  font-weight: 700;
  line-height: 1.7;
  max-width: 26em;
}

.hero-text {
  margin-top: 10px;
  color: var(--cream-soft);
  max-width: 30em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

.cta-note {
  color: var(--cream-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* صحنه: خورشید، افق، نیم‌حلقهٔ شب، و گوشی روی افق.
   --w پهنای گوشی است؛ افق در ۱٫۲۵ برابرِ این پهنا از بالای گوشی می‌گذرد. */
.scene {
  --R: calc(var(--w) * 0.8);
  grid-area: scene;
  align-self: end;
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  padding-top: 44px;
}

.scene .phone {
  --w: inherit;
  margin-bottom: calc(var(--below) * -1);
}

.scene-ground {
  position: absolute;
  z-index: -3;
  top: 100%;
  bottom: -2000px;
  left: -100vw;
  right: -100vw;
  background: var(--jade-night);
}

.scene-horizon {
  position: absolute;
  z-index: -1;
  top: calc(100% - 2px);
  height: 4px;
  left: -100vw;
  right: -100vw;
  background: var(--cream);
}

.scene-sun {
  position: absolute;
  z-index: -2;
  top: calc(100% - var(--R));
  left: 50%;
  width: calc(var(--R) * 2);
  height: var(--R);
  margin-left: calc(var(--R) * -1);
  overflow: hidden;
}

.scene-sun::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  border-radius: 50%;
  background: var(--saffron);
  animation: dawn 1.9s cubic-bezier(0.16, 0.84, 0.24, 1) 0.2s both;
}

.scene-night {
  --r: calc(var(--R) * 0.85);
  position: absolute;
  z-index: -2;
  top: 100%;
  left: 50%;
  width: calc(var(--r) * 2);
  height: var(--r);
  margin-left: calc(var(--r) * -1);
  overflow: hidden;
}

.scene-night::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200%;
  border-radius: 50%;
  border: 4px solid var(--cream);
}

@keyframes dawn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

.hero-caption {
  grid-area: caption;
  position: relative;
  z-index: 1;
  padding-top: calc(var(--below) + 28px);
  padding-bottom: 48px;
  color: var(--cream-soft);
  font-size: 0.9375rem;
  line-height: 1.8;
  text-align: center;
}

.hero-caption svg {
  display: inline-block;
  width: 30px;
  height: auto;
  margin-inline-end: 6px;
  vertical-align: -3px;
}

/* ——— بخش‌ها ——— */

.section {
  padding-block: clamp(72px, 9vw, 120px);
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.35;
}

.section-intro {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ——— سه قدم ——— */

.steps {
  display: grid;
  gap: 56px;
  counter-reset: step;
}

.shot {
  position: relative;
  height: 330px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--paper-deep);
}

.shot .phone {
  --w: 220px;
  position: absolute;
  top: 36px;
  left: 50%;
  margin-left: calc(var(--w) / -2);
}

.shot-from-bottom .phone {
  top: auto;
  bottom: 36px;
}

.step-body {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  margin-top: 24px;
}

.step-num {
  grid-row: span 3;
  min-width: 1.1em;
  color: var(--jade);
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 0.95;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.5;
}

.step-text {
  margin-top: 6px;
  color: var(--muted);
}

.step-meta {
  margin-top: 10px;
  color: var(--saffron-text);
  font-size: 0.9375rem;
  font-weight: 700;
}

/* ——— ابزارهای هر روز ——— */

.tools-section {
  padding-top: 0;
}

.tools {
  display: grid;
  gap: 16px;
}

.tool-feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: var(--jade-tint);
}

.tool-feature-copy {
  padding: 28px 28px 0;
}

.tool-feature .shot {
  height: 360px;
  margin-top: 28px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.tool-feature .shot .phone {
  --w: 250px;
  top: 0;
}

.tool {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px 14px;
  align-items: center;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--jade-tint);
  color: var(--jade);
}

.tool-icon svg {
  width: 24px;
  height: 24px;
}

.tool-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.6;
}

.tool-feature .tool-title {
  font-size: 1.3rem;
}

.tool-text {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.tool-feature .tool-text {
  margin-top: 8px;
  max-width: 30em;
  font-size: 1.0625rem;
}

.soon {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--saffron-tint);
  color: var(--saffron-text);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.6;
  vertical-align: 2px;
}

/* ——— هموگان طبیب (لاجوردی) ——— */

.tabib {
  overflow: hidden;
  background: var(--lapis);
  color: var(--cream);
}

.tabib-grid {
  display: grid;
  gap: 56px;
}

.tabib-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 1.15rem;
  font-weight: 900;
}

.tabib-brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 0 0 1.5px rgba(247, 242, 232, 0.35);
}

.tabib .section-intro {
  color: var(--cream-soft);
  max-width: 32em;
}

.ticks {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ticks svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 5px;
  color: var(--saffron);
}

.tabib-privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--lapis-deep);
  font-weight: 600;
  line-height: 1.8;
}

.tabib-privacy svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--saffron);
}

.tabib-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}

.tabib-cta p {
  color: var(--cream-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tabib-shots {
  --w: min(190px, 46vw);
  position: relative;
  height: calc(var(--w) * 2.09 + 72px);
}

.tabib-shots .phone {
  --w: inherit;
  position: absolute;
  box-shadow: 0 40px 70px -30px rgba(5, 12, 30, 0.7);
}

.tabib-shots .phone-back {
  top: 0;
  left: calc(50% - var(--w) * 0.95);
}

.tabib-shots .phone-front {
  top: 72px;
  left: calc(50% - var(--w) * 0.05);
}

/* ——— پیش از شروع ——— */

.faq-grid {
  display: grid;
  gap: 40px;
}

.emergency {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--clay-tint);
  color: var(--ink);
  line-height: 1.8;
}

.emergency svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  color: var(--clay);
}

.emergency strong {
  display: block;
  color: var(--clay);
}

.emergency a {
  color: var(--clay);
  font-weight: 800;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--jade-tint);
  transition: transform 0.2s ease;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--jade);
}

.faq-plus::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 38em;
  padding-bottom: 22px;
  color: var(--muted);
}

/* ——— دعوت پایانی ——— */

.closing {
  background: var(--jade);
  color: var(--cream);
  text-align: center;
}

.closing .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-mark {
  width: 104px;
  height: auto;
  margin-bottom: 28px;
  color: var(--cream);
}

.closing .section-intro {
  color: var(--cream-soft);
}

.closing .btn {
  margin-top: 32px;
}

/* ——— پانویس ——— */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: var(--jade);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-notes {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ——— اندازه‌های بزرگ‌تر ——— */

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .header-link {
    display: inline;
  }

  .tabib-shots {
    --w: 210px;
  }
}

@media (min-width: 960px) {
  .brand-tagline {
    display: inline;
  }

  .hero-grid {
    --w: 280px;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-areas:
      "copy scene"
      "caption .";
    column-gap: 48px;
    padding-top: 0;
  }

  .hero-copy {
    align-self: center;
    padding-block: 40px 64px;
  }

  .scene {
    --R: calc(var(--w) * 0.98);
    padding-top: 40px;
  }

  .hero-caption {
    display: flex;
    align-items: flex-end;
    min-height: calc(var(--below) + 64px);
    max-width: 24rem;
    padding-top: 0;
    padding-bottom: 64px;
    text-align: start;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .shot {
    height: 360px;
  }

  .tools {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
  }

  .tool-feature {
    grid-row: 1 / span 3;
  }

  .tool-feature .shot {
    flex: 1;
    min-height: 360px;
  }

  .tool-feature-copy {
    padding: 36px 36px 0;
  }

  .tool {
    padding: 28px;
  }

  .tabib-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }

  .tabib-shots {
    --w: 230px;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 72px;
    align-items: start;
  }

  .faq-side {
    position: sticky;
    top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scene-sun::before {
    animation: none;
  }

  .faq-plus {
    transition: none;
  }
}
