.home { --paper: #F3F5F8; background: var(--paper); color: var(--night); }
.home .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.home .wrap.narrow { max-width: 760px; }
.home h1, .home h2 { color: var(--night); }

/* ناوبری */
.h-nav { position: sticky; top: 0; z-index: 5; background: rgba(243, 245, 248, .9); backdrop-filter: blur(10px); }
.h-nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.h-links { display: flex; gap: 24px; }
.h-links a { color: #4A5868; text-decoration: none; font-size: 14.5px; font-weight: 600; }
.h-links a:hover { color: var(--night); }
.h-login { margin-inline-start: auto; color: var(--night); font-weight: 800; font-size: 14.5px; text-decoration: none; padding: 9px 18px; border-radius: 10px; border: 1.5px solid var(--night); }
.h-login:hover { background: var(--night); color: #fff; }

/* سرصفحه */
.h-hero { padding: 56px 0 88px; }
.h-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; }
.h-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.45; font-weight: 900; letter-spacing: -.6px; margin: 0; max-width: 13em; }
.h-lead { font-size: clamp(15.5px, 1.6vw, 18px); line-height: 2.05; color: #4A5868; max-width: 34em; margin: 22px 0 32px; }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.h-cta .btn { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.h-ghost { background: transparent; border-color: #C3CBD5; }

/* برگه‌ی پرونده */
.slip { margin: 0; background: var(--night); color: #E7ECF2; border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 30px 60px -28px rgba(18, 32, 46, .55); transform: rotate(-1.2deg); }
.slip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px dashed rgba(255, 255, 255, .18); }
.slip-tag { font-size: 12px; color: #9FB0C2; }
.slip-rows { margin: 16px 0 6px; display: grid; gap: 10px; }
.slip-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.slip-rows dt { color: #8496A9; }
.slip-rows dd { margin: 0; font-weight: 700; text-align: left; }
.slip-steps { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.slip-steps::before { content: ''; position: absolute; inset-block: 10px 26px; inset-inline-start: 8px; width: 2px; background: rgba(255, 255, 255, .14); }
.slip-steps::after { content: ''; position: absolute; top: 10px; inset-inline-start: 8px; width: 2px; height: var(--fill, 62%); background: #3CC4B2; transition: height 1.4s cubic-bezier(.2, .7, .2, 1); }
.slip-steps li { position: relative; padding: 0 30px 16px 0; display: flex; flex-direction: column; gap: 1px; }
.slip-steps li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--night); border: 2px solid rgba(255, 255, 255, .3); z-index: 1; }
.slip-steps li.done::before { background: #3CC4B2; border-color: #3CC4B2; }
.slip-steps li.now::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 5px rgba(231, 180, 22, .2); }
.slip-steps b { font-size: 14.5px; }
.slip-steps span { font-size: 12.5px; color: #8496A9; }
.slip-steps li:not(.done):not(.now) b { color: #8496A9; font-weight: 600; }
.slip figcaption { font-size: 12px; color: #6E8095; margin-top: 4px; }

/* بخش‌ها */
.h-sec { padding: 88px 0; }
.h-sec h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 900; margin: 0 0 28px; }
#how { background: #fff; }
.h-switch { display: inline-flex; padding: 5px; border-radius: 14px; background: var(--paper); margin-bottom: 36px; }
.h-switch button { height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 700; font-size: 15px; color: #4A5868; cursor: pointer; }
.h-switch button[aria-selected="true"] { background: var(--night); color: #fff; }
.h-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.h-steps li { counter-increment: s; position: relative; padding: 0 64px 34px 0; }
.h-steps li::before { content: counter(s, persian); position: absolute; inset-inline-start: 0; top: -4px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: var(--night); background: #fff; border: 2px solid var(--night); z-index: 1; }
.h-steps li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 20px; top: 38px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, #C3CBD5 0 8px, transparent 8px 14px); }
.h-steps b { font-size: 18px; font-weight: 800; display: block; margin-bottom: 4px; }
.h-steps p { margin: 0; color: #4A5868; line-height: 2; font-size: 15px; max-width: 38em; }

.h-faqgrid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.h-faq { border-bottom: 1px solid #DCE1E8; }
.h-faq:first-child { border-top: 1px solid #DCE1E8; }
.h-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 800; font-size: 16px; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: rotate(45deg); transition: transform .2s; flex: none; margin-top: -4px; }
.h-faq[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.h-faq p { margin: 0 0 20px; color: #4A5868; line-height: 2.05; font-size: 15px; }

/* تماس */
.h-contact { background: var(--night); color: #E7ECF2; padding: 80px 0 32px; }
.h-contact h2 { color: #fff; font-size: clamp(24px, 2.8vw, 32px); font-weight: 900; margin: 0 0 24px; }
.h-contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.h-phones { display: flex; flex-direction: column; }
.h-phones a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.h-phones a span:first-child { color: #9FB0C2; font-size: 15px; }
.h-phones a span:last-child { direction: ltr; font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: .5px; }
.h-phones a:hover span:last-child { color: #3CC4B2; }
.h-info p { margin: 0 0 10px; color: #B5C2CF; line-height: 2; }
.h-info p:empty { display: none; }
.h-info a { color: #3CC4B2; }
.h-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.h-socials a { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: #E7ECF2; text-decoration: none; font-size: 13.5px; font-weight: 700; }
.h-socials a:hover { background: #fff; color: var(--night); }
.h-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8496A9; }
.h-foot a { color: #8496A9; }

.home :focus-visible { outline: 3px solid #3CC4B2; outline-offset: 2px; border-radius: 6px; }

@media (max-width: 900px) {
  .h-hero .wrap, .h-faqgrid, .h-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .slip { transform: none; max-width: 460px; }
}
@media (max-width: 640px) {
  .h-links { display: none; }
  .h-nav .wrap { height: 62px; }
  .h-hero { padding: 28px 0 56px; }
  .h-cta .btn { flex: 1 1 100%; }
  .h-sec { padding: 60px 0; }
  .h-steps li { padding-inline-start: 56px; }
  .h-switch { display: flex; }
  .h-switch button { flex: 1; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { .slip-steps::after { transition: none; } }
/* صفحه اصلی همیشه روشن است */
@media (prefers-color-scheme: dark) { .home { --bg: #F3F5F8; --card: #fff; --ink: #12202E; --muted: #4A5868; --line: #DCE1E8; --line-strong: #C3CBD5; --soft: #F0F1F4; } }

/* بنر و کارت‌های ورود */
.h-nav-dark { background: rgba(18, 32, 46, .96); }
.h-nav-dark .h-links a { color: #B5C2CF; }
.h-nav-dark .h-links a:hover { color: #fff; }
.h-nav-dark .h-login { color: #fff; border-color: rgba(255, 255, 255, .55); }
.h-nav-dark .h-login:hover { background: #fff; color: var(--night); }
.h-banner { position: relative; background: #DCE6EF; }
.h-banner img { display: block; width: 100%; height: clamp(300px, 34vw, 470px); object-fit: cover; object-position: 62% 50%; }
.h-banner-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; padding-top: clamp(30px, 4.4vw, 64px); text-align: right; pointer-events: none; }
.h-banner-copy h1, .h-banner-copy p { max-width: min(44vw, 620px); margin-inline-start: auto; margin-inline-end: 0; }
.h-banner-copy h1 { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.5; font-weight: 900; color: var(--night); margin-bottom: 8px; text-shadow: 0 1px 18px rgba(255, 255, 255, .7); }
.h-banner-copy p { font-size: clamp(14px, 1.4vw, 17px); color: #2C3C4D; margin-top: 0; text-shadow: 0 1px 12px rgba(255, 255, 255, .8); }
.h-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(243, 245, 248, .55) 0%, transparent 45%), linear-gradient(to right, rgba(243, 245, 248, .8) 0%, rgba(243, 245, 248, .4) 35%, transparent 55%); pointer-events: none; }
.h-banner-copy { z-index: 1; }
.h-entry { padding: 0 0 72px; }
.home .h-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: -78px; position: relative; z-index: 2; }
.h-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 22px 44px -26px rgba(18, 32, 46, .5); display: flex; flex-direction: column; }
.h-card-top { background: var(--night); height: 92px; display: grid; place-items: center; color: #fff; }
.h-card-top span { width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.h-card-main .h-card-top { background: var(--accent); }
.h-card h2 { font-size: 19px; font-weight: 900; margin: 22px 24px 8px; }
.h-card ul { margin: 0 24px; padding: 0 18px 0 0; color: #4A5868; font-size: 14.5px; line-height: 2.1; flex: 1; }
.h-card-btn { margin: 20px 24px 24px; align-self: flex-start; background: #EEF2F6; color: var(--night); font-weight: 800; font-size: 14.5px; padding: 11px 20px; border-radius: 10px; text-decoration: none; }
.h-card-btn:hover { background: #E1E7EE; }
.h-card-main .h-card-btn { background: var(--accent); color: #fff; }
.h-card-main .h-card-btn:hover { filter: brightness(1.08); }
@media (max-width: 900px) { .home .h-cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .h-card-main { order: -1; } }
@media (max-width: 640px) {
  .h-banner img { height: 220px; object-position: 70% 50%; }
  .h-banner::after { display: none; }
  .h-banner { background: var(--paper); }
  .h-banner-copy { position: static; padding: 26px 20px 0; align-items: stretch; }
  .h-banner-copy h1, .h-banner-copy p { margin-inline-start: 0; max-width: none; }
  .h-banner-copy h1 { font-size: 24px; text-shadow: none; }
  .h-banner-copy p { text-shadow: none; }
  .home .h-cards { margin-top: 24px; }
  .h-card-top { height: 60px; }
  .h-card-top span { width: 42px; height: 42px; }
  .h-card h2 { margin-top: 16px; }
  .h-card-btn { margin-top: 14px; margin-bottom: 18px; }
}
.home .h-banner-copy { padding-top: clamp(24px, 3.4vw, 48px); }
.home .h-banner-copy > * { width: min(46vw, 640px); max-width: none; margin-inline-start: auto; margin-inline-end: 0; }
@media (max-width: 640px) { .home .h-banner-copy { padding: 26px 20px 0; } .home .h-banner-copy > * { width: auto; margin-inline-start: 0; } }
