/* Asort Guide - home page styles. Hand-written, mobile-first, no framework. Palette from docs/design-spec.md. */

:root {
  --c-primary: #5B1A3A;
  --c-primary-600: #7A2650;
  --c-accent: #F2A20C;
  --c-accent-700: #C77F00;
  --c-rose: #E8506E;
  --c-rose-tint: #FDE3E8;
  --c-bg: #FFFAF4;
  --c-surface: #FFFFFF;
  --c-tint: #FBEFE3;
  --c-text: #1F1722;
  --c-muted: #6B5F6E;
  --c-border: #EADDD0;
  --c-border-strong: #D3C0AE;
  --c-focus: #1E5EFF;
  --c-success: #1F7A4D;
  --c-error: #B3261E;
  --c-deep: #2A0F1E;

  --f-head: "Fraunces", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(31,23,34,.06), 0 2px 8px rgba(31,23,34,.05);
  --sh-2: 0 6px 24px rgba(91,26,58,.14);
  --sh-3: 0 12px 40px rgba(91,26,58,.18);

  --gutter: 16px;
  --gap: 16px;
  --header-h: 60px;
  --section-pad: 40px;
  --ease: 180ms ease-out;
}
@media (min-width: 768px)  { :root { --gutter: 24px; --gap: 24px; --header-h: 64px; --section-pad: 48px; } }
@media (min-width: 1024px) { :root { --header-h: 72px; --section-pad: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-600); }
h1, h2, h3 { font-family: var(--f-head); margin: 0; color: var(--c-text); }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.topbar :focus-visible, .section--dark :focus-visible, .site-footer :focus-visible, .news :focus-visible { outline-color: #fff; }
main:focus { outline: none; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--c-accent); color: var(--c-text);
  padding: 12px 20px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.overline { font: 600 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); margin: 0 0 var(--s-2); }
.overline--light { color: var(--c-accent); }
.meta { font: 500 13px/1.4 var(--f-body); color: var(--c-muted); margin: 0; }
.section__title { font-size: 24px; line-height: 1.2; font-weight: 700; }
.section__title::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--c-accent); margin-top: 10px; }
.section__title--sm::after { display: none; }
.section__sub { color: var(--c-muted); margin: var(--s-2) 0 0; max-width: 62ch; }
@media (min-width: 768px) { .section__title { font-size: 34px; } }

/* ---------- Buttons, links, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px;
  border: 2px solid transparent; border-radius: var(--r-pill); font: 600 15px/1 var(--f-body); text-decoration: none;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease); white-space: nowrap;
}
.btn--lg { height: 48px; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-accent); color: var(--c-text); }
.btn--primary:hover { background: var(--c-accent-700); color: var(--c-text); transform: translateY(-1px); box-shadow: var(--sh-1); }
.btn--primary:active { transform: translateY(0); }
.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--on-dark { background: #fff; color: var(--c-primary); }
.btn--on-dark:hover { background: var(--c-accent); color: var(--c-text); }

.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-primary); text-decoration: none; white-space: nowrap; min-height: 44px; }
.arrow-link .icon { width: 18px; height: 18px; transition: transform var(--ease); }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.arrow-link:hover .icon { transform: translateX(4px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--c-text); text-decoration: none; transition: background var(--ease);
}
.icon-btn:hover { background: var(--c-tint); color: var(--c-primary); }
.icon-btn--dark { color: #EFE3E8; }
.icon-btn--dark:hover { background: rgba(255,255,255,.12); color: var(--c-accent); }

.chips { display: flex; gap: 10px; margin: var(--s-4) 0 var(--s-5); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
.chips::-webkit-scrollbar { display: none; }
@media (max-width: 767px) {
  .chips:not(.chips--wrap) { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
}
@media (min-width: 768px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--c-tint); border: 1px solid var(--c-border-strong); color: var(--c-text);
  font: 500 14px/1 var(--f-body); text-decoration: none; white-space: nowrap; scroll-snap-align: start;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
@media (min-width: 768px) and (pointer: fine) { .chip { min-height: 36px; } }
.chip:hover, .chip:focus-visible { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.chip:active { background: var(--c-primary-600); }
.chip--hash { background: #fff; font-size: 15px; min-height: 44px; }
.chip--hash span { color: var(--c-rose); font-weight: 700; margin-right: 1px; }
.chip--hash:hover span { color: var(--c-accent); }

/* ---------- Top utility bar + alert ---------- */
.topbar { background: var(--c-primary); color: #fff; font: 500 13px/1.4 var(--f-body); }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; color: #fff; }
.topbar__inner { display: flex; align-items: center; justify-content: center; min-height: 36px; gap: 24px; }
.topbar__msg { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; padding-block: 8px; }
.topbar__msg a { display: inline-flex; align-items: center; gap: 6px; }
.topbar__links { display: none; align-items: center; gap: 20px; }
.topbar__links .icon-link { display: inline-grid; place-items: center; width: 28px; height: 28px; }
@media (min-width: 768px) {
  .topbar__inner { justify-content: space-between; }
  .topbar__msg { text-align: left; }
  .topbar__links { display: flex; }
}
.alertbar { background: var(--c-rose-tint); color: var(--c-text); font-size: 14px; border-bottom: 1px solid var(--c-border); }
.alertbar[hidden] { display: none; }
.alertbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.alertbar p { margin: 0; padding-block: 8px; }
.alertbar a { font-weight: 600; }
.alertbar__close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; }
.alertbar__close:hover { background: rgba(31,23,34,.08); }
html:not(.js) .alertbar__close { display: none; }

/* ---------- Sticky header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-surface); border-bottom: 1px solid var(--c-border); transition: box-shadow var(--ease); }
.site-header.is-stuck { box-shadow: var(--sh-1); }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; min-height: var(--header-h); transition: min-height var(--ease); }
@media (min-width: 1024px) { .site-header.is-stuck .header__inner { min-height: 64px; } }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { width: 140px; height: 36px; }
@media (max-width: 479px) { .logo img { width: 116px; height: auto; } .header__inner { min-height: 56px; } }
.nav-toggle { margin-left: -10px; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.btn--shop { height: 40px; padding: 0 18px; }
.shop-short { display: none; }
@media (max-width: 479px) { .shop-long { display: none; } .shop-short { display: inline; } .btn--shop { padding: 0 14px; } .btn--shop .icon { display: none; } }

.search { position: relative; order: 5; flex: 1 0 100%; display: none; padding: 0 0 12px; }
.search.is-open { display: block; }
.search input {
  width: 100%; height: 44px; padding: 0 52px 0 20px; border: 1px solid var(--c-border-strong); border-radius: var(--r-pill);
  background: #fff; color: var(--c-text); font: 400 15px var(--f-body); -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--c-muted); }
.search input:focus { border-color: var(--c-primary); outline: 3px solid var(--c-focus); outline-offset: 2px; }
.search__btn { position: absolute; right: 4px; top: 0; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; color: var(--c-primary); display: grid; place-items: center; }
.search__btn:hover { background: var(--c-tint); }
@media (min-width: 1024px) {
  .nav-toggle, .search-toggle { display: none; }
  .search { display: block; order: 0; flex: 0 1 320px; margin-left: 32px; padding: 0; }
}
@media (min-width: 1240px) { .search { flex-basis: 420px; } }

/* ---------- Primary nav + mega menu (desktop) ---------- */
.primary-nav { display: none; position: relative; z-index: 40; background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
@media (min-width: 1024px) { .primary-nav { display: block; } }
.nav__inner { position: relative; }
.nav-list { display: flex; align-items: stretch; }
.nav-trigger {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 16px; border: 0; background: none;
  font: 600 15px/1 var(--f-body); color: var(--c-text); transition: color var(--ease);
}
.nav-trigger .icon { transition: transform var(--ease); }
.nav-trigger::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--c-primary); }
.nav-trigger:hover::after, .nav-trigger[aria-expanded="true"]::after, .nav-trigger:focus-visible::after { transform: scaleX(1); }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--c-surface); padding: var(--s-6);
  border: 1px solid var(--c-border); border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: var(--sh-2);
}
.mega:not([hidden]) { animation: mega-in 160ms ease-out; }
@keyframes mega-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html:not(.js) .mega[hidden] { display: none; }
html:not(.js) .nav-item:hover > .mega[hidden], html:not(.js) .nav-item:focus-within > .mega[hidden] { display: block; }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.mega__grid--4 { grid-template-columns: repeat(3, 1fr) 1.2fr; }
.mega__heading { font: 600 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: var(--s-3); }
.mega__col li a { display: block; padding: 6px 0; font-size: 15px; color: var(--c-text); text-decoration: none; }
.mega__col li a:hover { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.mega__feature, .mega__teaser { display: block; text-decoration: none; color: var(--c-text); }
.mega__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--s-3); }
.mega__feature-title { display: block; font: 600 18px/1.3 var(--f-head); }
.mega__feature:hover .mega__feature-title { color: var(--c-primary-600); text-decoration: underline; text-underline-offset: 3px; }
.mega__teaser { background: var(--c-tint); border-radius: var(--r-md); padding: var(--s-5); }
.mega__teaser-text { display: block; color: var(--c-muted); font-size: 14px; margin-top: 6px; }
.mega__all { margin: var(--s-5) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--c-border); }

/* ---------- Mobile drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(31,23,34,.5); }
.drawer-overlay[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; width: 88vw; max-width: 380px; background: var(--c-surface);
  display: flex; flex-direction: column; box-shadow: var(--sh-3); transform: translateX(-100%); visibility: hidden;
  transition: transform 250ms ease-out, visibility 0s linear 250ms;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 250ms ease-out; }
@media (min-width: 1024px) { .drawer, .drawer-overlay { display: none !important; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--c-border); }
.drawer__list { flex: 1; overflow-y: auto; }
.drawer__list > li { border-bottom: 1px solid var(--c-border); }
.drawer__trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px; border: 0; background: none; font: 600 16px var(--f-body); text-align: left; }
.drawer__trigger .icon { transition: transform var(--ease); }
.drawer__trigger[aria-expanded="true"] { color: var(--c-primary); background: var(--c-tint); }
.drawer__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer__sub { padding: 4px 16px 12px 28px; background: var(--c-tint); }
.drawer__sub a { display: block; padding: 12px 0; min-height: 44px; color: var(--c-text); text-decoration: none; font-size: 15px; }
.drawer__sub a:hover { color: var(--c-primary); text-decoration: underline; }
.drawer__sub .drawer__all { font-weight: 600; color: var(--c-primary); }
.drawer__foot { padding: 16px; border-top: 1px solid var(--c-border); display: grid; gap: 12px; }
.drawer__utility { display: grid; }
.drawer__utility a { display: block; padding: 10px 0; color: var(--c-text); font-size: 14px; text-decoration: none; }
.drawer__utility a:hover { text-decoration: underline; }
.drawer__social { display: flex; gap: 4px; margin: 0; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section--surface { background: var(--c-surface); }
.section--tint { background: var(--c-tint); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.section__head:has(+ .chips) { margin-bottom: 0; }
.section__head .section__sub { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s-5); }
.hero__box { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--c-tint); }
.hero__media img { width: 100%; height: 360px; object-fit: cover; object-position: 70% 30%; }
.hero__panel { background: #fff; padding: 20px; }
.hero__title { font-size: 28px; line-height: 1.12; font-weight: 700; margin-bottom: var(--s-3); }
.hero__dek { color: var(--c-text); margin-bottom: var(--s-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s-4); }
.hero__trust { margin: 0; font-size: 13px; font-weight: 500; color: var(--c-muted); }
@media (min-width: 768px) {
  .hero { padding-top: var(--s-6); }
  .hero__box { display: flex; align-items: flex-end; min-height: 440px; }
  .hero__media { position: absolute; inset: 0; }
  .hero__media img { height: 100%; object-position: 70% 50%; }
  .hero__panel { position: relative; width: min(100%, 460px); margin: 40px; padding: 32px; border-radius: var(--r-md); background: rgba(255,255,255,.94); box-shadow: var(--sh-2); }
  .hero__title { font-size: 32px; }
}
@media (min-width: 1024px) { .hero__box { min-height: 520px; } .hero__panel { width: 520px; } .hero__title { font-size: 36px; } }

/* ---------- Cards ---------- */
.cards { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; -webkit-overflow-scrolling: touch; }
.cards::-webkit-scrollbar { display: none; }
.cards > * { flex: 0 0 82vw; scroll-snap-align: start; }
@media (min-width: 480px) { .cards > * { flex-basis: 78vw; } }
@media (min-width: 768px) {
  .cards { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; margin-inline: 0; padding: 0; }
  .cards > * { flex: initial; }
}
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card { position: relative; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1); transition: transform var(--ease), box-shadow var(--ease); }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--sh-2); }
.card:active { transform: translateY(-1px); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease-out; }
.card:hover .card__media img { transform: scale(1.05); }
.tag-new { position: absolute; top: 12px; left: 12px; background: var(--c-accent); color: var(--c-text); font: 700 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--r-pill); }
.card__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body .overline { margin: 0; }
.card__title { font-size: 16px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__link { color: var(--c-text); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 3px solid var(--c-focus); outline-offset: -3px; border-radius: var(--r-md); }
.card:hover .card__link { color: var(--c-primary-600); text-decoration: underline; text-underline-offset: 3px; }
.card__excerpt { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 4px; }
@media (min-width: 768px) {
  .card__body { padding: 16px; }
  .card__title { font-size: 18px; }
  .card--story .card__title { font-size: 20px; }
}

/* ---------- Join steps ---------- */
.band { border-radius: var(--r-lg); padding: 32px 20px; }
.band--tint { background: var(--c-tint); }
@media (min-width: 768px) { .band { padding: 48px 32px; } }
.band__head { margin-bottom: var(--s-6); max-width: 62ch; }
.steps { display: grid; gap: var(--s-5); counter-reset: none; }
.step { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: var(--s-4); align-items: start; }
.step__icon { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: var(--sh-1); }
.step__icon img { width: 100%; height: 100%; object-fit: cover; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 35px; top: 76px; bottom: -20px; border-left: 2px dotted var(--c-border-strong); }
.step__num { display: inline-block; background: var(--c-primary); color: #fff; font: 600 12px/1 var(--f-body); letter-spacing: .06em; padding: 5px 10px; border-radius: var(--r-pill); margin-bottom: 8px; }
.step__title { font-size: 18px; line-height: 1.3; font-weight: 600; margin-bottom: 4px; }
.step__text p { margin: 0; color: var(--c-text); font-size: 15px; }
.band__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); margin-top: var(--s-6); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
  .step { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .step::before { display: none; }
  .step__icon { width: 96px; height: 96px; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:not(:last-child)::before { display: block; left: calc(50% + 62px); right: auto; top: 47px; bottom: auto; width: calc(100% + var(--s-5) - 124px); height: 0; border-left: 0; border-top: 2px dotted var(--c-border-strong); }
}

/* ---------- Brands ---------- */
.section--brands { background: var(--c-surface); border-block: 1px solid var(--c-border); }
.brands-scroll { margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; overflow-x: auto; scrollbar-width: none; }
.brands-scroll::-webkit-scrollbar { display: none; }
.brands { display: flex; gap: var(--s-5) var(--s-4); }
.brands li { flex: 0 0 140px; }
.brand { display: block; text-decoration: none; color: var(--c-text); text-align: center; }
.brand__media { display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--c-tint); transition: transform var(--ease); }
.brand__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease-out; }
.brand__name { display: block; margin-top: 10px; font: 600 16px/1.3 var(--f-head); }
.brand__tag { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--c-muted); }
.brand:hover .brand__media { transform: translateY(-2px); }
.brand:hover .brand__media img { transform: scale(1.04); }
.brand:hover .brand__name { text-decoration: underline; text-underline-offset: 3px; color: var(--c-primary); }
@media (min-width: 768px) {
  .brands-scroll { margin-inline: 0; padding-inline: 0; overflow: visible; }
  .brands { flex-wrap: wrap; justify-content: center; }
  .brands li { flex: 0 0 calc((100% - 3 * var(--s-4)) / 4); }
}
@media (min-width: 1240px) { .brands { flex-wrap: nowrap; } .brands li { flex: 1 1 0; min-width: 0; } }

/* ---------- Videos ---------- */
.section--dark { background: var(--c-deep); color: #fff; }
.section--dark .section__title { color: #fff; }
.section--dark .arrow-link { color: #fff; }
.videos { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--gutter); margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; }
.videos::-webkit-scrollbar { display: none; }
.videos > * { flex: 0 0 80vw; scroll-snap-align: start; }
@media (min-width: 480px) { .videos > * { flex-basis: 72vw; } }
@media (min-width: 768px) { .videos { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } .videos > * { flex: initial; } }
@media (min-width: 1024px) { .videos { grid-template-columns: repeat(4, 1fr); } }
.card--video { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.card--video:hover, .card--video:focus-within { transform: none; box-shadow: none; }
.video { display: block; color: #fff; text-decoration: none; }
.video__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #3b1a2d; }
.video__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease-out; }
.video:hover .video__media img { transform: scale(1.05); }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.play::before { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.duration { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.78); color: #fff; font: 600 12px/1 var(--f-body); padding: 5px 8px; border-radius: var(--r-pill); }
.video__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 12px; font: 600 16px/1.4 var(--f-body); }
.video:hover .video__title { text-decoration: underline; text-underline-offset: 3px; }
.video__meta { display: block; margin-top: 4px; font-size: 13px; color: #D9C6D0; }

/* ---------- Trending ---------- */
.section--trending { padding-block: 40px; }
.section--trending .section__title { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.icon--flame { width: 26px; height: 26px; color: var(--c-rose); }
.section--trending .chips { margin-bottom: 0; }

/* ---------- About + FAQ ---------- */
.prose-wrap { max-width: 880px; }
.prose p { font-size: 17px; max-width: 70ch; }
.prose { margin-top: var(--s-5); }
.faq { margin-top: var(--s-5); border-top: 1px solid var(--c-border); }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q { font-size: 18px; line-height: 1.35; font-weight: 600; }
.faq__btn { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); width: 100%; min-height: 56px; padding: 14px 0; border: 0; background: none; text-align: left; font: 600 18px/1.35 var(--f-head); color: var(--c-text); }
.faq__btn:hover { color: var(--c-primary); }
.faq__btn .icon { transition: transform var(--ease); color: var(--c-primary); }
.faq__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq__a { padding: 0 0 var(--s-4); }
.faq__a[hidden] { display: none; }
.faq__a p { margin: 0; color: var(--c-text); max-width: 70ch; }

/* ---------- Newsletter ---------- */
.section--news { padding-top: 0; }
.news { display: grid; gap: var(--s-6); background: var(--c-primary); color: #fff; border-radius: var(--r-lg); padding: 32px 20px; margin-top: var(--s-6); }
.news .section__title { color: #fff; }
.news__text { margin: var(--s-3) 0 var(--s-5); color: #F3E7EE; }
.news__form { display: flex; flex-direction: column; gap: 12px; }
.news__input { width: 100%; height: 48px; padding: 0 22px; border: 2px solid transparent; border-radius: var(--r-pill); background: #fff; color: var(--c-text); font: 400 16px var(--f-body); -webkit-appearance: none; appearance: none; }
.news__input::placeholder { color: var(--c-muted); }
.news__input:focus { outline: 3px solid #fff; outline-offset: 2px; }
.news__input[aria-invalid="true"] { border-color: var(--c-error); }
.news__status { display: inline-block; margin: 12px 0 0; padding: 8px 14px; border-radius: var(--r-sm); background: #fff; font-size: 14px; font-weight: 600; }
.news__status:empty { display: none; }
.news__status.is-ok { color: var(--c-success); }
.news__status.is-ok::before { content: "\2713\00a0"; }
.news__status.is-error { color: var(--c-error); }
.news__status.is-error::before { content: "!\00a0"; font-weight: 700; }
.news__micro { margin: 12px 0 0; font-size: 13px; color: #E6D3DD; }
.news__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: var(--s-5) 0 0; padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.2); }
.news__cta span { font-weight: 600; }
.news__media { position: relative; display: none; }
.news__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.news__badge { position: absolute; left: 16px; bottom: 16px; margin: 0; background: #fff; color: var(--c-text); font: 600 14px/1.2 var(--f-body); padding: 10px 16px; border-radius: var(--r-md); box-shadow: var(--sh-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 768px) {
  .news { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 48px; gap: var(--s-7); }
  .news__media { display: block; }
  .news__form { flex-direction: row; }
  .news__input { flex: 1; min-width: 0; }
}

/* ---------- 404 ---------- */
.notfound .chips { margin-block: var(--s-5); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-deep); color: #EFE3E8; padding-block: 40px 24px; font-size: 15px; }
.site-footer a { color: #EFE3E8; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
.footer__brand { grid-column: 1 / -1; max-width: 360px; }
.footer__brand p { margin: var(--s-3) 0; color: #D9C6D0; }
.footer__social { display: flex; gap: 4px; margin-left: -10px; }
.footer__title { font: 600 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); margin: 0 0 var(--s-3); }
.footer__col li a { display: inline-block; padding: 6px 0; }
.footer__legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; line-height: 1.6; color: #D9C6D0; }
.footer__legal p { max-width: 90ch; }
.footer__fraud { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }
.footer__bottom p { margin: 0; }
.site-footer .btn--on-dark { color: var(--c-primary); }
.site-footer .btn--on-dark:hover { color: var(--c-text); text-decoration: none; }
@media (min-width: 768px) {
  .site-footer { padding-block: 64px 32px; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr repeat(4, 1fr); } .footer__brand { grid-column: auto; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .card:focus-within, .btn--primary:hover, .brand:hover .brand__media { transform: none; }
  .card:hover .card__media img, .brand:hover .brand__media img, .video:hover .video__media img { transform: none; }
}

/* ====================================================================
   Stage 2: article, blog list, category (root-slug URLs)
   ==================================================================== */
html[lang="hi"] { --f-body: "Noto Sans Devanagari", "Inter", system-ui, sans-serif; --f-head: "Noto Sans Devanagari", "Fraunces", Georgia, serif; }
[lang="hi"] { font-family: var(--f-body); }
[lang="hi"] :is(h1, h2, h3) { font-family: var(--f-head); line-height: 1.4; }

.crumbs { padding: 16px 0 8px; font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { color: var(--c-muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--c-border-strong); }
.crumbs a { color: var(--c-primary); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-hero { background: var(--c-tint); padding-block: 16px 40px; border-bottom: 1px solid var(--c-border); }
.page-hero__title { font-size: 32px; line-height: 1.15; font-weight: 700; margin-bottom: 12px; }
.page-hero__dek { max-width: 62ch; font-size: 18px; color: var(--c-text); margin: 0; }
@media (min-width: 768px) { .page-hero__title { font-size: 44px; } .page-hero { padding-block: 24px 56px; } }

.chip--on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.post-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.empty { padding: 32px; background: var(--c-tint); border-radius: var(--r-md); }

.pager ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: var(--s-6); }
.pager a, .pager__cur { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); text-decoration: none; font-weight: 600; background: #fff; }
.pager a:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pager__cur { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pager__gap { color: var(--c-muted); }

.all-list { columns: 1; column-gap: 32px; }
@media (min-width: 700px) { .all-list { columns: 2; } }
@media (min-width: 1024px) { .all-list { columns: 3; } }
.all-list li { break-inside: avoid; padding: 6px 0; font-size: 15px; line-height: 1.4; }
.all-list a { text-underline-offset: 3px; }

/* article */
.article .container { max-width: 1240px; }
.post-head { max-width: 880px; margin: 8px auto 32px; text-align: left; }
.pill { display: inline-block; padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-tint); border: 1px solid var(--c-border-strong); text-decoration: none; }
.post-head__title { font-size: 28px; line-height: 1.2; font-weight: 700; margin-bottom: 12px; overflow-wrap: anywhere; }
.post-head__dek { font-size: 18px; line-height: 1.55; margin-bottom: 16px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--c-muted); margin-bottom: 16px; }
.byline strong { color: var(--c-text); }
@media (min-width: 768px) { .post-head__title { font-size: 44px; } .post-head__dek { font-size: 20px; } }
.post-hero { margin: 0 auto 32px; max-width: 1100px; }
.post-hero img { width: 100%; border-radius: var(--r-md); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.share .overline { margin: 0; }
.share__row { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--c-tint); border: 1px solid var(--c-border-strong); color: var(--c-text); font: 600 14px/1 var(--f-body); text-decoration: none; }
.share__btn:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.post-share-bottom { margin: 32px 0; padding-top: 16px; border-top: 1px solid var(--c-border); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 1064px; margin-inline: auto; }
@media (min-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 720px) 280px; gap: 64px; justify-content: center; max-width: none; }
  .post-layout--single { grid-template-columns: minmax(0, 720px); }
}
.post-main { min-width: 0; }
.toc ol { margin: 0; padding: 0; }
.toc--rail { display: none; }
@media (min-width: 1100px) {
  .toc--mobile { display: none; }
  .toc--rail { display: block; position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow: auto; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 20px; }
}
.toc--mobile { border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; margin-bottom: 24px; }
.toc--mobile summary { min-height: 44px; padding: 10px 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; }
.toc--mobile ol { padding: 0 16px 12px; }
.toc a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--c-border); font: 600 14px/1.35 var(--f-body); color: var(--c-text); text-decoration: none; overflow-wrap: anywhere; }
.toc a:hover { color: var(--c-primary); }
.toc a.is-active { border-left: 3px solid var(--c-accent); color: var(--c-primary); }
.toc .toc__l3 a { margin-left: 14px; font-weight: 500; font-size: 13px; }

.prose--article { margin-top: 0; font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.prose--article p { max-width: none; font-size: 17px; margin-bottom: 1.25em; }
.prose--article p.lead { font-size: 19px; line-height: 1.65; }
.prose--article h2 { font-size: 24px; line-height: 1.25; margin: 2.2em 0 .6em; scroll-margin-top: 130px; }
.prose--article h2::before { content: ""; display: block; width: 48px; height: 4px; background: var(--c-accent); border-radius: 2px; margin-bottom: 12px; }
.prose--article h3 { font-size: 19px; line-height: 1.3; color: var(--c-primary); margin: 1.8em 0 .5em; scroll-margin-top: 130px; }
@media (min-width: 768px) { .prose--article h2 { font-size: 30px; } .prose--article h3 { font-size: 22px; } }
.prose--article a { text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose--article ul, .prose--article ol { margin: 0 0 1.25em; }
.prose--article ul li { position: relative; padding-left: 28px; margin-bottom: .5em; }
.prose--article ul li::before { content: ""; position: absolute; left: 6px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.prose--article ol { counter-reset: item; }
.prose--article ol li { position: relative; padding-left: 38px; margin-bottom: .6em; counter-increment: item; }
.prose--article ol li::before { content: counter(item); position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 50%; background: var(--c-primary); color: #fff; font: 700 13px/26px var(--f-body); text-align: center; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--c-border); border-radius: var(--r-sm); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.table-wrap th { background: var(--c-primary); color: #fff; text-align: left; font-weight: 600; padding: 12px 16px; }
.table-wrap td { padding: 12px 16px; border-top: 1px solid var(--c-border); vertical-align: top; }
.table-wrap tbody tr:nth-child(even) td { background: rgba(251,239,227,.5); }
.table-wrap td:first-child { font-weight: 600; }

.post-faq { margin-top: 48px; }
.post-faq__title { font-size: 24px; }
.cta-box { margin: 40px 0; background: var(--c-primary); color: #fff; border-radius: var(--r-lg); padding: 28px; }
.cta-box .cta-box__title { font: 700 24px/1.25 var(--f-head); color: #fff; margin: 0 0 8px; }
.cta-box p { color: #F3E6EC; }
.cta-box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 16px 0 0; }
.cta-box__link { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.prose--article .cta-box { font-size: 16px; }
.help-box { margin: 32px 0; padding: 24px; border: 1px solid var(--c-border-strong); border-left: 6px solid var(--c-primary); border-radius: var(--r-md); background: #fff; }
.help-box__title { font-size: 20px; margin-bottom: 8px; }
.help-box ul { margin: 0 0 12px; }
.help-box li { padding: 3px 0; }
.author-box { background: var(--c-tint); border-radius: var(--r-lg); padding: 24px; }
.author-box__name { font-size: 20px; margin-bottom: 8px; }
.author-box p:last-child { margin-bottom: 0; font-size: 15px; }
.related { margin-top: 48px; }

.footer__company { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; line-height: 1.7; color: #D9C6D0; }
.footer__company .footer__title { margin-bottom: 8px; }
.footer__company p { margin: 0; max-width: 90ch; }
.footer__company strong { color: #fff; }


/* Wide blog layout: max 1920px, 60px side padding on desktop, 15px below 993px */
body.is-article .container, body.is-blog .container { max-width: 1920px; padding-inline: 15px; }
@media (min-width: 993px) { body.is-article .container, body.is-blog .container { padding-inline: 60px; } }
body.is-article .post-head { max-width: none; margin-inline: 0; }
body.is-article .post-hero { max-width: none; }
body.is-article .post-layout { max-width: none; }
@media (min-width: 1100px) {
  body.is-article .post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; justify-content: stretch; }
  body.is-article .post-layout--single { grid-template-columns: minmax(0, 1fr); }
}
