/* ==========================================================================
   ServaVid
   Yellow, ink and paper. Minimal, a little brutal, never loud.
   ========================================================================== */

:root {
  --y: #fffc00;
  --y-soft: #fffd5c;
  --y-deep: #f2ee00;
  --ink: #0b0b0b;
  --ink-2: #1a1a10;
  --paper: #fffef4;
  --paper-2: #f7f5e4;
  --muted: #56530f;
  --muted-2: #77731c;
  --white: #ffffff;
  --danger: #c92a1d;
  --line: rgba(11, 11, 11, 0.14);
  --line-strong: rgba(11, 11, 11, 0.24);
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Space Grotesk", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --font-hi: "Noto Sans Devanagari", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --font-body: var(--font-ar);
  --radius: 22px;
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[lang="en"] {
  --font-body: var(--font-en);
}

html[lang="hi"] {
  --font-body: var(--font-hi);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--y);
  background-image:
    radial-gradient(circle at 12% -10%, #ffff7a 0, transparent 42%),
    radial-gradient(circle at 92% 108%, #f6f200 0, transparent 48%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film grain — fixed, barely there. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--ink);
  color: var(--y);
}

img,
svg,
video {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--y);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.skip:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-foot :focus-visible,
.feature-ink :focus-visible {
  outline-color: var(--y);
}

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 0, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(11, 11, 11, 0.18);
  transition: transform 0.25s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) translateY(-1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text b {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.34em;
  margin-top: 3px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-start: 10px;
}

.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(11, 11, 11, 0.78);
  padding: 6px 0;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
}

.lang {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.lang:hover {
  background: var(--ink);
  color: var(--y);
}

.langs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.lang-link {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
  color: rgba(11, 11, 11, 0.62);
  transition: background 0.2s, color 0.2s;
}

.lang-link:hover {
  background: rgba(11, 11, 11, 0.08);
  color: var(--ink);
}

.lang-link.is-active {
  background: var(--ink);
  color: var(--y);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background 0.18s,
    color 0.18s;
}

.btn-sm {
  padding: 9px 17px;
  font-size: 13px;
}

.btn-ink {
  background: var(--ink);
  color: var(--y);
  box-shadow: 4px 4px 0 rgba(11, 11, 11, 0.18);
}

.btn-ink:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(11, 11, 11, 0.24);
}

.btn-ink:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 rgba(11, 11, 11, 0.2);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn.is-loading svg {
  display: none;
}

.btn.is-loading::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--y);
  border-bottom: 1px solid var(--ink);
  height: 38px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding-inline: 13px;
  direction: ltr;
  animation: ticker 38s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0.92;
}

.ticker-sep {
  font-size: 9px;
  color: var(--y-deep);
  opacity: 0.6;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 72px 0 42px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-ghost {
  position: absolute;
  inset-inline-start: -190px;
  bottom: -250px;
  opacity: 0.075;
  pointer-events: none;
  animation: float 9s ease-in-out infinite alternate;
}

.hero-ghost svg {
  width: 760px;
  height: 760px;
}

@keyframes float {
  to {
    transform: translateY(-18px) rotate(2deg);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  font-size: 12.5px;
  font-weight: 500;
  color: #3c3a0a;
  animation: rise 0.7s var(--ease) both;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 0 rgba(11, 11, 11, 0.4);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(11, 11, 11, 0.32);
  }
  55% {
    box-shadow: 0 0 0 7px rgba(11, 11, 11, 0);
  }
}

.hero h1 {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(2.45rem, 6.5vw, 5.15rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
  animation: rise 0.8s var(--ease) 0.06s both;
}

html[lang="en"] .hero h1 {
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.mark {
  display: inline-block;
  margin-top: 0.08em;
  padding: 0.06em 0.18em 0.3em;
  border-radius: 0.14em;
  background: var(--ink);
  color: var(--y);
  transform: rotate(-1.1deg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lede {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  font-weight: 400;
  line-height: 1.85;
  color: #3f3d0c;
  text-wrap: pretty;
  animation: rise 0.8s var(--ease) 0.12s both;
}

.hero-tool {
  position: relative;
  width: min(730px, 100%);
  margin-top: 38px;
  animation: rise 0.9s var(--ease) 0.18s both;
}

.sticker {
  position: absolute;
  top: -17px;
  inset-inline-start: -16px;
  z-index: 3;
  transform: rotate(-6deg);
  background: var(--ink);
  color: var(--y);
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.search:focus-within {
  box-shadow: 11px 11px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.search-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-inline-start: 6px;
  color: var(--ink);
  opacity: 0.5;
  flex-shrink: 0;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}

.search input::placeholder {
  color: #7d7916;
  opacity: 1;
}

.paste {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f1db;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.paste:hover {
  background: var(--y);
  transform: scale(1.05);
}

.search-submit {
  flex-shrink: 0;
  height: 52px;
  padding-inline: 24px;
  border-radius: 17px;
  font-size: 14.5px;
  box-shadow: none;
  border-color: var(--ink);
}

.search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 rgba(11, 11, 11, 0.16);
}

.hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: #45430d;
}

.hints-label {
  font-weight: 600;
  color: var(--ink);
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid rgba(11, 11, 11, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  font-size: 11.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.hint-try {
  cursor: pointer;
  border-style: dashed;
  border-color: rgba(11, 11, 11, 0.4);
  background: transparent;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.hint-try span {
  font-family: var(--font-en);
  letter-spacing: 0.01em;
}

.hint-try:hover {
  background: var(--ink);
  color: var(--y);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #3f3d0c;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust svg {
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Results stage
   ========================================================================== */

.stage {
  background: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 42px 0 70px;
  scroll-margin-top: 90px;
}

.stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.stage-head:empty {
  display: none;
}

.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
  background: var(--y);
  flex-shrink: 0;
}

.profile-id {
  min-width: 0;
}

.profile-id h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-id p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-id .verified {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--y);
  font-size: 9px;
}

.stage-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-inline-start: auto;
}

.stat {
  text-align: center;
  line-height: 1.15;
}

.stat b {
  display: block;
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 600;
}

.stat span {
  font-size: 10.5px;
  color: var(--muted);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ghost-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--y);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 22px 0 20px;
  padding: 5px;
  background: #f0edd8;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4a4815;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.tab .count {
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.09);
  color: var(--muted);
}

.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--y);
}

.tab[aria-selected="true"] .count {
  background: rgba(255, 252, 0, 0.18);
  color: var(--y);
}

.tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stage-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
}

.back {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.back:hover {
  background: var(--ink);
  color: var(--y);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1.5px solid rgba(11, 11, 11, 0.15);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s;
  animation: cardIn 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 11, 11, 0.35);
  box-shadow: 6px 6px 0 rgba(11, 11, 11, 0.1);
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 3 / 4;
  border: 0;
  background: #e9e6cf;
  cursor: pointer;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.035);
}

.card-badge {
  position: absolute;
  top: 9px;
  inset-inline-start: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.82);
  color: var(--y);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.3;
  backdrop-filter: blur(4px);
}

.card-badge svg {
  width: 9px;
  height: 9px;
}

.card-badge.img {
  background: rgba(255, 254, 244, 0.9);
  color: var(--ink);
}

.card-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease), background 0.2s;
}

.card-media:hover .card-play {
  transform: scale(1.08);
  background: var(--y);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 11px 11px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  color: var(--muted);
}

.card-index {
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8d8924;
}

.card-date {
  font-variant-numeric: tabular-nums;
}

.dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.dl:hover {
  background: var(--ink);
  color: var(--y);
}

.dl svg {
  width: 14px;
  height: 14px;
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* Highlight & spotlight collections */
.groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.group-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 10px;
  border: 1.5px solid rgba(11, 11, 11, 0.15);
  border-radius: 15px;
  background: var(--white);
  text-align: start;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}

.group-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 11, 11, 0.4);
  box-shadow: 5px 5px 0 rgba(11, 11, 11, 0.1);
}

.group-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--y);
  border: 1px solid var(--line);
}

.group-ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(11, 11, 11, 0.18);
}

.group-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.group-info {
  min-width: 0;
  flex: 1;
}

.group-info b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.group-info span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.group-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2efda;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}

.group-card:hover .group-arrow {
  background: var(--y);
  transform: translateX(-2px);
}

html[dir="ltr"] .group-arrow svg {
  transform: scaleX(1);
}

/* Notices */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: #fbf9e9;
}

.notice.error {
  border-color: rgba(201, 42, 29, 0.35);
  background: #fff5f2;
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--y);
  border: 1px solid var(--line-strong);
}

.notice.error .notice-icon {
  background: #ffe3de;
  border-color: rgba(201, 42, 29, 0.2);
  color: var(--danger);
}

.notice b {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.notice a {
  color: var(--ink);
  font-weight: 600;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 30px;
}

.empty svg {
  opacity: 0.25;
  margin-bottom: 10px;
}

.empty b {
  font-size: 16px;
}

.empty p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 420px;
}

/* Skeletons */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 16px;
}

.skeleton {
  border-radius: 16px;
  background: linear-gradient(100deg, #eeeada 30%, #faf8ec 50%, #eeeada 70%);
  background-size: 220% 100%;
  animation: shimmer 1.35s infinite linear;
  border: 1.5px solid rgba(11, 11, 11, 0.08);
}

.skeleton.card-sk {
  aspect-ratio: 3 / 4.62;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

/* Stage extras */
.stage-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0 24px;
}

.stage-loading b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.stage-loading span:not(.spinner) {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.spinner {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 2.5px solid rgba(11, 11, 11, 0.18);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.stage-error {
  padding-top: 4px;
}

.stage-error .kicker {
  margin-bottom: 14px;
}

.stage-fine {
  margin: 12px 0 0;
  font-family: var(--font-en);
  font-size: 11px;
  color: #8b8724;
  direction: ltr;
  text-align: start;
}

.stage-desc {
  max-width: 640px;
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.8;
  color: #45430d;
}

.stage-sub {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--muted);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--y);
}

.thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(11, 11, 11, 0.32);
  background: #efecd5;
}

body.dialog-open {
  overflow: hidden;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 86px 0;
  scroll-margin-top: 90px;
}

.section-alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 46px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #55520c;
}

.kicker span {
  display: inline-block;
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  opacity: 0.65;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.9vw, 3.1rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

html[lang="en"] .section h2 {
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head > p:not(.kicker) {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: #4a470e;
  max-width: 620px;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 7px 7px 0 rgba(11, 11, 11, 0.13);
}

.feature-wide {
  grid-column: span 2;
}

.feature-ink {
  background: var(--ink);
  color: var(--paper);
}

.feature-art {
  position: absolute;
  inset-inline-end: -58px;
  bottom: -76px;
  width: 330px;
  opacity: 0.5;
  pointer-events: none;
  transform: rotate(-8deg);
}

.feature-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--y);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.feature-ink .feature-icon {
  border-color: rgba(255, 252, 0, 0.35);
}

.feature h3 {
  margin: 0 0 7px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.feature p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #57540f;
  max-width: 46ch;
}

.feature-ink p {
  color: rgba(255, 254, 244, 0.7);
}

.wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
  margin-top: auto;
  padding-top: 22px;
  opacity: 0.85;
}

.wave i {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--y);
  animation: wave 1.3s ease-in-out infinite alternate;
}

.wave i:nth-child(2) { animation-delay: -0.1s; height: 18px; }
.wave i:nth-child(3) { animation-delay: -0.35s; height: 28px; }
.wave i:nth-child(4) { animation-delay: -0.2s; height: 12px; }
.wave i:nth-child(5) { animation-delay: -0.5s; height: 22px; }
.wave i:nth-child(6) { animation-delay: -0.15s; height: 32px; }
.wave i:nth-child(7) { animation-delay: -0.4s; height: 14px; }
.wave i:nth-child(8) { animation-delay: -0.05s; height: 24px; }
.wave i:nth-child(9) { animation-delay: -0.3s; height: 10px; }
.wave i:nth-child(10) { animation-delay: -0.55s; height: 20px; }
.wave i:nth-child(11) { animation-delay: -0.22s; height: 30px; }
.wave i:nth-child(12) { animation-delay: -0.45s; height: 16px; }

@keyframes wave {
  to {
    transform: scaleY(0.45);
    opacity: 0.55;
  }
}

.feature-strip {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 10px;
  padding: 20px 26px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 10px;
}

.strip-item + .strip-item {
  border-inline-start: 1px solid var(--line);
}

.strip-item svg {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--y);
  border: 1.5px solid var(--ink);
}

.strip-item b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.strip-item span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  inset-inline-end: -31px;
  width: 28px;
  border-top: 1.5px dashed rgba(11, 11, 11, 0.35);
}

.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 700;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(11, 11, 11, 0.42);
  letter-spacing: -0.04em;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #4c490f;
  max-width: 34ch;
}

/* Support table */
.support-wrap {
  max-width: 1180px;
}

.support {
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 7px 7px 0 rgba(11, 11, 11, 0.12);
}

.support-row {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.support-row:last-child {
  border-bottom: 0;
}

.support-head {
  background: var(--ink);
  color: rgba(255, 252, 0, 0.65);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-block: 10px;
}

.support-name {
  font-size: 13.5px;
  font-weight: 500;
}

.support code {
  font-family: var(--font-en);
  font-size: 12px;
  color: #4c490f;
  background: #f3f0d9;
  border: 1px solid rgba(11, 11, 11, 0.1);
  border-radius: 7px;
  padding: 6px 10px;
  direction: ltr;
  text-align: left;
  overflow-wrap: anywhere;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--y);
  border: 1px solid var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.support-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #4c490f;
}

.support-note svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 110px;
}

.faq-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.32rem);
  line-height: 1.12;
}

.faq-intro > p:not(.kicker) {
  margin: 16px 0 24px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #4a470e;
  max-width: 34ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
  transition: gap 0.2s;
}

.text-link:hover {
  gap: 11px;
}

.faq-list {
  border-top: 1.5px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--ink);
  color: var(--y);
  border-color: var(--ink);
  transform: rotate(180deg);
}

.faq-list summary:hover {
  color: #615d0a;
}

.faq-a {
  padding: 0 0 20px;
}

.faq-a p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: #4a470e;
  max-width: 62ch;
}

/* ==========================================================================
   SEO / guide
   ========================================================================== */

.seo {
  background: var(--y);
}

.seo-wrap {
  max-width: 900px;
}

.seo h2 {
  margin-bottom: 22px;
}

.seo h3 {
  margin: 38px 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.seo p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 2;
  color: #3f3c0b;
}

.seo strong {
  font-weight: 600;
  color: var(--ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(11, 11, 11, 0.18);
}

.tag {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid rgba(11, 11, 11, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  line-height: 1.5;
  color: #4c490f;
  transition: background 0.2s, color 0.2s;
}

.tag:hover {
  background: var(--ink);
  color: var(--y);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding: 66px 0 26px;
  overflow: hidden;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.foot-mark {
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
}

.foot-brand b {
  display: block;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--y);
}

.foot-brand span:not(.foot-mark) {
  display: block;
  font-size: 12px;
  color: rgba(255, 254, 244, 0.5);
  margin-top: 4px;
}

.foot-cols {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.foot-cols h4 {
  margin: 0 0 14px;
  font-family: var(--font-en);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 252, 0, 0.55);
}

.foot-cols a {
  display: block;
  margin-bottom: 9px;
  font-size: 12.5px;
  color: rgba(255, 254, 244, 0.78);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.foot-cols a:hover {
  color: var(--y);
  transform: translateX(-3px);
}

html[dir="ltr"] .foot-cols a:hover {
  transform: translateX(3px);
}

.foot-word {
  margin: 36px 0 30px;
  font-size: clamp(54px, 13vw, 180px);
  letter-spacing: -0.04em;
  font-weight: 700;
  line-height: 0.72;
  color: rgba(255, 252, 0, 0.035);
  -webkit-text-stroke: 1px rgba(255, 252, 0, 0.28);
  user-select: none;
  pointer-events: none;
  text-align: center;
}

.foot-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  line-height: 1.8;
  color: rgba(255, 254, 244, 0.55);
}

.foot-bottom p {
  margin: 0;
  max-width: 560px;
}

.foot-bottom .legal {
  max-width: 520px;
  color: rgba(255, 254, 244, 0.5);
}

.foot-top-link {
  color: rgba(255, 252, 0, 0.7);
  text-decoration: none;
  white-space: nowrap;
}

.foot-top-link:hover {
  color: var(--y);
}

/* ==========================================================================
   Preview dialog
   ========================================================================== */

.preview {
  width: min(880px, 92vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  overflow: visible;
}

.preview::backdrop {
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(5px);
}

.preview-inner {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.35);
  animation: pop 0.3s var(--ease);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
}

.preview-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(11, 11, 11, 0.55);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.2s;
}

.preview-close:hover {
  background: var(--ink);
  transform: rotate(90deg);
}

.preview-media {
  display: grid;
  place-items: center;
  min-height: 280px;
  max-height: 64vh;
  background: #0a0a0a;
}

.preview-media video,
.preview-media img {
  display: block;
  max-height: 64vh;
  max-width: 100%;
  object-fit: contain;
}

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  flex-wrap: wrap;
}

.preview-info b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.preview-info span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ==========================================================================
   Toast & noscript
   ========================================================================== */

.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 26px;
  z-index: 100;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin-inline: auto;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--y);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 5px 5px 0 rgba(11, 11, 11, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: none;
}

.noscript {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 120;
  padding: 12px 20px;
  background: var(--danger);
  color: #fff;
  text-align: center;
  font-size: 13px;
}

/* ==========================================================================
   Reveal (added by JS)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1320px) {
  .hero-ghost {
    opacity: 0.055;
  }
}

@media (max-width: 980px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-wide {
    grid-column: span 2;
  }

  .feature-strip {
    grid-column: span 2;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .strip-item + .strip-item {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-intro {
    position: static;
  }

  .faq-intro > p:not(.kicker) {
    max-width: 52ch;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .head-inner {
    height: 68px;
  }

  .foot-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .foot-cols {
    justify-content: space-between;
    gap: 28px;
  }

  .hero {
    padding-top: 54px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .step {
    padding-inline-start: 64px;
  }

  .step-num {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    font-size: 52px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .section {
    padding: 66px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9.4vw, 3rem);
  }

  .lede {
    font-size: 0.95rem;
  }

  .hero-tool {
    margin-top: 32px;
  }

  .search {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 10px;
  }

  .search-icon {
    margin-inline-start: 2px;
  }

  .search input {
    flex: 1 1 55%;
    font-size: 16px;
    height: 44px;
  }

  .search-submit {
    flex: 1 1 100%;
    margin-top: 6px;
    height: 47px;
    border-radius: 12px;
  }

  .sticker {
    inset-inline-start: 6px;
    top: -14px;
    font-size: 10.5px;
    padding: 5px 10px;
  }

  .stage {
    padding: 30px 0 48px;
  }

  .stage-head {
    align-items: flex-start;
  }

  .stage-meta {
    width: 100%;
    margin-inline-start: 0;
    justify-content: flex-start;
    gap: 28px;
    padding-top: 6px;
  }

  .stage-meta .ghost-btn {
    margin-inline-start: auto;
  }

  .feature-art {
    width: 240px;
    inset-inline-end: -48px;
    bottom: -58px;
  }

  .grid,
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .card-body {
    padding: 8px;
  }

  .groups {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .feature-wide,
  .feature-strip {
    grid-column: span 1;
  }

  .support-row {
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    padding: 13px 15px;
  }

  .support-head {
    display: none;
  }

  .support code {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  .support-name {
    font-size: 13px;
  }

  .foot-cols {
    gap: 32px;
  }

  .foot-top {
    gap: 36px;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .head-actions .btn {
    display: none;
  }

  .eyebrow {
    font-size: 11.5px;
    padding: 6px 11px;
  }

  .hints {
    gap: 6px;
  }

  .hints-label {
    width: 100%;
  }

  .trust {
    gap: 6px 14px;
    font-size: 11px;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 1;
    justify-content: center;
    padding: 9px 10px;
    font-size: 12px;
  }

  .preview-bar {
    padding: 12px 14px;
  }

  .preview-bar .btn {
    flex: 1;
    justify-content: center;
  }

  .preview-media {
    min-height: 220px;
    max-height: 58vh;
  }

  .preview-media video,
  .preview-media img {
    max-height: 58vh;
  }

  .step {
    padding-inline-start: 56px;
  }

  .step-num {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   English page tweaks
   ========================================================================== */

html[lang="en"] .hero h1 {
  max-width: 1040px;
  font-size: clamp(2.3rem, 5.8vw, 4.75rem);
}

html[lang="en"] .mark {
  transform: rotate(-0.8deg);
}

html[lang="en"] .lede {
  max-width: 660px;
}

html[lang="en"] .seo p {
  line-height: 1.85;
}

html[lang="en"] .foot-word {
  letter-spacing: 0.02em;
  -webkit-text-stroke-width: 1.4px;
}

/* ==========================================================================
   Hindi page tweaks
   ========================================================================== */

html[lang="hi"] .hero h1 {
  max-width: 980px;
  font-size: clamp(2rem, 5vw, 4.05rem);
  line-height: 1.24;
  letter-spacing: 0;
}

html[lang="hi"] .mark {
  transform: rotate(-0.7deg);
  line-height: 1.25;
}

html[lang="hi"] .lede {
  max-width: 680px;
}

html[lang="hi"] .brand-text small {
  font-family: var(--font-hi);
  font-size: 8px;
  letter-spacing: 0.08em;
}

html[lang="hi"] .kicker,
html[lang="hi"] .foot-cols h4 {
  letter-spacing: 0.08em;
}

html[lang="hi"] .section h2,
html[lang="hi"] .faq-intro h2 {
  line-height: 1.32;
  letter-spacing: 0;
}

html[lang="hi"] .foot-word {
  letter-spacing: 0;
  font-size: clamp(54px, 13vw, 180px);
}

/* ==========================================================================
   Legal & guide pages
   ========================================================================== */

.legal-body {
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 10% -10%, #ffffa0 0, transparent 40%),
    radial-gradient(circle at 95% 110%, #f6f2dd 0, transparent 48%);
}

.legal-hero h1,
.legal-card h2,
.legal-card h3 {
  font-family: var(--font-en);
}

.legal-main {
  padding: 58px 0 84px;
}

.legal-hero {
  max-width: 900px;
  margin: 0 auto 30px;
}

.legal-hero .kicker {
  margin-bottom: 14px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--muted);
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 42px 46px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: 8px 8px 0 rgba(11, 11, 11, 0.12);
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin: 26px 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.legal-card p,
.legal-card li {
  max-width: 760px;
  font-size: 14.5px;
  line-height: 1.95;
  color: #3f3d0c;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul,
.legal-card ol {
  margin: 0 0 16px;
  padding-inline-start: 1.3em;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-card a {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 3px;
}

.legal-card strong {
  font-weight: 600;
  color: var(--ink);
}

.legal-card code {
  font-family: var(--font-en);
  font-size: 12px;
  background: #f3f0d9;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}

.legal-note {
  margin: 22px 0 0;
  padding: 15px 17px;
  background: #fffbe0;
  border: 1px solid rgba(11, 11, 11, 0.18);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #3f3d0c;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 900px;
  margin: 24px auto 0;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid rgba(11, 11, 11, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.legal-nav a:hover {
  background: var(--ink);
  color: var(--y);
}

.legal-body .site-foot {
  margin-top: 0;
}

.guide-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.guide-toc a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf2;
  text-decoration: none;
  font-size: 12.5px;
}

.guide-toc a:hover {
  border-color: var(--ink);
}

.guide-section {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.guide-section h2 {
  margin-top: 0;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: #fffdf2;
  box-shadow: 5px 5px 0 rgba(11, 11, 11, 0.1);
}

.contact-card b {
  display: block;
  font-size: 15px;
}

.contact-card span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.contact-card a {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
}

@media (max-width: 720px) {
  .legal-main {
    padding: 36px 0 58px;
  }

  .legal-card {
    padding: 24px 18px;
    border-radius: 16px;
    box-shadow: 5px 5px 0 rgba(11, 11, 11, 0.1);
  }

  .legal-card h2 {
    font-size: 20px;
    margin-top: 28px;
  }

  .legal-card p,
  .legal-card li {
    font-size: 14px;
    line-height: 1.9;
  }

  .guide-toc {
    grid-template-columns: 1fr;
  }

  .foot-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .foot-cols > div {
    min-width: 0;
  }
}

/* ==========================================================================
   MPA content pages: breadcrumbs, guides, contact, FAQ, explore
   ========================================================================== */

html[lang="en"] .legal-body {
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

html[lang="hi"] .legal-body {
  --font-body: var(--font-hi);
}

html[lang="ar"] .legal-body {
  --font-body: var(--font-ar);
}

html[lang="hi"] .legal-hero h1,
html[lang="hi"] .legal-card h2,
html[lang="hi"] .legal-card h3 {
  font-family: var(--font-hi);
}

html[lang="ar"] .legal-hero h1,
html[lang="ar"] .legal-card h2,
html[lang="ar"] .legal-card h3 {
  font-family: var(--font-ar);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 20px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 11, 11, 0.25);
}

.breadcrumbs a:hover {
  background: var(--y);
}

.legal-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b680d;
}

.legal-lede {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: #4b490f;
}

.page-card .page-intro {
  font-size: 15.5px;
  line-height: 1.95;
  color: #35330a;
}

.page-card .legal-lead {
  margin-top: 0;
}

.check-list {
  columns: 2;
  column-gap: 34px;
}

.check-list li {
  break-inside: avoid;
}

.callout {
  max-width: 760px;
  margin: 20px 0 24px;
  padding: 16px 18px;
  background: #fffbe0;
  border: 1px solid rgba(11, 11, 11, 0.16);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.85;
  color: #3f3d0c;
}

.callout.warn {
  background: #fff5c2;
  border-color: rgba(11, 11, 11, 0.28);
}

.callout a {
  font-weight: 600;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.guide-step {
  padding: 20px;
  border: 1.5px solid rgba(11, 11, 11, 0.18);
  border-radius: 16px;
  background: #fffdf0;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.step-num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #777315;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--y);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.guide-step h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-family: inherit;
}

.guide-step p {
  max-width: none;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}

.device-card {
  padding: 18px 20px;
  border: 1px solid rgba(11, 11, 11, 0.16);
  border-radius: 14px;
  background: #fffdf0;
}

.device-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.device-card p {
  max-width: none;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
}

.mini-list {
  margin: 16px 0 24px;
  border-top: 1px solid rgba(11, 11, 11, 0.15);
}

.mini-list details {
  border-bottom: 1px solid rgba(11, 11, 11, 0.15);
}

.mini-list summary {
  padding: 13px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.mini-list summary::-webkit-details-marker {
  display: none;
}

.mini-list p {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.85;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
  gap: 30px;
  align-items: start;
  margin-top: 22px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f5b0d;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid rgba(11, 11, 11, 0.24);
  border-radius: 10px;
  background: #fffefa;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 252, 0, 0.7);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form-status {
  font-size: 12.5px;
  line-height: 1.6;
  color: #5f5b0d;
}

.form-status[data-state="success"] {
  color: #1e5b22;
  font-weight: 600;
}

.form-status[data-state="error"] {
  color: #8a1f1f;
  font-weight: 600;
}

.form-note {
  max-width: 620px;
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-aside {
  padding: 20px;
  border: 1px solid rgba(11, 11, 11, 0.14);
  border-radius: 16px;
  background: #fffdf0;
}

.contact-aside h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.contact-aside h2:not(:first-child) {
  margin-top: 22px;
}

.contact-aside p,
.contact-aside li {
  max-width: none;
  font-size: 13px;
  line-height: 1.8;
}

.contact-aside ul {
  margin: 0;
  padding-inline-start: 1.1em;
}

.mail-link {
  display: inline-block;
  margin: 4px 0 8px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.muted {
  color: var(--muted);
}

.page-card .faq-list {
  margin-top: 8px;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.explore-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(11, 11, 11, 0.12);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.explore-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 rgba(11, 11, 11, 0.16);
  background: #fffdf0;
}

.explore-num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #777315;
}

.explore-card h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.explore-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #3f3d0c;
}

.explore-go {
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .guide-steps,
  .device-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .check-list {
    columns: 1;
  }

  .legal-main {
    padding-top: 38px;
  }

  .legal-card {
    padding: 30px 22px;
  }

  .legal-hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .breadcrumbs {
    margin-bottom: 16px;
  }

  .explore-card {
    padding: 20px;
  }
}
