/* Public site, auth and error pages (docs/06 §4). Built only from base.css tokens/components. */

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-4); height: 64px; }
.site-nav { flex: 1; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: var(--r-sm); color: var(--muted); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--ink); background: var(--hover); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.site-nav__auth--mobile { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.site-header__burger { display: none; }
@media (max-width: 860px) {
  .site-header__burger { display: inline-flex; }
  .site-header__login, .site-header__signup { display: none; }
  .site-nav { position: fixed; inset: 64px 0 auto 0; display: none; padding: var(--space-4); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-3); z-index: var(--z-drawer); }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { width: 100%; height: 46px; }
  .site-nav__auth--mobile { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
  .site-nav__auth--mobile .btn { flex: 1; }
}

/* ---------- footer ---------- */
.site-footer { margin-top: var(--space-10); padding: var(--space-9) 0 var(--space-6); background: var(--surface-2); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer__h { margin: 0 0 var(--space-3); font-size: .9375rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__social { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: .8125rem; }

/* ---------- sections ---------- */
.section { padding: var(--space-10) 0; }
.section--tint { background: var(--surface-2); }
.section__head { max-width: 640px; margin: 0 auto var(--space-8); text-align: center; }
.section__head h2 { margin: 0 0 var(--space-2); font-size: 1.875rem; }
.page-head { padding: var(--space-9) 0 var(--space-6); }
.page-head h1 { margin-bottom: var(--space-2); font-size: 2.25rem; }
.page-head p { color: var(--muted); font-size: 1.125rem; max-width: 62ch; }
.prose { max-width: var(--w-article); }
.prose h2 { margin-top: 1.8em; }
.prose p, .prose li { line-height: 1.95; }

@counter-style persian { system: numeric; symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹"; }

.faq { max-width: 760px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: var(--space-3); }
.faq summary { padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

.cta-band { text-align: center; padding: var(--space-9) var(--space-5); border-radius: var(--r-lg); background: var(--ink); color: var(--bg); }
.cta-band h2 { margin: 0 0 var(--space-2); color: inherit; }
.cta-band p { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.cta-band .btn--primary { margin-top: var(--space-3); }
.cta-band a:not(.btn) { color: inherit; }

/* ---------- blog ---------- */
.post-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card__cover { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--faint); background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); }
.post-card__placeholder .icon { width: 40px; height: 40px; }
.post-card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-5) var(--space-5); flex: 1; }
.post-card__title { margin: 0; font-size: 1.125rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt { margin: 0; color: var(--muted); font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: var(--space-2); font-size: .8125rem; color: var(--muted); }
.article-layout { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, var(--w-article)); justify-content: center; } }
.article h1 { font-size: 2.125rem; line-height: 1.55; margin-bottom: var(--space-3); }
.article__cover { margin: var(--space-5) 0; border-radius: var(--r-md); overflow: hidden; }
.article__cover img { width: 100%; display: block; }
.article__body { font-size: 1.125rem; line-height: 1.95; overflow-wrap: break-word; }
.article__body h2, .article__body h3 { scroll-margin-top: 90px; }
.article__body img { border-radius: var(--r-sm); }
.article__body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 8px 10px; }
.article__body blockquote { margin: 1.5em 0; padding: var(--space-3) var(--space-5); border-inline-start: 4px solid var(--accent); background: var(--accent-soft); border-radius: var(--r-sm); }
.article__body a { text-decoration: underline; }
.article__body pre { overflow-x: auto; padding: var(--space-4); background: var(--surface-2); border-radius: var(--r-sm); direction: ltr; text-align: left; }
.toc { position: sticky; top: 84px; align-self: start; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: .875rem; }
.toc h2 { margin: 0 0 var(--space-2); font-size: .9375rem; }
.toc ol { margin: 0; padding-inline-start: 22px; list-style-type: persian; }
.toc li + li { margin-top: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (max-width: 1023px) { .toc { position: static; } }
.author-box { display: flex; gap: var(--space-4); align-items: flex-start; margin: var(--space-7) 0; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.author-box__avatar { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 1.25rem; overflow: hidden; }
.author-box h3 { margin: 0 0 4px; font-size: 1rem; }
.post-nav { display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; margin: var(--space-6) 0; }
.post-nav a { display: block; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none; color: var(--ink); }
.post-nav a:hover { border-color: var(--accent); text-decoration: none; }
.post-nav small { display: block; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.cat-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-6); padding: 0; list-style: none; }

/* ---------- auth ---------- */
.auth { display: grid; min-height: 100vh; }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.auth__main { display: flex; flex-direction: column; padding: var(--space-5); }
.auth__top { margin-bottom: var(--space-6); }
.auth__form { width: 100%; max-width: var(--w-form); margin: auto; padding-block: var(--space-6); }
.auth__form h1 { font-size: 1.75rem; margin-bottom: var(--space-2); }
.auth__form .sub { color: var(--muted); margin-bottom: var(--space-6); }
.auth__links { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); font-size: .9375rem; }
.auth__art { display: none; align-items: center; justify-content: center; padding: var(--space-8); background: linear-gradient(160deg, var(--accent-soft), var(--surface-2)); border-inline-start: 1px solid var(--line); }
@media (min-width: 960px) { .auth__art { display: flex; } }
.auth__art svg { width: min(420px, 100%); height: auto; }
.auth__art p { max-width: 36ch; text-align: center; color: var(--muted); }

/* ---------- error pages ---------- */
.site--error { display: grid; min-height: 100vh; place-items: center; padding: var(--space-5); }
.error-card { width: min(520px, 100%); text-align: center; padding: var(--space-8) var(--space-6); }
.error-card .brand { margin-bottom: var(--space-5); }
.error-card__code { margin: 0; font-size: 4rem; font-weight: 700; line-height: 1.2; color: var(--accent); }
.error-card h1 { font-size: 1.5rem; margin: var(--space-2) 0; }
.error-card__actions { justify-content: center; margin-top: var(--space-5); }
.error-card__id { margin: var(--space-5) 0 0; }
.flash-wrap { padding-top: var(--space-4); }

/* auth side panel value points */
.auth__art > div { display: grid; justify-items: center; gap: var(--space-4); }
.auth__art .auth__tag { font-size: 1.125rem; font-weight: 600; color: var(--ink); margin: var(--space-2) 0 0; }
.auth__points { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.auth__points li { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); font-size: .9375rem; }
.auth__points .icon { width: 18px; height: 18px; flex: 0 0 auto; padding: 3px; border-radius: 50%; background: var(--surface); color: var(--success); box-sizing: content-box; }

/* features page: two-column card grid instead of one narrow column */
.feature-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.feature-grid .feature-card p { line-height: 1.95; }

/* blog search (IN-034) */
.blog-search { position: relative; display: flex; gap: var(--space-2); max-width: 560px; margin: 0 0 var(--space-5); }
.blog-search > .icon { position: absolute; inset-inline-start: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.blog-search .input { flex: 1; padding-inline-start: 40px; }

/* ==========================================================================
   Home redesign (IN-038): 8px grid, 128px section rhythm, photography-led.
   ========================================================================== */
.site .container { max-width: 1160px; padding-inline: max(24px, env(safe-area-inset-left, 0px)); }
@media (max-width: 600px) { .site .container { padding-inline: 16px; } }
.hm-label { font-size: .8125rem; font-weight: 600; color: var(--accent); }
.hm-lede { font-size: clamp(1.03rem, 1.4vw, 1.16rem); line-height: 1.95; color: var(--muted); margin: 0; max-width: 34em; }
.hm-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 56px; }
.hm-head h2 { margin: 0; font-size: clamp(1.7rem, 3.3vw, 2.45rem); line-height: 1.4; letter-spacing: -.01em; text-wrap: balance; }
.hm-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.hm-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.hm-head--row > div { display: grid; gap: 14px; max-width: 640px; }
.hm-more { font-weight: 600; font-size: .9375rem; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; text-decoration: none; white-space: nowrap; }
.hm-more:hover { border-color: var(--ink); text-decoration: none; }
.hm-sec { padding: 120px 0; }
.hm-sec--paper { background: var(--surface); border-block: 1px solid var(--line); }
@media (max-width: 700px) { .hm-sec { padding: 72px 0; } .hm-head { margin-bottom: 36px; } }

/* steps */
.hm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: hm; }
@media (max-width: 860px) { .hm-steps { grid-template-columns: 1fr; } }
.hm-steps li { display: grid; gap: 10px; counter-increment: hm; }
.hm-step__art { border-radius: 20px; max-width: 100%; }
.hm-steps h3 { margin: 8px 0 0; font-size: 1.2rem; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.hm-steps h3::before { content: counter(hm, persian); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: .85rem; font-weight: 700; flex: 0 0 auto; }
.hm-steps p { margin: 0; color: var(--muted); }

/* faq */
.hm-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
@media (max-width: 860px) { .hm-faq { grid-template-columns: 1fr; gap: 24px; } }
.hm-faq .hm-head { margin: 0; position: sticky; top: 104px; }
@media (max-width: 860px) { .hm-faq .hm-head { position: static; } }
.hm-qa { border-top: 1px solid var(--line-strong); }
.hm-qa details { border-bottom: 1px solid var(--line-strong); }
.hm-qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 1.0625rem; }
.hm-qa summary::-webkit-details-marker { display: none; }
.hm-qa summary::after { content: "+"; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; transition: transform .2s; }
.hm-qa details[open] summary::after { transform: rotate(45deg); }
.hm-qa p { margin: 0; padding: 0 0 24px; color: var(--muted); max-width: 40em; }

/* final */
.hm-final { padding: 0 0 96px; }
.hm-final__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; border-radius: 28px; overflow: hidden; background: radial-gradient(70% 120% at 100% 0%, var(--lav-2), transparent 60%), radial-gradient(60% 120% at 0% 100%, var(--peach), transparent 60%), var(--lav); }
@media (max-width: 860px) { .hm-final__panel { grid-template-columns: 1fr; } }
.hm-final__txt { padding: 64px 56px; display: grid; gap: 18px; justify-items: start; }
@media (max-width: 600px) { .hm-final__txt { padding: 40px 24px 0; } }
.hm-final__txt h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.45; text-wrap: balance; }
.hm-final__txt p { margin: 0; color: var(--muted); }
.hm-final__art { padding: 32px 40px; }
.hm-final__ill { max-width: 460px; margin-inline: auto; }
.hm-credit { margin: 14px 0 0; font-size: .75rem; color: var(--faint); }

/* header + footer refresh */
.site-header { background: color-mix(in srgb, var(--bg) 84%, transparent); border-bottom-color: transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: 72px; }
.site-nav a { font-weight: 500; }
.site-nav a[aria-current="page"] { background: transparent; color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
@media (max-width: 860px) { .site-nav { inset: 72px 0 auto 0; } .site-nav a[aria-current="page"] { box-shadow: none; background: var(--accent-soft); border-radius: var(--r-sm); } }
.site-footer { margin-top: 0; background: var(--surface); }

/* features page cards */
.feature-card { display: flex; flex-direction: column; gap: var(--space-2); }
.feature-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.feature-card__icon .icon { width: 24px; height: 24px; vertical-align: 0; }
.feature-card h3 { margin: var(--space-2) 0 0; font-size: 1.0625rem; }
.feature-card p { margin: 0; color: var(--muted); }
.error-card__art { max-width: 260px; margin: 0 auto var(--space-3); }
.auth__art .ill { width: min(400px, 100%); }

/* ---------- inner public pages: pastel page heads, toned cards (IN-038) ---------- */
.page-head--art { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); margin-top: var(--space-6); margin-bottom: var(--space-6); padding: var(--space-8) clamp(24px, 4vw, 56px); border-radius: 28px; background:
  radial-gradient(70% 120% at 0% 100%, color-mix(in srgb, var(--peach) 75%, transparent) 0%, transparent 60%),
  linear-gradient(135deg, var(--lav) 0%, color-mix(in srgb, var(--lav) 35%, var(--surface)) 100%); }
.page-head--art h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 800; letter-spacing: -.015em; }
.page-head--art p { color: var(--muted); }
.page-head--art .breadcrumbs { margin-bottom: var(--space-3); }
.page-head__text { min-width: 0; }
.page-head__art { width: 250px; flex: 0 0 auto; }
@media (max-width: 759px) { .page-head__art { display: none; } .page-head--art { padding: var(--space-6) var(--space-5); border-radius: 22px; } }
.feature-card__icon[class*="tone-"] { background: var(--tone); color: var(--tone-d); }
.feature-grid .feature-card { border-radius: 20px; padding: var(--space-6); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.feature-grid .feature-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.post-card { border-radius: 20px; }
.post-card__placeholder[class*="tone-"] { background: radial-gradient(color-mix(in srgb, var(--tone-d) 22%, transparent) 1.1px, transparent 1.6px) 0 0 / 18px 18px, var(--tone); }
.tile-glyph { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-2); color: var(--tone-d, var(--accent)); transition: transform .25s var(--ease); }
.post-card__placeholder .tile-glyph .icon { width: 26px; height: 26px; }
.post-card:hover .tile-glyph { transform: translateY(-3px) rotate(-3deg); }
@media (prefers-reduced-motion: reduce) { .feature-grid .feature-card, .tile-glyph { transition: none; } .feature-grid .feature-card:hover, .post-card:hover .tile-glyph { transform: none; } }

/* ==========================================================================
   "Architect's office" direction (IN-039): grid paper, sheet-framed viewer,
   pastel audience cards, illustrated features. The viewer and the cards are
   illustration objects and keep their light colours in both themes.
   ========================================================================== */
body.site { background-color: var(--bg); background-image: linear-gradient(var(--paper-grid) 1px, transparent 1px), linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }
.hm-kicker { display: inline-flex; gap: 10px; align-items: center; font-size: .8125rem; font-weight: 600; color: var(--accent); }
.hm-kicker::before { content: ""; width: 28px; border-top: 1.5px solid currentColor; }
.hm-nowrap { white-space: nowrap; }
.hm-sec { padding: 96px 0; }
#who.hm-sec { padding-block: 32px 40px; }
#how.hm-sec { padding-block: 48px; }
#features.hm-sec { padding-block: 48px 96px; }
@media (max-width: 700px) { .hm-sec { padding: 64px 0; } #who.hm-sec, #how.hm-sec { padding-block: 32px; } }

/* hero */
.hm-hero { padding-block: 72px 80px; overflow-x: clip; }
.hm-hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .hm-hero__in { grid-template-columns: minmax(0, 1fr); gap: 48px; } .hm-hero { padding-block: 40px 56px; } }
.hm-hero__txt { position: relative; min-width: 0; }
.hm-hero h1 { font-size: clamp(2rem, 1.45rem + 1.9vw, 2.875rem); line-height: 1.45; font-weight: 800; margin: 14px 0 18px; text-wrap: balance; max-width: 14em; }
.hm-sub { margin: 0 0 12px; font-size: clamp(1.0625rem, .98rem + .35vw, 1.25rem); font-weight: 600; line-height: 1.85; color: var(--ink); text-wrap: pretty; max-width: 26em; }
.hm-hero .hm-lede { margin: 0 0 32px; font-size: 1rem; line-height: 2; text-wrap: pretty; max-width: 31em; }
.hm-arrow { position: absolute; inset: auto auto -22px -86px; width: 400px; height: 143px; pointer-events: none; }
@media (max-width: 900px) { .hm-arrow { display: none; } }
.hm-arrow path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 7; stroke-linecap: round; stroke-linejoin: round; }
.hm-arrow .hm-arrow__head { stroke-dasharray: none; }
.hm-arrow circle { fill: var(--ink); }
.hm-arrow__trail { animation: hm-dash-in 1.6s ease-out .4s both; }
@keyframes hm-dash-in { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }

/* viewer */
.hm-sheet { margin: 0; min-width: 0; }
.hm-sheet__frame { background: #FFFFFF; border: 1px solid #E2E8F1; border-radius: 24px; padding: 14px; box-shadow: 0 1px 2px rgba(27, 43, 69, .05), 0 30px 60px -36px rgba(27, 43, 69, .45); color: #1B2B45; }
.hm-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #EEF1F6; border-radius: 16px 16px 6px 6px; max-width: 100%; }
.hm-slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.hm-slide.is-on { opacity: 1; visibility: visible; }
.hm-slide > svg { width: 92%; height: 92%; }
.hm-slide > img { width: 100%; height: 100%; object-fit: cover; }
.hm-slide text { font-family: var(--font); }
.hm-board { width: 100%; height: 100%; display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 5%; }
.hm-board img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.hm-board__big { grid-row: span 2; }
.hm-sw { display: grid; grid-template-rows: 1fr auto; gap: 6px; background: #FFFFFF; border-radius: 10px; padding: 8px; font-size: .75rem; line-height: 1.5; }
.hm-sw i { display: block; border-radius: 6px; }
.hm-est { width: min(84%, 640px); background: #FFFFFF; border-radius: 16px; box-shadow: 0 20px 50px -24px rgba(27, 43, 69, .45); padding: 3.5% 4.5%; font-size: clamp(.62rem, .42rem + .5vw, .9rem); }
.hm-est h3 { margin: 0 0 2%; font-size: 1.2em; }
.hm-est table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hm-est td, .hm-est th { padding: 1.6% 1%; border-bottom: 1px solid #E2E8F1; text-align: start; }
.hm-est th { color: #56627A; font-weight: 400; }
.hm-est .num { text-align: end; }
.hm-est tfoot td { font-weight: 800; border-bottom: 0; color: #2F5288; }
.hm-rep { width: min(86%, 720px); height: 88%; background: #FFFFFF; border-radius: 14px; box-shadow: 0 20px 50px -24px rgba(27, 43, 69, .45); padding: 4% 5%; display: grid; grid-template-rows: auto 1fr auto; gap: 4%; font-size: clamp(.6rem, .42rem + .45vw, .85rem); }
.hm-rep__h { display: flex; justify-content: space-between; align-items: end; border-bottom: 2px solid #1B2B45; padding-bottom: 2%; gap: 8px; }
.hm-rep__h b { font-size: 1.3em; }
.hm-rep__body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5%; min-height: 0; }
.hm-rep__body svg { width: 100%; height: 100%; }
.hm-kpis { display: grid; gap: 6%; align-content: center; }
.hm-kpis div { border-radius: 10px; padding: 4% 6%; background: #F5F7FA; }
.hm-kpis small { display: block; color: #56627A; }
.hm-kpis b { font-size: 1.3em; font-variant-numeric: tabular-nums; }
.hm-rep__f { display: flex; justify-content: space-between; color: #56627A; }
.hm-arr { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1B2B45; display: grid; place-items: center; cursor: pointer; z-index: 2; box-shadow: 0 6px 16px -6px rgba(27, 43, 69, .45); }
.hm-arr[hidden] { display: none; }
.hm-arr:hover { background: #FFFFFF; }
.hm-arr svg { width: 18px; height: 18px; fill: currentColor; }
.hm-arr--prev { inset-inline-start: 12px; }
.hm-arr--next { inset-inline-end: 12px; }
.hm-tblock { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr; margin-top: 10px; background: #F5F7FA; border-radius: 6px 6px 14px 14px; font-size: .75rem; }
.hm-tblock > div { padding: 8px 12px; border-inline-start: 1px solid #E2E8F1; line-height: 1.6; min-width: 0; }
.hm-tblock > div:first-child { border-inline-start: 0; }
.hm-tblock small { display: block; color: #56627A; font-size: .6875rem; }
.hm-tblock b { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .hm-tblock { grid-template-columns: 1fr 1fr; } .hm-tblock > div:nth-child(3) { border-inline-start: 0; } .hm-tblock > div:nth-child(n+3) { border-top: 1px solid #E2E8F1; } }
.hm-thumbs { display: flex; gap: 10px; overflow-x: auto; margin: 18px 0 0; padding: 2px 2px 6px; }
.hm-thumbs:empty { display: none; }
.hm-thumbs button { appearance: none; flex: 1 1 0; min-width: 72px; border: 2px solid #E2E8F1; border-radius: 12px; overflow: hidden; padding: 0; background: #FFFFFF; cursor: pointer; font: inherit; color: #1B2B45; display: grid; }
@media (max-width: 600px) { .hm-thumbs button { min-width: 84px; } }
.hm-thumbs button[aria-current="true"] { border-color: #1B2B45; }
.hm-thumbs .tv { display: block; aspect-ratio: 3 / 2; overflow: hidden; position: relative; background: #EEF1F6; }
.hm-thumbs .clone { position: absolute; inset: 0 0 auto auto; width: 1000px; height: 667px; transform: scale(var(--s, .088)); transform-origin: top right; opacity: 1; visibility: visible; transition: none; pointer-events: none; }
.hm-thumbs .tl { display: block; font-size: .6875rem; padding: 2px 4px 3px; text-align: center; border-top: 1px solid #E2E8F1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-thumbs button[aria-current="true"] .tl { background: #1B2B45; color: #FFFFFF; border-top-color: #1B2B45; }
.hm-thumbs .bar { display: block; height: 2px; background: #E2E8F1; }
.hm-thumbs .bar i { display: block; height: 100%; width: 0; background: var(--cta); }
.hm-thumbs button[aria-current="true"] .bar i { animation: hm-fill var(--dwell, 5s) linear both; }
.is-paused .hm-thumbs button[aria-current="true"] .bar i { animation-play-state: paused; }
.no-auto .hm-thumbs .bar { display: none; }
@keyframes hm-fill { from { width: 0; } to { width: 100%; } }

/* audience cards */
.hm-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .hm-who { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; } }
.hm-card { --b1: #EFEBFF; --b2: #DDD5FF; --m: #7A69DE; border-radius: 20px; overflow: hidden; background: #FFFFFF; color: #1B2B45; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 1px 2px rgba(27, 43, 69, .05), 0 22px 40px -30px rgba(27, 43, 69, .3); transition: transform .25s ease, box-shadow .25s ease; }
.hm-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(27, 43, 69, .06), 0 30px 50px -28px rgba(27, 43, 69, .5); }
.hm-card--butter { --b1: #FFF7DB; --b2: #FFEAAE; --m: #C5952A; }
.hm-card--mint { --b1: #E7F7EE; --b2: #CBEEDB; --m: #3F9C70; }
.hm-card__art { padding: 28px 24px 14px; display: grid; place-items: center; background: #FFFFFF; }
.hm-card__art svg { width: 100%; max-width: 250px; height: auto; }
.hm-line path, .hm-line rect, .hm-line circle { fill: none; stroke: var(--m); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hm-line .fill { fill: color-mix(in srgb, var(--m) 16%, transparent); stroke: none; }
.hm-card__band { position: relative; padding: 24px 24px 28px; text-align: center; display: grid; gap: 6px; align-content: start; background: linear-gradient(150deg, var(--b1), var(--b2)); }
.hm-card__band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .55), transparent 55%); pointer-events: none; }
.hm-card__band h3 { position: relative; margin: 0; font-weight: 700; font-size: 1.5rem; line-height: 1.5; }
.hm-card__band p { position: relative; margin: 0; font-size: .9375rem; line-height: 1.85; color: #46526A; }
.hm-card__tag { position: relative; justify-self: center; margin-bottom: 4px; font-size: .75rem; font-weight: 600; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .75); }

/* features */
.hm-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 900px) { .hm-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hm-feats { grid-template-columns: minmax(0, 1fr); } }
.hm-feat { display: grid; gap: 10px; align-content: start; }
.hm-feat__art { border-radius: 20px; background: var(--t); aspect-ratio: 2 / 1; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.hm-feat__art svg { width: 100%; height: 100%; display: block; }
.hm-feat__art text { font-family: var(--font); }
.hm-feat:hover .hm-feat__art { transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(27, 43, 69, .45); }
.hm-feat h3 { margin: 8px 0 0; font-size: 1.2rem; font-weight: 800; }
.hm-feat p { margin: 0; color: var(--muted); line-height: 1.9; }
@media (prefers-reduced-motion: reduce) {
  .hm-arrow__trail, .hm-thumbs button[aria-current="true"] .bar i { animation: none; }
  .hm-slide, .hm-card, .hm-feat__art { transition: none; }
  .hm-card:hover, .hm-feat:hover .hm-feat__art { transform: none; }
}
