.home-stage{display:block;padding:32px var(--page-gutter) 64px}
.home-shell{width:min(100%,1200px);margin-inline:auto;color:var(--iporse-navy)}
.home-shell :is(h1,h2){line-height:1.55;color:inherit}
.home-shell h2{font-size:clamp(1.25rem,2.4vw,1.65rem);font-weight:800}
.home-hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);align-items:center;gap:clamp(24px,5vw,72px)}
.home-hero-copy{padding-block:12px}
.home-hero h1{font-size:clamp(1.85rem,4vw,3.45rem);font-weight:900;line-height:1.4}
.home-hero-copy>p{margin:12px 0 22px;max-width:48ch;color:var(--iporse-muted);font-size:1.05rem;line-height:1.95}
.home-hero-figure{overflow:hidden;border-radius:18px}
.home-hero-photo{width:100%;height:auto;aspect-ratio:5/4;object-fit:cover;display:block;border-radius:18px}
.home-signin{display:inline-flex;align-items:center;min-height:44px;color:var(--iporse-gold-text);font-weight:700;text-underline-offset:4px}
.home-shell .btn{min-height:50px}
.home-search-main{padding-top:18px;border-top:1px solid #d8d3c8}
.home-search-main h2{font-size:1.2rem}
.home-search-form{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;align-items:end;gap:12px;margin-top:12px}
.home-hero .home-search-form{grid-template-columns:minmax(0,1fr) auto}
.home-hero .home-search-form label:first-child{grid-column:1/-1}
.home-search-form label{display:grid;gap:6px;min-width:0;font-weight:700}
.home-search-form :is(input,select){width:100%;min-width:0;min-height:52px;padding:10px 13px;border:1px solid #90979b;border-radius:10px;background:#fff;color:var(--iporse-text);font:inherit;font-weight:400}
.home-search-form input::placeholder{color:var(--iporse-muted)}
.home-search-form .btn{min-height:52px;padding-inline:26px}
.home-statistics,.home-results,.home-martyrs,.home-provinces{margin-top:clamp(30px,5vw,56px)}
.home-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0 0;border-block:1px solid #d8d3c8;background:#faf8f2}
.home-stat-grid>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:116px;padding:14px 8px}
.home-stat-grid>div:not(:first-child){border-inline-start:1px solid #d8d3c8}
.home-stat-grid dt{display:flex;align-items:center;gap:8px;color:var(--iporse-muted);line-height:1.5;font-weight:700}
.home-stat-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:9px;background:var(--iporse-sage-soft);color:var(--iporse-sage)}
.home-stat-icon .ui-icon{width:21px;height:21px}
.home-stat-grid dd{font-size:clamp(1.15rem,2.7vw,2rem);font-weight:800;font-variant-numeric:tabular-nums;line-height:1.25;overflow-wrap:anywhere;max-width:100%}
.home-provinces>p{color:var(--iporse-muted);margin:4px 0 16px}
.home-province-details>summary{display:list-item;min-height:48px;cursor:pointer;padding:10px 14px;border-block:1px solid #d8d3c8;background:#faf8f2;font-weight:700}
@media(min-width:768px){
 .home-province-details[open]>summary{display:none}
}
.home-province-layout{display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);gap:clamp(16px,3vw,44px);align-items:center;background:#fbf9f4;border-block:1px solid #d8d3c8;padding:18px clamp(12px,2vw,28px)}
.home-province-table{max-height:460px;overflow:auto;background:white;scrollbar-color:var(--iporse-sage) #ede9df}
.home-province-table table{width:100%;border-collapse:collapse;text-align:start}
.home-province-table :is(th,td){padding:7px 9px;border-bottom:1px solid #e9e6df;text-align:start}
.home-province-table thead{position:sticky;top:0;background:#f0ede4;z-index:1}
.home-province-table thead th{white-space:nowrap;font-size:.86rem}
.home-province-table tbody th{padding-block:0}
.home-province-table td{font-variant-numeric:tabular-nums}
.home-province-table a{display:flex;align-items:center;min-height:44px;color:var(--iporse-gold-text);text-underline-offset:3px}
.home-province-table tr:hover th,.home-province-table tr:hover td{background:#f1f4ed}
.home-province-map{min-width:0;text-align:center}
.home-map{display:block;width:100%;max-height:420px}
.home-map path{fill:#e1e7d8;stroke:#fffdf8;stroke-width:1.4;vector-effect:non-scaling-stroke}
.home-map .has-memorials path{fill:#a9b69b}
.home-map a:is(:hover,:focus-visible) path{fill:var(--iporse-primary);stroke:var(--iporse-navy)}
.home-province-map figcaption{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;font-size:.82rem;color:var(--iporse-muted)}
.home-map-key{display:inline-flex;align-items:center;gap:6px}
.home-map-key::before{content:"";width:12px;height:12px;border:1px solid var(--iporse-sage);border-radius:3px;background:#a9b69b}
.home-editorial{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 36px;border-top:1px solid #d8d3c8;padding-top:22px}
.home-editorial h2{font-size:clamp(1.15rem,2.1vw,1.45rem)}
.home-editorial p{margin-top:7px;color:var(--iporse-text);line-height:1.95}
.home-martyrs{border-radius:18px;background:var(--iporse-navy);color:#fff;padding:clamp(24px,4vw,42px);background-image:linear-gradient(90deg,transparent 0%,var(--iporse-navy) 72%),url('../images/memorial-temp2/branch.svg');background-size:auto,min(38%,340px) auto;background-position:left center,left 28px center;background-repeat:no-repeat}
.home-martyrs>div{max-width:36rem}
.home-section-label{color:var(--iporse-gold-on-navy);font-size:.94rem;font-weight:700;margin-bottom:4px}
.home-martyrs p:not(.home-section-label){color:#edf0f2;margin-top:8px}
.home-martyrs .btn{margin-top:15px}
.directory-heading h1{font-size:clamp(1.55rem,3.5vw,2.5rem)}
.directory-heading p{margin-top:4px;color:var(--iporse-muted)}
.directory-search{border-block:1px solid #d8d3c8;padding:14px 0 20px;margin-top:14px}
.directory-search .home-search-form{margin-top:0}
.home-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px;padding:0;list-style:none}
.home-result-grid a{display:flex;align-items:center;min-height:102px;gap:12px;padding:11px;text-decoration:none;border:1px solid var(--iporse-border);border-radius:14px;background:#fff;overflow-wrap:anywhere}
.home-result-grid a:hover{border-color:var(--iporse-sage);background:#f9faf7}
.home-result-grid small{display:block;font-size:.9rem;color:var(--iporse-muted)}
.home-result-image{width:76px;height:76px;display:grid;place-items:center;flex:none;position:relative;overflow:hidden;border-radius:9px;background:var(--iporse-sage-soft);color:var(--iporse-sage)}
.home-result-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--iporse-sage-soft)}
.home-result-image .ui-icon{width:27px;height:27px}
.home-feedback{margin-top:12px;padding:12px 14px;border-inline-start:3px solid var(--iporse-sage);background:var(--iporse-sage-soft);border-radius:8px;color:var(--iporse-text)}
.home-feedback[role=alert]{color:var(--bad);border-inline-start-color:var(--bad);background:#fff3ef}
.home-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}
.martyr-memorial{max-width:790px}
.martyr-identity,.martyr-reading{border:1px solid var(--iporse-border);border-radius:22px;background:#fff;margin-top:18px;padding:clamp(18px,4vw,32px)}
.martyr-identity{text-align:center}
.martyr-identity img{display:block;width:min(100%,320px);max-height:310px;object-fit:contain;margin:0 auto 16px;border-radius:14px}
.martyr-identity h1{font-size:clamp(1.55rem,4vw,2.2rem)}
.martyr-identity p{margin-top:10px;color:var(--iporse-muted)}
.martyr-identity .martyr-description{white-space:pre-line;overflow-wrap:anywhere;color:var(--iporse-text)}
.martyr-reading details{margin-top:12px;border:1px solid var(--iporse-border);border-radius:12px;background:#fcfaf5;padding:0 15px}
.martyr-reading summary{min-height:50px;padding-block:12px;cursor:pointer;font-weight:700}
.martyr-reading audio{display:block;width:100%;margin-bottom:14px}
.martyr-reading .quran-text{font-family:'Traditional Arabic','Times New Roman',serif;font-size:1.5rem;line-height:2.2;margin:0 0 18px;overflow-wrap:anywhere}
.martyr-prayers{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:16px}
.martyr-prayers .prayer-status:empty{display:none}
.martyr-prayers .prayer-status{color:var(--iporse-sage);margin-top:8px}
@media(max-width:960px){
 .home-hero{gap:24px}
 .home-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
 .home-stage{padding-top:18px;padding-bottom:36px}
 .home-hero{display:block;position:relative;isolation:isolate;overflow:hidden;border-radius:22px;background:#22342b;color:#fff}
 .home-hero-copy{padding:clamp(18px,5.5vw,32px)}

 .home-hero-copy>p{margin:10px 0 18px;color:#f7f5ee}
 .home-hero-figure{position:absolute;inset:0;z-index:-1;border-radius:0;pointer-events:none}
 .home-hero-figure::after{content:"";position:absolute;inset:0;background:linear-gradient(155deg,rgba(18,31,25,.82),rgba(18,31,25,.65) 54%,rgba(18,31,25,.78))}
 .home-hero-photo{width:100%;height:100%;aspect-ratio:auto;border-radius:0;object-position:42% center;filter:saturate(.78)}
 .home-hero .home-search-main{border-top-color:rgba(255,255,255,.36)}
 .home-hero .home-search-form :is(input,select){border-color:#faf7ef}
 .home-hero :focus-visible{outline:3px solid #f4e6be;outline-offset:3px}
 .home-search-form,.home-hero .home-search-form{grid-template-columns:minmax(0,1fr) auto}
 .home-search-form label:first-of-type{grid-column:1/-1}
 .home-province-layout{grid-template-columns:minmax(0,1fr);padding:0;border:0}
 .home-province-map{display:none}
 .home-province-table{max-height:none;overflow:visible}
 .home-province-table thead{position:static}
 .home-editorial{grid-template-columns:1fr}
}
@media(max-width:540px){
 .home-result-grid{grid-template-columns:minmax(0,1fr)}
 .home-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}
 .home-stat-grid>div:nth-child(3){border-inline-start:0}
 .home-stat-grid>div:nth-child(n+3){border-top:1px solid #d8d3c8}
 .home-stat-grid>div{min-height:97px}
 .home-martyrs{background-image:none}
}
@media(max-width:360px){
 .home-province-table :is(th,td){padding-inline:5px}
 .home-province-table thead th{font-size:.82rem}
 .home-search-form .btn{padding-inline:14px}
}

/* ===== 2026-11-24 redesign (design-taste: hero entrance, two dealt moments, hover layer) ===== */
.home-shell{--m-ease-enter:cubic-bezier(.22,1,.36,1);--home-line:1px solid #ddd7ca}
.home-eyebrow{display:inline-flex;align-items:center;gap:10px;margin:0 0 10px;color:var(--iporse-gold-text);font-size:.92rem;font-weight:700}
.home-eyebrow::before{content:"";width:26px;height:2px;border-radius:2px;background:var(--iporse-primary)}
.home-hero h1{font-size:clamp(2rem,4.4vw,3.7rem);line-height:1.35;letter-spacing:-.01em}
.home-line{display:block;overflow:hidden;padding-block:.06em}
.home-line>span{display:block}
.home-hero h1 .home-line>span{color:inherit}
.home-hero h1 .home-line>.home-line-accent{color:var(--iporse-sage)}
.home-line-accent{color:var(--iporse-sage)}
.home-lead{margin:14px 0 22px;max-width:46ch;color:var(--iporse-muted);font-size:1.06rem;line-height:1.95}
.home-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:22px}
.home-hero-create{gap:8px;padding-inline:26px}
.home-hero-create .ui-icon{width:20px;height:20px}
.home-hero-figure{position:relative;margin:0;overflow:hidden;border-radius:22px;box-shadow:0 30px 60px -34px rgba(34,52,43,.55)}
.home-hero-photo{border-radius:22px;transition:transform 600ms var(--ease)}
.home-hero-chip{position:absolute;inset-block-end:18px;inset-inline-start:18px;display:flex;align-items:center;gap:10px;padding:10px 16px;border-radius:999px;background:rgba(255,253,248,.92);backdrop-filter:blur(8px);box-shadow:0 10px 26px -14px rgba(34,52,43,.6);color:var(--iporse-navy);font-size:.92rem}
.home-hero-chip b{font-variant-numeric:tabular-nums;font-weight:800}
.home-hero-chip-dot{width:9px;height:9px;flex:none;border-radius:50%;background:var(--iporse-sage);box-shadow:0 0 0 4px rgba(93,112,82,.18)}

/* «ساخت یادبود رایگان»: copy + steps beside a memorial page in miniature */
.home-create{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(24px,5vw,64px);align-items:center;margin-top:clamp(40px,7vw,88px);padding:clamp(24px,4.5vw,52px);border-radius:26px;background:linear-gradient(140deg,#fffdf8 0%,#f6efe0 100%);border:1px solid rgba(197,160,89,.35)}
.home-create .home-section-label,.home-partners .home-section-label{color:var(--iporse-gold-text)}
.home-create-copy>p:not(.home-section-label){margin-top:8px;color:var(--iporse-text);line-height:1.95;max-width:52ch}
.home-create-steps{display:grid;gap:10px;margin:20px 0 22px;padding:0;list-style:none;counter-reset:none}
.home-create-steps li{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;border-radius:16px;background:#fff;border:1px solid #eee8db;transition:transform 150ms var(--ease),border-color 150ms var(--ease),box-shadow 150ms var(--ease)}
.home-create-steps li>span{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--iporse-navy);color:var(--iporse-gold-on-navy);font-weight:800}
.home-create-steps strong{font-size:1rem}
.home-create-steps p{margin:3px 0 0;color:var(--iporse-muted);font-size:.9rem;line-height:1.8}
.home-create-copy .btn{gap:8px}
.home-create-copy .btn .ui-icon{width:20px;height:20px}
.home-preview{display:flex;justify-content:center}
.home-preview-card{width:min(100%,380px);padding:22px 22px 20px;border-radius:24px;background:#fff;border:1px solid #ece5d4;box-shadow:0 40px 70px -40px rgba(44,62,80,.45);text-align:center}
.home-preview-verse{margin:0;font-size:.9rem;color:var(--iporse-muted)}
.home-preview-name{display:inline-block;margin:10px 0 14px;padding:8px 22px;border-radius:12px;background:var(--iporse-navy);color:#fff;font-weight:800;box-shadow:0 0 0 3px #fff,0 0 0 4px var(--iporse-primary)}
.home-preview-frame{aspect-ratio:800/418;border-radius:16px;border:3px solid #e9dcc0;background:#ece6d8}
.home-preview-code{margin:10px 0 0;font-size:.82rem;color:var(--iporse-muted)}
.home-preview-label{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px 0 8px;font-weight:800;font-size:.92rem;color:var(--iporse-navy)}
.home-preview-label::before,.home-preview-label::after{content:"";width:22px;height:1px;background:var(--iporse-primary)}
.home-preview-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.home-preview-buttons span{padding:10px 4px;border-radius:12px;border:1.5px solid rgba(197,160,89,.7);font-size:.85rem;font-weight:700;color:var(--iporse-navy)}

/* statistics */
.home-statistics{margin-top:clamp(40px,7vw,88px)}
.home-stat-grid{border-radius:18px;border:var(--home-line);background:#fffdf8;overflow:hidden}
.home-stat-grid>div{transition:background 150ms var(--ease)}

/* «همکاری‌ها» */
.home-partners{margin-top:clamp(40px,7vw,88px);padding-top:0;border-top:0}
.home-partners-head{max-width:46rem}
.home-partners-head p:not(.home-section-label){margin-top:8px;color:var(--iporse-text);line-height:1.95}
.home-partner-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 0;padding:0;list-style:none}
.home-partner-cards li{display:grid;align-content:start;gap:8px;padding:22px;border:1px solid #ebe5d8;border-radius:20px;background:#fff;transition:transform 150ms var(--ease),box-shadow 150ms var(--ease),border-color 150ms var(--ease)}
.home-partner-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--iporse-gold-soft);color:var(--iporse-gold-text);transition:background 150ms var(--ease),color 150ms var(--ease)}
.home-partner-icon .ui-icon{width:24px;height:24px}
.home-partner-cards strong{font-size:1.05rem}
.home-partner-cards p{margin:0;color:var(--iporse-muted);font-size:.92rem;line-height:1.85}
.home-partners-cta{margin-top:18px}

/* martyrs: the statement that lights up (word-highlight; its colours read these tokens) */
.home-martyrs{margin-top:clamp(40px,7vw,88px);padding:clamp(30px,6vw,72px) clamp(22px,5vw,64px);border-radius:28px;background-color:var(--iporse-navy);background-image:radial-gradient(120% 90% at 0% 100%,rgba(93,112,82,.35),transparent 60%),url('../images/memorial-temp2/branch.svg');background-size:auto,min(30%,280px) auto;background-position:0 0,left 24px bottom 18px;background-repeat:no-repeat;--ink:#ffffff;--bg:#2C3E50;--accent:var(--iporse-gold-on-navy);--surface:#2C3E50;--font-display:inherit;--display-weight:800;--display-tracking:0;--t-h2:clamp(1.35rem,2.7vw,2.15rem)}
.home-martyrs-inner{max-width:48rem}
.home-martyrs h2{font-size:1.05rem;font-weight:700;color:#dfe5ea}
.home-martyrs-statement{margin:12px 0 26px;color:#fff;line-height:1.75!important}
.home-martyrs .btn{margin-top:0}

/* ---- hover and press (pointer devices): buttons step, cards lift 2px, the photo zooms inside its frame */
@media(hover:hover) and (pointer:fine){
 .home-shell .btn{transition:transform 150ms var(--ease),box-shadow 150ms var(--ease),background-color 150ms var(--ease),color 150ms var(--ease)}
 .home-shell .btn:hover{transform:translateY(-1px);box-shadow:0 10px 22px -12px rgba(44,62,80,.45)}
 .home-shell .btn:active{transform:translateY(0) scale(.98);transition-duration:90ms}
 .home-hero-figure:hover .home-hero-photo{transform:scale(1.03)}
 .home-create-steps li:hover{transform:translateY(-2px);border-color:rgba(197,160,89,.6);box-shadow:0 14px 28px -20px rgba(44,62,80,.5)}
 .home-partner-cards li:hover{transform:translateY(-2px);border-color:rgba(197,160,89,.6);box-shadow:0 18px 34px -24px rgba(44,62,80,.5)}
 .home-partner-cards li:hover .home-partner-icon{background:var(--iporse-navy);color:var(--iporse-gold-on-navy)}
 .home-stat-grid>div:hover{background:#f8f4ea}
 .home-signin,.home-province-table a{background:linear-gradient(currentColor,currentColor) 100% 100%/0 1px no-repeat;text-decoration:none;transition:background-size 200ms var(--ease)}
 .home-signin:hover,.home-province-table a:hover{background-size:100% 1px}
}

/* ---- the hero's entrance, once on load: the headline line by line, then the lead, the button and the search;
        on a wide screen the photo opens from the bottom and settles, then the live figure arrives */
@keyframes home-line-in{from{transform:translateY(105%)}}
@keyframes home-fade-up{from{opacity:0;transform:translateY(14px)}}
@keyframes home-photo-open{from{clip-path:inset(18% 0 0 0 round 22px);transform:scale(1.1)}}
@keyframes home-fade{from{opacity:0}}
@keyframes home-chip-in{from{opacity:0;transform:translateY(10px) scale(.96)}}
@media(prefers-reduced-motion:no-preference){
 .home-line>span{animation:home-line-in 820ms var(--m-ease-enter) both}
 .home-line:nth-child(2)>span{animation-delay:110ms}
 .home-eyebrow{animation:home-fade-up 560ms var(--m-ease-enter) both}
 .home-lead{animation:home-fade-up 640ms var(--m-ease-enter) 260ms both}
 .home-hero-actions{animation:home-fade-up 640ms var(--m-ease-enter) 360ms both}
 .home-search-main{animation:home-fade-up 640ms var(--m-ease-enter) 440ms both}
 .home-hero-photo{animation:home-fade 420ms ease-out both}
}
@media(min-width:768px) and (prefers-reduced-motion:no-preference){
 .home-hero-figure{animation:home-photo-open 1300ms var(--m-ease-enter) 120ms both}
 .home-hero-photo{animation:home-fade 500ms ease-out 120ms both}
 .home-hero-chip{animation:home-chip-in 600ms var(--m-ease-enter) 1100ms both}
 .home-hero-chip-dot{animation:home-pulse 2.8s ease-in-out 1.8s infinite}
}
@keyframes home-pulse{50%{box-shadow:0 0 0 8px rgba(93,112,82,0)}}

@media(max-width:960px){.home-create{grid-template-columns:1fr}.home-preview-card{width:min(100%,420px)}}
@media(max-width:767px){
 .home-hero h1{font-size:clamp(1.8rem,8vw,2.4rem)}
 .home-hero h1 .home-line>.home-line-accent{color:#f4e6be}
 .home-eyebrow{color:#f4e6be}
 .home-lead{color:#f7f5ee;margin:10px 0 18px}
 .home-hero-figure{position:absolute;inset:0;z-index:-1;border-radius:0;box-shadow:none}
 .home-hero-chip{display:none}
 .home-hero-actions .btn{flex:1;justify-content:center}
 .home-create{padding:22px 18px;border-radius:22px}
 .home-partner-cards{grid-template-columns:1fr}
 .home-martyrs{border-radius:22px;background-image:radial-gradient(120% 90% at 0% 100%,rgba(93,112,82,.35),transparent 60%)}
}
@media(prefers-reduced-motion:reduce){.home-shell *{animation:none!important;transition:none!important}}

/* ===== 2026-11-24 (b): the hero shows the product (a memorial page), the share card, livelier statistics ===== */
.home-hero{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);min-height:min(78svh,720px)}
.home-hero-actions .btn{gap:8px}
.home-hero-actions .ui-icon{width:20px;height:20px}
.home-hero-visual{position:relative;display:grid;place-items:center;min-height:560px;isolation:isolate}
.home-hero-visual::before{content:"";position:absolute;inset:6% 4% 4% 10%;z-index:-2;border-radius:46% 54% 42% 58%/52% 44% 56% 48%;background:radial-gradient(circle at 30% 30%,#e6ecdd,#dfe6d3 55%,#d6dfc8)}
.home-hero-visual::after{content:"";position:absolute;inset-block-end:2%;inset-inline-end:2%;z-index:-1;width:min(46%,260px);aspect-ratio:1/1.4;background:url('../images/memorial-temp2/branch.svg') center/contain no-repeat;opacity:.9}
.home-phone{width:min(100%,300px);padding:12px;border-radius:44px;background:#1f2d3a;box-shadow:0 50px 90px -40px rgba(31,45,58,.65),inset 0 0 0 2px #34495e}
.home-phone-screen{padding:22px 16px 18px;border-radius:34px;background:#f7f3ea;text-align:center;overflow:hidden}
.home-phone-verse{margin:0;font-size:.78rem;color:var(--iporse-muted)}
.home-phone-name{display:inline-block;margin:10px 0 12px;padding:7px 18px;border-radius:11px;background:var(--iporse-navy);color:#fff;font-weight:800;font-size:.95rem;box-shadow:0 0 0 3px #f7f3ea,0 0 0 4px var(--iporse-primary)}
.home-phone-photo{aspect-ratio:800/418;border-radius:14px;border:3px solid #e9dcc0;background:#ece6d8}
.home-phone-code{margin:8px 0 0;font-size:.72rem;color:var(--iporse-muted)}
.home-phone-label{display:flex;align-items:center;justify-content:center;gap:6px;margin:12px 0 8px;font-size:.8rem;font-weight:800;color:var(--iporse-navy)}
.home-phone-label::before,.home-phone-label::after{content:"";width:16px;height:1px;background:var(--iporse-primary)}
.home-phone-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.home-phone-buttons>span{position:relative;display:grid;gap:1px;padding:9px 6px;border-radius:12px;background:#fff;border:1.5px solid rgba(197,160,89,.6)}
.home-phone-buttons>span.is-wide{grid-column:1/-1;background:var(--iporse-gold-soft)}
.home-phone-buttons strong{font-size:.8rem;color:var(--iporse-navy)}
.home-phone-buttons small{font-size:.7rem;color:var(--iporse-muted)}
.home-phone-buttons b{font-variant-numeric:tabular-nums;color:var(--iporse-navy)}
.home-float{position:absolute;display:flex;align-items:center;gap:10px;padding:10px 14px 10px 12px;border-radius:18px;background:rgba(255,253,248,.95);backdrop-filter:blur(8px);box-shadow:0 18px 40px -22px rgba(31,45,58,.6);color:var(--iporse-navy);font-size:.85rem}
.home-float strong{display:block;font-size:.9rem}
.home-float small{color:var(--iporse-muted)}
.home-float b{font-variant-numeric:tabular-nums;font-weight:800}
.home-float-gift{inset-block-start:11%;inset-inline-start:0}
.home-float-gift img{width:46px;height:46px;border-radius:12px;object-fit:cover}
.home-float-live{inset-block-end:13%;inset-inline-end:0}

/* the share card in «ساخت یادبود رایگان» */
.home-share{display:flex;justify-content:center}
.home-share-card{display:grid;justify-items:center;gap:10px;width:min(100%,340px);padding:26px 22px;border-radius:26px;background:#fff;border:1px solid #ece5d4;box-shadow:0 40px 70px -40px rgba(44,62,80,.45);text-align:center}
.home-share-title{margin:0;font-weight:800;color:var(--iporse-sage);display:flex;align-items:center;gap:8px}
.home-share-title::before{content:"";width:22px;height:22px;border-radius:50%;background:var(--iporse-sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center/14px no-repeat}
.home-share-link{margin:0;padding:10px 16px;border-radius:12px;background:#f7f3ea;font-weight:700;color:var(--iporse-navy);letter-spacing:.02em}
.home-share-qr{width:128px;height:128px;padding:8px;border-radius:14px;border:1px solid #ece5d4;background:#fff}
.home-share-qr :is(img,canvas){display:block;width:112px!important;height:112px!important}
.home-share-apps{display:flex;gap:10px}
.home-share-apps img{width:34px;height:34px;border-radius:10px}
.home-share-note{margin:0;font-size:.82rem;color:var(--iporse-muted)}

/* statistics: rolling numbers; a rise lights the tile and lifts a «+n» */
.home-stat-grid>div{position:relative;overflow:hidden}
.home-stat-grid dd{transition:color 300ms var(--ease)}
.is-bump{animation:home-bump 1.2s var(--m-ease-enter)}
.home-stat-grid>.is-bump dd{color:var(--iporse-sage)}
@keyframes home-bump{0%{background-color:#eef3e6}100%{background-color:transparent}}
.home-delta{position:absolute;inset-block-start:10px;inset-inline-end:12px;padding:2px 9px;border-radius:999px;background:var(--iporse-sage);color:#fff;font-size:.78rem;font-weight:800;pointer-events:none;animation:home-delta 1.6s var(--m-ease-enter) forwards}
@keyframes home-delta{0%{opacity:0;transform:translateY(10px) scale(.9)}18%{opacity:1;transform:none}75%{opacity:1}100%{opacity:0;transform:translateY(-14px)}}

/* the hero's entrance, wide screens: the memorial page rises and settles, then the two cards arrive */
@keyframes home-phone-in{from{opacity:0;transform:translateY(40px) scale(.96)}}
@keyframes home-float-in{from{opacity:0;transform:translateY(16px) scale(.94)}}
@keyframes home-blob-in{from{opacity:0;transform:scale(.88)}}
@media(min-width:768px) and (prefers-reduced-motion:no-preference){
 .home-hero-visual::before{animation:home-blob-in 1200ms var(--m-ease-enter) both}
 .home-phone{animation:home-phone-in 1100ms var(--m-ease-enter) 180ms both}
 .home-float-gift{animation:home-float-in 700ms var(--m-ease-enter) 900ms both}
 .home-float-live{animation:home-float-in 700ms var(--m-ease-enter) 1050ms both}
 .home-float-live .home-hero-chip-dot{animation:home-pulse 2.8s ease-in-out 2s infinite}
}
@media(hover:hover) and (pointer:fine){
 .home-phone{transition:transform 600ms var(--ease)}
 .home-hero-visual:hover .home-phone{transform:translateY(-6px)}
 .home-share-apps img{transition:transform 150ms var(--ease)}
 .home-share-apps img:hover{transform:translateY(-2px)}
}

/* phones: a light hero (copy, then the memorial page smaller), a fade-up instead of the wide entrance */
@media(max-width:767px){
 .home-hero{display:grid;grid-template-columns:1fr;min-height:0;overflow:visible;border-radius:0;background:none;color:var(--iporse-navy)}
 .home-hero-copy{padding:4px 0 0}
 .home-hero h1 .home-line>.home-line-accent{color:var(--iporse-sage)}
 .home-eyebrow{color:var(--iporse-gold-text)}
 .home-lead{color:var(--iporse-muted)}
 .home-hero .home-search-main{border-top-color:#d8d3c8}
 .home-hero .home-search-form :is(input,select){border-color:#90979b}
 .home-hero :focus-visible{outline-color:var(--iporse-navy)}
 .home-hero-visual{min-height:0;margin-top:22px;padding:18px 0 8px}
 .home-hero-visual::after{display:none}
 .home-phone{width:min(78%,270px)}
 .home-float-gift{display:none}
 .home-float-live{inset-block-end:2%;inset-inline:auto;left:50%;transform:translateX(-50%);white-space:nowrap}
 .home-hero-visual{animation:home-fade-up 700ms var(--m-ease-enter) 500ms both}
}
@media(prefers-reduced-motion:reduce){.home-hero-visual,.home-phone,.home-float{animation:none!important}}
@media(max-width:767px){
 .home-hero-copy>.home-lead{color:var(--iporse-muted)}
 .home-hero-copy>.home-eyebrow{color:var(--iporse-gold-text)}
 .home-hero-actions{flex-direction:column}
 .home-hero-actions .btn{width:100%}
}
