/* Homepage — "Mehrab" design. Loaded only on the homepage; uses app.css tokens. */
:root {
    --h-ivory: #fbf6ef;
    --h-ivory-2: #f6ede2;
    --h-plum: #26101c;
    --h-plum-2: #3a1529;
    --h-gold: #c9a24b;
    --h-gold-soft: #e7d3a4;
    --h-jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23b0124a' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M28 4l24 24-24 24L4 28z'/%3E%3Ccircle cx='28' cy='28' r='9'/%3E%3Cpath d='M0 0l56 56M56 0L0 56'/%3E%3C/g%3E%3C/svg%3E");
    --h-jaali-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-opacity='.12' stroke-width='1'%3E%3Cpath d='M28 4l24 24-24 24L4 28z'/%3E%3Ccircle cx='28' cy='28' r='9'/%3E%3Cpath d='M0 0l56 56M56 0L0 56'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-theme="dark"] { --h-ivory: #1d1219; --h-ivory-2: #24161f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --h-ivory: #1d1219; --h-ivory-2: #24161f; } }

.h-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.h-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.h-eyebrow-gold { color: var(--h-gold); }
.h-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.h-head { margin-bottom: 32px; }
.h-head p { color: var(--ink-500); max-width: 560px; margin: 0; }
.h-head-center { text-align: center; }
.h-head-center p { margin-inline: auto; }
.h-head-center .h-eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.h-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.h-head-row .h-h2 { margin: 0; }

/* ---------------------------------------------------------------- Hero */
.h-hero { position: relative; z-index: 20; background: var(--h-jaali), linear-gradient(180deg, var(--h-ivory) 0%, var(--h-ivory-2) 100%); padding: 40px 0 0; overflow-x: clip; overflow-y: visible; }
.h-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 48px; background: var(--surface-2); }
.h-hero-grid { position: relative; display: grid; gap: 36px; align-items: center; padding-bottom: 72px; }
@media (min-width: 960px) { .h-hero { padding-top: 64px; } .h-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; padding-bottom: 96px; } }

.h-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--ink-700); margin: 0 0 20px; box-shadow: var(--shadow-1); }
.h-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.h-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.35rem, 1.4rem + 4.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 20px; color: var(--ink-900); }
.h-title .h-line { display: block; }
.h-title em { font-style: italic; color: var(--brand); position: relative; white-space: nowrap; }
.h-title em::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .14em; background: var(--h-gold); opacity: .45; border-radius: 4px; z-index: -1; }
.h-lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: var(--ink-500); max-width: 540px; margin: 0 0 28px; line-height: 1.7; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.h-btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: var(--line-strong); }
.h-btn-ghost:hover { --btn-bg: var(--surface); }
.h-assure { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--ink-700); font-weight: 600; }
.h-assure i { color: var(--success); margin-right: 4px; }

.h-hero-art { position: relative; justify-self: center; width: min(100%, 460px); padding: 14px 18px 0; }
.h-arch { position: relative; z-index: 2; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--brand-100); border: 8px solid var(--surface); box-shadow: 0 30px 60px -20px rgba(80, 10, 40, .35); }
.h-arch img { width: 100%; height: 100%; object-fit: cover; }
.h-arch-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: 4rem; color: var(--brand); background: var(--h-jaali), var(--brand-50); }
.h-arch-ring { position: absolute; z-index: 1; inset: 0 0 28px 36px; border: 2px solid var(--h-gold); border-radius: 999px 999px 32px 32px; opacity: .8; }
.h-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-3); font-size: .85rem; color: var(--ink-700); line-height: 1.25; }
.h-float strong { display: block; font-size: 1.15rem; color: var(--ink-900); }
.h-float-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.h-float-a { left: -6px; bottom: 22%; }
.h-float-b { right: -4px; top: 16%; }
.h-float-b .h-float-ic { background: var(--gold-50); color: var(--gold); }
@media (min-width: 960px) { .h-float-a { left: -40px; } .h-float-b { right: -28px; } }
@media (max-width: 420px) { .h-float { font-size: .78rem; padding: 8px 12px 8px 8px; } .h-float-ic { width: 32px; height: 32px; } }

/* --------------------------------------------------------------- Search */
.h-search { position: relative; z-index: 5; display: grid; gap: 4px; padding: 8px; margin: 0 0 -36px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 50px -18px rgba(60, 10, 30, .28); }
.h-search-field { display: grid; gap: 2px; padding: 10px 16px; border-radius: 16px; }
.h-search-field:focus-within { background: var(--surface-2); }
.h-search-field label, .h-search-label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.h-search select:focus-visible, .h-search input:focus-visible { box-shadow: none; outline: none; }
.h-search-field:focus-within { box-shadow: inset 0 0 0 2px var(--brand-100); }
.h-search select, .h-search input { border: 0; background: transparent; padding: 4px 0; font-size: 1.02rem; font-weight: 600; color: var(--ink-900); width: 100%; min-height: 32px; outline: none; appearance: none; }
.h-search select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%236a6273' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 20px; }
.h-search input::placeholder { color: var(--ink-400); font-weight: 500; }
.h-age { display: flex; align-items: center; gap: 8px; }
.h-age input { width: 56px; text-align: center; background: var(--surface-2); border-radius: 10px; }
.h-age span { color: var(--ink-400); }
.h-search-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 18px; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.02rem; box-shadow: 0 10px 22px -8px rgba(var(--primary-rgb), .7); transition: background-color .15s, transform .15s; }
.h-search-btn:hover { background: var(--brand-strong); }
.h-search-btn:active { transform: translateY(1px); }
:root[data-theme="dark"] .h-search-btn { color: #1b0a12; }
@media (min-width: 640px) and (max-width: 899px) { .h-search { grid-template-columns: 1fr 1fr; } .h-search-city, .h-search-btn { grid-column: 1 / -1; } }
.h-search-city .combo-list { left: -16px; right: -16px; }
@media (min-width: 900px) {
    .h-search { grid-template-columns: 1fr auto 1.4fr auto; align-items: center; padding: 8px 8px 8px 12px; border-radius: 999px; }
    .h-search-field { border-radius: 999px; padding: 8px 22px; position: relative; }
    .h-search-field + .h-search-field::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
    .h-search-btn { border-radius: 999px; min-height: 60px; padding: 0 34px; }
}

/* --------------------------------------------------------- Newest tabs */
.h-newest { padding-top: 88px; }
.h-tabs { display: inline-flex; padding: 5px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.h-tabs [role="tab"] { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--ink-500); display: inline-flex; align-items: center; gap: 8px; }
.h-tabs [role="tab"] span { font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-500); }
.h-tabs [role="tab"][aria-selected="true"] { background: var(--ink-900); color: var(--surface); }
.h-tabs [role="tab"][aria-selected="true"] span { background: rgba(255,255,255,.18); color: var(--surface); }
.h-panel + .h-panel { margin-top: 40px; }
.h-panel-title { font-size: 1.1rem; margin-bottom: 14px; }
.h-tabs-ready .h-panel + .h-panel { margin-top: 0; }
/* Until the tabs script runs, show only the default panel (no shift when it hides the others). */
.h-tabs-ready:not(.h-tabs-live) .h-panel:not(#panel-all) { display: none; }
.h-tabs-ready .h-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.h-more { text-align: center; margin: 28px 0 0; }
html:not(.h-tabs-ready) .h-tabs { display: none; }

/* ---------------------------------------------------------- How it works */
.h-how { position: relative; padding: clamp(56px, 8vw, 104px) 0; background: var(--h-jaali-gold), radial-gradient(900px 400px at 50% -10%, var(--h-plum-2), transparent 70%), var(--h-plum); color: #e9dfe5; }
.h-how .h-h2 { color: #fff; }
.h-how .h-head p { color: #c8b9c2; }
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 860px) { .h-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.h-steps li { position: relative; padding: 64px 26px 28px; border-radius: 120px 120px 22px 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(201,162,75,.35); text-align: center; }
.h-steps h3 { color: #fff; font-size: 1.12rem; margin: 14px 0 8px; }
.h-steps p { color: #c8b9c2; font-size: .95rem; margin: 0; }
.h-step-no { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--h-gold); color: var(--h-plum); font-weight: 800; font-family: var(--font-display); font-size: 1.15rem; box-shadow: 0 0 0 6px var(--h-plum); }
.h-step-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(201,162,75,.14); color: var(--h-gold-soft); font-size: 1.35rem; }
.h-how-cta { text-align: center; margin: 40px 0 0; }
.h-btn-gold { --btn-bg: var(--h-gold); --btn-fg: #2a1220; --btn-bd: var(--h-gold); box-shadow: 0 10px 24px -10px rgba(201,162,75,.8); }
.h-btn-gold:hover { --btn-bg: #d8b45f; --btn-bd: #d8b45f; color: #2a1220; }

/* ---------------------------------------------------------------- Why */
.h-why { position: relative; overflow: hidden; background: var(--h-jaali), linear-gradient(180deg, var(--h-ivory), var(--h-ivory-2)); border-block: 1px solid var(--line); }
.h-why::before { content: ""; position: absolute; right: -120px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 12%, transparent), transparent); pointer-events: none; }
.h-why-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .h-why-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.h-why-copy .h-h2 em { font-style: italic; color: var(--brand); }
.h-why-copy > p { color: var(--ink-500); font-size: 1.05rem; line-height: 1.75; }
.h-checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.h-checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink-800); }
.h-checks i { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--success-50); color: var(--success); font-size: .75rem; margin-top: 1px; }

.h-why-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px dashed var(--line); }
.h-why-points li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px dashed var(--line); color: var(--ink-500); line-height: 1.55; }
.h-why-points li > span { flex-shrink: 0; width: 40px; height: 48px; display: grid; place-items: center; border-radius: 999px 999px 10px 10px; background: var(--surface); border: 1.5px solid var(--h-gold); color: var(--brand); font-size: .95rem; }
.h-why-points strong { display: block; color: var(--ink-900); font-size: 1rem; margin-bottom: 2px; }

.h-why-tiles { display: grid; gap: 18px; }
@media (min-width: 560px) { .h-why-tiles { grid-template-columns: 1fr 1fr; } .h-why-tiles .h-tile:nth-child(even) { transform: translateY(28px); } }
.h-tile { position: relative; overflow: hidden; padding: 26px 24px 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: 0 18px 40px -30px rgba(80, 10, 40, .35); transition: box-shadow .3s, border-color .3s; }
.h-tile::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--brand), var(--h-gold)); opacity: 0; transition: opacity .3s; }
.h-tile:hover { border-color: var(--brand-200); box-shadow: 0 28px 50px -28px rgba(120, 15, 60, .45); }
.h-tile:hover::after { opacity: 1; }
.h-tile-no { position: absolute; right: 18px; top: 10px; font-family: var(--font-display); font-weight: 600; font-size: 3.4rem; line-height: 1; color: var(--ink-900); opacity: .06; }
.h-tile-ic { width: 52px; height: 62px; border-radius: 999px 999px 14px 14px; display: grid; place-items: center; padding-top: 6px; background: var(--brand-50); color: var(--brand); font-size: 1.2rem; border: 1.5px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.h-tile h3 { font-size: 1.08rem; margin: 16px 0 8px; }
.h-tile p { margin: 0; color: var(--ink-500); font-size: .93rem; line-height: 1.65; }
/* First tile is the headline promise: plum with gold. */
.h-tile:first-child { background: var(--h-jaali-gold), radial-gradient(300px 200px at 100% 0%, #6b1b3f, transparent 70%), var(--h-plum); border-color: rgba(201, 162, 75, .4); }
.h-tile:first-child h3 { color: #fff; }
.h-tile:first-child p { color: #d6c6ce; }
.h-tile:first-child .h-tile-no { color: #f3dfae; opacity: .14; }
.h-tile:first-child .h-tile-ic { background: linear-gradient(180deg, #f3dfae, #c9a24b); color: var(--h-plum); border-color: transparent; }
.h-tile:nth-child(2) .h-tile-ic { background: color-mix(in srgb, var(--h-gold) 16%, var(--surface)); color: #9a7526; border-color: color-mix(in srgb, var(--h-gold) 55%, transparent); }
.h-tile:nth-child(4) .h-tile-ic { background: var(--success-50); color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, transparent); }

/* ------------------------------------------------------------------ FAQ */
.h-faq-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .h-faq-grid { grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; } .h-faq-intro { position: sticky; top: calc(var(--header-h) + 24px); } }
.h-faq-intro { overflow: hidden; padding: clamp(28px, 4vw, 44px); border-radius: 220px 220px 28px 28px; color: #e9dde3; text-align: center;
    background: var(--h-jaali-gold), radial-gradient(420px 260px at 50% 0%, #6b1b3f, transparent 70%), var(--h-plum); border: 1px solid rgba(201, 162, 75, .4);
    box-shadow: inset 0 0 0 8px var(--h-plum), inset 0 0 0 9px rgba(201, 162, 75, .35), 0 30px 60px -36px rgba(60, 8, 32, .7); }
.h-faq-intro { padding-top: clamp(48px, 6vw, 64px); }
.h-faq-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 999px; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--h-plum); background: linear-gradient(180deg, #f3dfae, #c9a24b); box-shadow: 0 0 0 6px rgba(201, 162, 75, .18); }
.h-faq-intro .h-eyebrow { justify-content: center; }
.h-faq-intro h2 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
.h-faq-intro p { color: #d6c6ce; line-height: 1.7; margin: 0 auto 24px; max-width: 380px; }
.h-faq-actions { display: grid; gap: 14px; justify-items: center; }
.h-faq-intro .btn-gold { background: linear-gradient(180deg, #e3c27a, #c9a24b); color: #2a1220; border: 0; font-weight: 700; }
.h-faq-intro .btn-gold:hover { filter: brightness(1.06); text-decoration: none; }
.h-faq-link { color: #f3dfae; font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.h-faq-link:hover { color: #fff; text-decoration: none; }

.h-faq-list { display: grid; gap: 12px; }
.h-faq-item { position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s, background-color .25s; }
.h-faq-item:hover { border-color: var(--brand-200); }
.h-faq-item[open] { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--brand), #c9a24b) border-box; border: 1.5px solid transparent; box-shadow: 0 22px 44px -30px rgba(120, 15, 60, .45); }
.h-faq-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; }
.h-faq-item summary::-webkit-details-marker { display: none; }
.h-faq-item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.h-faq-no { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: #c9a24b; min-width: 30px; }
.h-faq-q { font-weight: 700; color: var(--ink-900); font-size: 1.02rem; line-height: 1.4; }
.h-faq-item[open] .h-faq-q { color: var(--brand-ink); }
.h-faq-toggle { position: relative; width: 34px; height: 34px; border-radius: 999px; background: var(--brand-50); transition: background-color .25s, transform .3s; }
.h-faq-toggle::before, .h-faq-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--brand); transform: translate(-50%, -50%); transition: transform .3s, background-color .25s; }
.h-faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.h-faq-item[open] .h-faq-toggle { background: var(--brand); transform: rotate(180deg); }
.h-faq-item[open] .h-faq-toggle::before { background: #fff; }
.h-faq-item[open] .h-faq-toggle::after { background: #fff; transform: translate(-50%, -50%) rotate(0deg); }
.h-faq-a { padding: 0 20px 20px calc(20px + 30px + 16px); }
.h-faq-a p { margin: 0; color: var(--ink-500); line-height: 1.75; }
.h-faq-item[open] .h-faq-a { animation: h-faq-in .3s ease; }
@keyframes h-faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .h-faq-item summary { gap: 12px; padding: 16px; } .h-faq-a { padding: 0 16px 18px; } .h-faq-no { font-size: 1.05rem; min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .h-faq-item[open] .h-faq-a { animation: none; } }

/* ------------------------------------------------------------ Final CTA */
.h-final-wrap { padding-top: 0; }
.h-final { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 96px) 24px clamp(48px, 6vw, 72px); border-radius: 260px 260px 32px 32px; background: var(--h-jaali-gold), radial-gradient(700px 300px at 50% 0%, #6b1b3f, transparent 70%), var(--h-plum); color: #e9dfe5; border: 1px solid rgba(201,162,75,.4); }
@media (max-width: 640px) { .h-final { border-radius: 140px 140px 24px 24px; } }
.h-final .h-h2 { color: #fff; }
.h-final p { color: #c8b9c2; margin: 0 auto 26px; max-width: 460px; }
.h-final .h-eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) { .h-city, .h-post, .h-why-tiles .h-tile { transition: none; transform: none !important; } }

/* ------------------------------------------------------------- Browse 2 */
.h-browse-grid { display: grid; gap: 24px; }
.h-postcards { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .h-postcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.h-postcard { --t1: #fff1f5; --t2: #ffe1ea; --ink: #8c0f3b;
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-height: 148px; padding: 16px 16px 14px; border-radius: 22px; color: var(--ink);
    background: linear-gradient(150deg, var(--t1), var(--t2)); border: 1px solid color-mix(in srgb, var(--t2) 70%, #000 4%); transition: transform .25s ease, box-shadow .25s ease; }
.h-postcard::after { content: ""; position: absolute; right: 16px; top: 14px; width: 30px; height: 38px; border-radius: 999px 999px 6px 6px; border: 1.5px solid currentColor; opacity: .3; }
.h-postcard::before { content: ""; position: absolute; right: 22px; top: 20px; width: 18px; height: 26px; border-radius: 999px 999px 4px 4px; background: currentColor; opacity: .1; }
.h-postcard:hover { text-decoration: none; color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 34px -20px rgba(60, 10, 30, .45); }
.h-postcard.tint-gold { --t1: #fbf5e7; --t2: #f3e3bd; --ink: #7a5513; }
.h-postcard.tint-plum { --t1: #f6eef8; --t2: #e9d8ef; --ink: #5a2453; }
.h-postcard.tint-sage { --t1: #eef6f1; --t2: #d6eadf; --ink: #1f5b44; }
:root[data-theme="dark"] .h-postcard { --t1: #2a1520; --t2: #3a1a29; --ink: #ffb3c8; border-color: var(--line); }
:root[data-theme="dark"] .h-postcard.tint-gold { --t1: #2a2213; --t2: #3a2f17; --ink: #e9c97a; }
:root[data-theme="dark"] .h-postcard.tint-plum { --t1: #261526; --t2: #35203a; --ink: #e2b6e6; }
:root[data-theme="dark"] .h-postcard.tint-sage { --t1: #13241c; --t2: #1c3328; --ink: #9fdcbf; }
.h-postcard-label { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.h-postcard-label i { margin-right: 3px; }
.h-postcard-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.h-postcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .84rem; opacity: .95; }
.h-postcard-foot strong { font-size: 1rem; }
.h-postcard-go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.7); font-size: .75rem; transition: transform .2s; }
:root[data-theme="dark"] .h-postcard-go { background: rgba(255,255,255,.08); }
.h-postcard:hover .h-postcard-go { transform: translateX(3px); }

.h-profs { position: relative; overflow: hidden; padding: 24px; border-radius: 26px; color: #e9dfe5;
    background: var(--h-jaali-gold), radial-gradient(500px 260px at 100% 0%, #6b1b3f, transparent 70%), var(--h-plum); border: 1px solid rgba(201,162,75,.35); }
.h-profs h3 { margin: 0 0 14px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; }
.h-profs { padding: 24px 24px 18px; }
.h-profs-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.h-profs-head h3 { margin: 0; }
.h-profs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .h-profs ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .h-profs ul { grid-template-columns: repeat(4, 1fr); } }
.h-profs a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; color: #ece3e8; font-weight: 600; font-size: .95rem; }
.h-profs a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.h-profs-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(201,162,75,.16); color: var(--h-gold-soft); flex-shrink: 0; font-size: .9rem; }
.h-profs-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-profs-n { font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.1); color: #f0e6eb; }
.h-profs-go { color: rgba(255,255,255,.35); font-size: .75rem; transition: transform .2s, color .2s; }
.h-profs a:hover .h-profs-go { color: var(--h-gold); transform: translateX(3px); }

/* ------------------------------------------------------------ Journal 2 */
.h-mag { display: grid; gap: 22px; }
@media (min-width: 960px) { .h-mag { grid-template-columns: 1.25fr 1fr; gap: 28px; } }
.h-mag-lead { position: relative; overflow: hidden; border-radius: 28px; display: flex; flex-direction: column;
    background: var(--h-jaali-gold), radial-gradient(500px 240px at 100% 100%, #6b1b3f, transparent 70%), var(--h-plum); border: 1px solid rgba(201,162,75,.35); }
.h-mag-lead > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; transition: transform .7s ease; }
.h-mag-lead:hover > img { transform: scale(1.03); }
.h-mag-lead-body { position: relative; }
.h-mag-pill { position: absolute; top: -16px; left: clamp(22px, 3vw, 34px); }
.h-mag-lead-body { padding: clamp(22px, 3vw, 34px); color: #f3ebef; }
.h-mag-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--h-gold); color: #2a1220; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.h-mag-meta { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.h-mag-lead h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.15; }
.h-mag-lead h3 a { color: #fff; }
.h-mag-lead h3 a::after { content: ""; position: absolute; inset: 0; }
.h-mag-lead h3 a:hover { text-decoration: none; }
.h-mag-excerpt { margin: 0 0 14px; color: rgba(243, 235, 239, .85); max-width: 560px; }
.h-mag-read { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--h-gold-soft); transition: gap .2s; }
.h-mag-lead:hover .h-mag-read { gap: 12px; }
.h-mag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.h-mag-item { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 16px 16px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.h-mag-item:hover { border-color: var(--brand-200); box-shadow: var(--shadow-2); transform: translateX(3px); }
.h-mag-no { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--h-gold); min-width: 40px; }
.h-mag-item .h-mag-meta { color: var(--brand); opacity: 1; font-size: .72rem; }
.h-mag-item h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.h-mag-item h3 a { color: var(--ink-900); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h-mag-item h3 a::after { content: ""; position: absolute; inset: 0; }
.h-mag-item:hover h3 a { color: var(--brand); text-decoration: none; }
.h-mag-item img { width: 84px; height: 84px; border-radius: 999px 999px 14px 14px; object-fit: cover; }
@media (max-width: 480px) { .h-mag-item { grid-template-columns: auto 1fr; } .h-mag-item img { display: none; } }

/* ------------------------------------------------------------------ App */
.h-app-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .h-app-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.h-app-copy > p { color: var(--ink-500); font-size: 1.05rem; line-height: 1.75; }
.h-app-actions { margin-top: 24px; display: grid; gap: 12px; justify-items: start; }
.h-app-hint { margin: 0; font-size: .88rem; color: var(--ink-500); max-width: 520px; }
.h-app-hint i { color: var(--brand); margin-right: 4px; }
.h-phone { justify-self: center; width: 250px; aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 40px; background: linear-gradient(160deg, #3a1529, #1a0a12); box-shadow: 0 40px 70px -30px rgba(60, 10, 30, .6), inset 0 0 0 2px rgba(201,162,75,.4); position: relative; }
.h-phone::before { content: ""; position: absolute; inset: -18px -36px; z-index: -1; border-radius: 999px 999px 40px 40px; border: 1.5px solid var(--h-gold); opacity: .5; }
.h-phone-screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: var(--h-ivory); display: flex; flex-direction: column; }
.h-phone-bar { height: 26px; display: grid; place-items: center; }
.h-phone-bar span { width: 70px; height: 18px; border-radius: 999px; background: #1a0a12; }
.h-phone-hero { margin: 4px 14px 0; flex: 1; border-radius: 999px 999px 16px 16px; overflow: hidden; background: var(--brand-100); }
.h-phone-hero img { width: 100%; height: 100%; object-fit: cover; }
.h-phone-card { margin: -28px 18px 0; position: relative; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 10px 22px -12px rgba(0,0,0,.35); display: grid; gap: 2px; text-align: center; }
.h-phone-card strong { font-family: var(--font-display); color: #b0124a; font-size: 1rem; }
.h-phone-card span { font-size: .72rem; color: #6a6273; }
.h-phone-btn { margin-top: 6px; padding: 6px; border-radius: 999px; background: #d81a56; color: #fff !important; font-weight: 700; }
.h-phone-tabs { display: flex; justify-content: space-around; padding: 12px 8px 14px; color: #8d8596; font-size: .85rem; }
.h-phone-tabs span:first-child { color: #d81a56; }

/* --------------------------------------------------------- Scroll reveal */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } .h-postcard, .h-mag-item, .h-mag-lead img { transition: none; } }
@media (max-width: 559px) {
    .h-tile { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
    .h-tile-ic { grid-row: span 2; width: 44px; height: 54px; font-size: 1.05rem; }
    .h-tile h3 { margin: 2px 0 6px; }
    .h-tile-no { font-size: 2.6rem; }
}

/* ------------------------------------------------ Talk (calls, voice notes) */
.h-talk { background: var(--h-jaali), linear-gradient(180deg, var(--surface), var(--surface-2)); }
.h-talk-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .h-talk-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } }
.h-talk .h-h2 em { font-style: normal; color: var(--brand); }
.h-talk-lead { font-size: 1.05rem; color: var(--ink-500); max-width: 620px; }
.h-feats { list-style: none; margin: 26px 0 28px; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .h-feats { grid-template-columns: 1fr 1fr; } }
.h-feats li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 30px -26px rgba(80, 10, 40, .45); }
.h-feats h3 { margin: 0 0 4px; font-size: 1rem; color: var(--ink-900); }
.h-feats p { margin: 0; font-size: .88rem; color: var(--ink-500); line-height: 1.45; }
.h-feat-ic { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: var(--brand-50); color: var(--brand); font-size: 1.05rem; }
.h-feat-ic.is-green { background: #dcfce7; color: #15803d; }
.h-feat-ic.is-gold { background: #f8efd9; color: #9a7522; }
.h-feat-ic.is-blue { background: #e0f2fe; color: #0284c7; }
.h-feat-ic.is-plum { background: #f3e8ef; color: var(--h-plum); }

/* Illustrative phone */
.h-phone { position: relative; justify-self: center; width: min(330px, 92%); padding: 12px; border-radius: 44px; background: linear-gradient(160deg, #3a1529, #120910);
    box-shadow: 0 40px 80px -40px rgba(60, 10, 35, .7), inset 0 0 0 2px rgba(201, 162, 75, .45); }
.h-phone-screen { border-radius: 34px; overflow: hidden; background: #f7f2f4; display: flex; flex-direction: column; min-height: 460px; color: #2b2230; }
.h-ph-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; background: #fff; border-bottom: 1px solid #eee3e8; }
.h-ph-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #f9d4e1, #f3dfae); color: #b0124a; font-size: .9rem; }
.h-ph-who { flex: 1; display: grid; line-height: 1.2; }
.h-ph-who strong { font-size: .9rem; }
.h-ph-who small { font-size: .7rem; color: #15803d; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.h-ph-who small i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.h-ph-act { color: #8a7f8a; font-size: .9rem; padding: 0 4px; }
.h-ph-act.is-call { color: #16a34a; }
.h-ph-log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.h-ph-day { align-self: center; font-size: .62rem; font-weight: 700; color: #8a7f8a; background: #fff; border: 1px solid #eee3e8; padding: 2px 9px; border-radius: 999px; }
.h-ph-msg { align-self: flex-start; max-width: 82%; padding: 7px 10px 5px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid #eee3e8; font-size: .78rem; line-height: 1.35; }
.h-ph-msg small { display: block; text-align: right; font-size: .58rem; color: #9b8f9b; margin-top: 2px; }
.h-ph-msg.is-mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: linear-gradient(160deg, #e0326a, #d81a56); border-color: transparent; color: #fff; }
.h-ph-msg.is-mine small { color: rgba(255, 255, 255, .8); }
.h-ph-seen { color: #4cc9ff; filter: drop-shadow(0 0 1px rgba(0, 30, 70, .6)); }
.h-ph-call { display: flex; align-items: center; gap: 8px; }
.h-ph-call strong { display: block; font-size: .8rem; }
.h-ph-call small { text-align: left; }
.h-ph-cic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: .7rem; }
.h-ph-voice { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; }
.h-ph-voice small { margin: 0; }
.h-ph-play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #d81a56; color: #fff; font-size: .6rem; flex-shrink: 0; }
.h-ph-wave { display: flex; align-items: center; gap: 2px; height: 22px; width: 120px; }
.h-ph-wave i { flex: 1; height: var(--h); border-radius: 2px; background: #d81a56; opacity: .75; }
.h-ph-compose { display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px; background: #fff; border-top: 1px solid #eee3e8; }
.h-ph-compose span:first-child { flex: 1; padding: 8px 12px; border-radius: 999px; background: #f7f2f4; color: #9b8f9b; font-size: .75rem; }
.h-ph-mic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d81a56; color: #fff; font-size: .8rem; }
.h-phone-badge { position: absolute; right: -10px; top: -16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #16a34a; color: #fff; font-weight: 800; font-size: .82rem;
    box-shadow: 0 14px 30px -14px rgba(22, 163, 74, .8); transform: rotate(-6deg); }
@media (max-width: 420px) { .h-phone-badge { right: 0; } }
