/* btw.bio - landing, legal and message pages */

/* ---------- Navigation: a floating pill ---------- */
.site-nav { position: sticky; top: 0; z-index: 40; padding: 14px 0 0; }
.nav-inner {
  height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 10px 0 18px;
  border-radius: 18px; border: 1px solid transparent; transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.site-nav.scrolled .nav-inner { background: rgba(10, 10, 14, 0.72); border-color: var(--border); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9); }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.landing main { overflow-x: clip; }
.hero { position: relative; padding: 72px 0 40px; }
.hero-bg { position: absolute; inset: -80px 0 0; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; left: 50%; top: -120px; width: min(1100px, 120vw); height: 640px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.22), rgba(120, 0, 14, 0.12) 55%, transparent 100%); filter: blur(20px); }
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 22px; }
/* "Completely free" note above the headline (links to #pricing). */
/* A plain line above the headline (no pill, no icon). */
.hero-free { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: -6px; color: var(--text); font-size: 14px; font-weight: 600; }
.hero-free:hover .hero-free-more { color: var(--text); }
.hero-free-more { color: var(--muted); font-weight: 500; transition: color 0.15s; }
@media (max-width: 520px) { .hero-free-more { display: none; } }
.hero h1 { font-size: clamp(42px, 7.2vw, 84px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.02; max-width: 15ch; }
.hero h1 > span { display: block; }
/* Gradient text is only painted inside its own box: the extra bottom room keeps the descenders of y, g and p
   from being cut off by the tight line height (the negative margin keeps the layout as it was). */
.hero h1 .grad-text, .demo-name span { padding-bottom: 0.14em; margin-bottom: -0.14em; }
.lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); max-width: 560px; line-height: 1.6; }

/* Claim box: one pill with the host, the input and the button */
.claim { display: grid; justify-items: center; gap: 10px; width: 100%; max-width: 480px; }
.claim-box {
  display: flex; align-items: center; width: 100%; height: 58px; padding: 0 6px 0 18px; border-radius: 16px; cursor: text; min-width: 0;
  border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.claim-box:focus-within { border-color: rgba(var(--accent-rgb), 0.6); background: rgba(255, 255, 255, 0.06); box-shadow: var(--ring); }
.claim-host { color: var(--faint); font-weight: 500; white-space: nowrap; }
.claim-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-weight: 600; font-size: 16px; color: var(--text); }
.claim-btn { height: 44px; padding: 0 18px; border-radius: 12px; flex: none; }
.claim-hint { font-size: 13px; min-height: 1.4em; }
.claim-hint.bad { color: #fca5a5; }

/* ---------- Showcase: real profiles fanned out ---------- */
.stage { position: relative; display: flex; justify-content: center; align-items: center; margin-top: 56px; min-height: 470px; perspective: 1400px; }
.stage::after { content: ""; position: absolute; left: 50%; bottom: -40px; width: 70%; height: 120px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.18), transparent); filter: blur(30px); z-index: -1; pointer-events: none; }
.preview-card {
  position: relative; width: 340px; flex: none; padding: 28px 22px 20px; border-radius: 24px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 90px -34px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), border-color 0.2s, opacity 0.3s;
}
.pc-center { z-index: 2; width: 364px; }
.pc-left, .pc-right { width: 290px; opacity: 0.55; filter: saturate(0.85); }
.pc-left { transform: translateX(60px) rotateY(18deg) scale(0.88); margin-inline-end: -40px; }
.pc-right { transform: translateX(-60px) rotateY(-18deg) scale(0.88); margin-inline-start: -40px; }
.stage:hover .pc-left { transform: translateX(30px) rotateY(12deg) scale(0.9); opacity: 0.75; }
.stage:hover .pc-right { transform: translateX(-30px) rotateY(-12deg) scale(0.9); opacity: 0.75; }
.pc-center:hover { border-color: rgba(var(--accent-rgb), 0.4); }
.pc-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pc-avatar { width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #1d1d24, #0b0b10); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.8); }
.pc-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.pc-avatar-mark { width: 46px; height: 46px; }
.pc-name { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.pc-badges { display: inline-flex; gap: 4px; }
.pc-badge-wrap { display: inline-flex; position: relative; z-index: 2; } /* above the cover link: tooltips */
.pc-badge { width: 18px; height: 18px; }
.b-staff { color: var(--accent); } .b-premium { color: #a855f7; }
.pc-handle-line { margin: 2px 0 0; font-size: 13px; color: var(--faint); }
.pc-desc { color: #e4e4e7; margin: 12px 0 6px; font-size: 14.5px; }
.pc-caret { display: inline-block; width: 2px; height: 1em; margin-inline-start: 2px; vertical-align: -2px; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pc-meta { display: flex; justify-content: center; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.pc-meta .icon { width: 14px; height: 14px; }
.pc-socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 16px 0; color: #fff; }
.pc-social { width: 22px; height: 22px; opacity: 0.9; }
.pc-social-img { border-radius: 6px; object-fit: cover; }
.pc-gap { height: 14px; }
.pc-widget { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); text-align: start; }
.pc-widget-icon { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: rgba(88, 101, 242, 0.18); flex: none; }
.pc-widget-img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; flex: none; }
.pc-widget div { display: grid; gap: 2px; min-width: 0; }
.pc-widget b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* One line: the dot stays next to the text instead of floating between two wrapped lines. */
.pc-online { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--muted); }
.pc-online .dot-on { flex: none; }
.pc-online-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-widget-link { position: relative; z-index: 2; color: inherit; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.pc-widget-link:hover, .pc-widget-link:focus-visible { background: rgba(88, 101, 242, 0.14); border-color: rgba(88, 101, 242, 0.45); }
.pc-join { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(88, 101, 242, 0.22); flex: none; transition: background 0.2s; }
.pc-join .icon { width: 13px; height: 13px; }
.pc-widget-link:hover .pc-join { background: #5865f2; }
.dot-on { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 8px rgba(35, 165, 90, 0.8); }
.pc-views, .pc-handle { position: absolute; bottom: -32px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--faint); text-decoration: none; transition: color 0.2s; }
.pc-views { inset-inline-start: 14px; }
.pc-handle { inset-inline-end: 14px; }
.pc-views .icon, .pc-handle .icon { width: 14px; height: 14px; }
.pc-center:hover .pc-handle { color: var(--text); }

/* ---------- Platform strip ---------- */
.marquee-wrap { padding: 72px 0 0; }
.marquee-title { text-align: center; font-size: 15px; font-weight: 600; margin: 0 0 22px; }
.marquee-title span { color: var(--faint); font-weight: 500; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); white-space: nowrap; }
.marquee-item .icon { width: 17px; height: 17px; color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-block: 1px solid var(--border); }
.stat { display: grid; gap: 2px; padding: 28px 16px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat b { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--faint); font-size: 13.5px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0 0; scroll-margin-top: 90px; }
.section-head { display: grid; gap: 12px; justify-items: center; text-align: center; margin-bottom: 44px; }
.section-head.left { justify-items: start; text-align: start; align-content: start; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; max-width: 18ch; }
.section-head h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 700; }
.section-head p { max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: #ff6b75; }
.eyebrow .icon { width: 15px; height: 15px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.tile { position: relative; display: flex; flex-direction: column; min-height: 260px; overflow: hidden; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--border); transition: border-color 0.2s; }

.tile:hover { border-color: var(--border-2); }
.tile:hover::before { opacity: 1; }
.tile-demo { flex: 1; display: grid; place-items: center; align-content: center; gap: 16px; padding: 28px 24px 8px; }
.tile-copy { padding: 0 24px 22px; display: grid; gap: 6px; }
.tile h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.tile p { color: var(--muted); font-size: 14px; line-height: 1.55; }

.demo-name { font-size: clamp(36px, 5vw, 58px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.demo-name span { display: inline-block; background: linear-gradient(90deg, #fff, #ff5560, #ff1f2e, #fff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: demo-flow 6s linear infinite; }
@keyframes demo-flow { to { background-position: 300% 0; } }
.demo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.demo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.demo-chip .icon { width: 14px; height: 14px; color: #4ade80; }
.f-0 { font-family: var(--font); } .f-1 { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 15px; } .f-2 { font-family: var(--mono); } .f-3 { font-family: var(--font); font-weight: 700; } .f-4 { font-family: Georgia, "Times New Roman", serif; }
.demo-colors { display: flex; gap: 10px; }
.demo-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.12); }
.demo-dot:nth-child(1) { background: #ff1f2e; box-shadow: 0 0 0 3px rgba(255, 31, 46, 0.35); }
.demo-dot:nth-child(2) { background: #f472b6; } .demo-dot:nth-child(3) { background: #a855f7; } .demo-dot:nth-child(4) { background: #3b82f6; }
.demo-dot:nth-child(5) { background: #22c55e; } .demo-dot:nth-child(6) { background: #facc15; } .demo-dot:nth-child(7) { background: #ffffff; }

.tile-widgets .tile-demo { align-content: center; place-items: stretch; }
.tile-widgets .pc-widget { margin: 0; }
.demo-logos { display: flex; justify-content: center; gap: 14px; }
.demo-logo { width: 22px; height: 22px; opacity: 0.9; }

.demo-bars { display: flex; align-items: flex-end; gap: 5px; height: 90px; }
.demo-bars i { width: 7px; height: 100%; border-radius: 4px; background: linear-gradient(180deg, #ff5560, #a3000f); transform-origin: bottom; animation: demo-bar 1.2s ease-in-out infinite alternate; }
.demo-bars i:nth-child(3n) { animation-duration: 0.9s; } .demo-bars i:nth-child(3n + 1) { animation-duration: 1.4s; } .demo-bars i:nth-child(4n) { animation-delay: -0.6s; } .demo-bars i:nth-child(5n + 2) { animation-delay: -0.3s; }
@keyframes demo-bar { from { transform: scaleY(0.18); } to { transform: scaleY(1); } }

.demo-badges { display: grid; grid-template-columns: repeat(4, 40px); gap: 10px; }
.demo-badge { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }

.demo-spark { width: 100%; height: 100px; }

.demo-links { display: grid; grid-template-columns: repeat(6, 46px); gap: 10px; }
.demo-link { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--text); transition: transform 0.2s, background 0.2s; }
.demo-link .icon { width: 21px; height: 21px; }
.tile-links:hover .demo-link:nth-child(odd) { transform: translateY(-3px); }

/* A two-step code being typed (flat, like the dashboard's inputs). */
.demo-code { display: flex; gap: 8px; }
.demo-digit { display: grid; place-items: center; width: 40px; height: 48px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-2); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.demo-digit.now { border-color: rgba(255, 255, 255, 0.35); }
.demo-digit.now::after { content: ""; width: 2px; height: 20px; background: var(--text); animation: demo-caret 1s steps(1) infinite; }
@keyframes demo-caret { 50% { opacity: 0; } }
@media (max-width: 420px) { .demo-digit { width: 34px; height: 42px; font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .demo-digit.now::after { animation: none; } }

/* ---------- Widgets ---------- */

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
.steps li { padding: 28px 28px 8px 0; display: grid; gap: 8px; align-content: start; }
.steps li + li { padding-inline-start: 28px; border-inline-start: 1px solid var(--border); }
.step-n { font-size: 13px; font-weight: 600; color: #ff6b75; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 18px; font-weight: 600; }
.steps p { color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq-wrap .section-head { margin: 0; position: sticky; top: 110px; }
.faq { display: grid; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 500; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq-chevron { flex: none; color: var(--faint); transition: transform 0.25s; }
.faq details[open] .faq-chevron { transform: rotate(45deg); color: var(--text); }
.faq details p { color: var(--muted); padding: 0 32px 20px 0; font-size: 14.5px; line-height: 1.6; }

/* ---------- CTA ---------- */
.cta { padding: 112px 0; }
.cta-inner { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 16px; text-align: center; padding: 64px 24px; border-radius: 28px; border: 1px solid var(--border-2); background: var(--bg-2); }
.cta-inner h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; letter-spacing: -0.04em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: grid; gap: 12px; max-width: 320px; align-content: start; }
.footer-brand p { font-size: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.footer-col b { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.footer-col a { color: var(--muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; }

/* ---------- Legal ---------- */
.legal { padding-bottom: 80px; }
.legal section { padding: 18px 0; border-bottom: 1px solid var(--border); }
.legal h2 { font-size: 18px; margin-bottom: 6px; }
.legal-mail { display: inline-block; margin-top: 8px; font-weight: 600; color: #ff6b75; }
.legal-mail:hover { color: #fff; }

/* ---------- Message pages (404 etc.) ---------- */
/* The site's navigation on top, the text centred in what is left, the code as a large outline behind it. */
.message-body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.message-body > .page-wrap { flex: 1; display: flex; }
.message-page { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; width: 100%; max-width: 620px; margin: auto; padding: 64px 20px 88px; }
.message-mark { position: absolute; top: 50%; left: 50%; translate: -50% -56%; z-index: -1; font-size: clamp(150px, 34vw, 320px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.07); user-select: none; pointer-events: none; }
.message-page .eyebrow { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), 0.3); background: rgba(var(--accent-rgb), 0.08); }
.message-page h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }
.message-page > p { max-width: 460px; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.message-actions { margin-top: 10px; }
[dir="rtl"] .message-page h1 { letter-spacing: 0; }

[dir="rtl"] .hero h1, [dir="rtl"] .section-head h2, [dir="rtl"] .demo-name { letter-spacing: 0; }
[dir="rtl"] .pc-left { transform: translateX(-60px) rotateY(-18deg) scale(0.88); }
[dir="rtl"] .pc-right { transform: translateX(60px) rotateY(18deg) scale(0.88); }

/* Phones and tablets: the text links are hidden, the leaderboard keeps an icon button. */
.nav-lb { display: none; }
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-lb { display: inline-flex; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4 { grid-column: span 2; }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .faq-wrap .section-head { position: static; }
  .pc-left, .pc-right { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .stage { margin-top: 40px; min-height: 0; }
  .preview-card { width: 100%; max-width: 364px; }
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0 6px; border-inline-start: 0; }
  .steps li + li { border-top: 1px solid var(--border); }
  .section { padding-top: 84px; }
  .claim-host { display: none; }
  .demo-links { grid-template-columns: repeat(4, 46px); }
  .footer-cols { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .demo-bars i, .demo-name span, .pc-caret { animation: none; }
}
/* Pages without the landing script never get .scrolled: the pill always has its background there. */
body:not(.landing) .nav-inner { background: rgba(10, 10, 14, 0.72); border-color: var(--border); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }

/* ---------- Hero: the "b" mark scattered faintly behind the headline (positions per .hm-N) ---------- */
.hero-marks { position: absolute; inset: 0; overflow: hidden; color: #ff2d3a; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.hm-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hm { position: absolute; display: block; }
.hm-1 { left: 3%; top: 70px; width: 72px; height: 72px; rotate: -18deg; opacity: 0.11; }
.hm-2 { left: 11%; top: 300px; width: 112px; height: 112px; rotate: 14deg; opacity: 0.08; }
.hm-3 { left: -1.5%; top: 520px; width: 96px; height: 96px; rotate: 28deg; opacity: 0.07; }
.hm-4 { left: 21%; top: 150px; width: 46px; height: 46px; rotate: -8deg; opacity: 0.12; filter: blur(1px); }
.hm-5 { left: 25%; top: 560px; width: 58px; height: 58px; rotate: 20deg; opacity: 0.06; }
.hm-6 { left: 87%; top: 50px; width: 98px; height: 98px; rotate: 22deg; opacity: 0.1; }
.hm-7 { left: 77%; top: 250px; width: 60px; height: 60px; rotate: -16deg; opacity: 0.11; }
.hm-8 { left: 93%; top: 400px; width: 124px; height: 124px; rotate: -12deg; opacity: 0.07; }
.hm-9 { left: 71%; top: 560px; width: 74px; height: 74px; rotate: 10deg; opacity: 0.06; }
.hm-10 { left: 60%; top: 60px; width: 40px; height: 40px; rotate: 30deg; opacity: 0.08; filter: blur(1px); }
.hm-11 { left: 36%; top: 70px; width: 34px; height: 34px; rotate: -26deg; opacity: 0.07; }
.hm-12 { left: 84%; top: 640px; width: 52px; height: 52px; rotate: -6deg; opacity: 0.05; filter: blur(1.5px); }
@media (max-width: 760px) {
  .hm-2, .hm-5, .hm-9, .hm-10, .hm-11, .hm-12 { display: none; }
  .hm-1 { left: -4%; top: 90px; width: 58px; height: 58px; }
  .hm-3 { top: 470px; width: 70px; height: 70px; }
  .hm-4 { left: 16%; top: 30px; }
  .hm-6 { left: 82%; top: 80px; width: 70px; height: 70px; }
  .hm-7 { left: 86%; top: 330px; width: 48px; height: 48px; }
  .hm-8 { left: 88%; top: 520px; width: 84px; height: 84px; }
}

/* ---------- Widgets: headline in the middle, example cards around it (static, slightly tilted) ---------- */
.wall { position: relative; min-height: 660px; }
.wall-head { position: absolute; left: 50%; top: 180px; translate: -50% 0; width: min(560px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; z-index: 2; }
.wall-head h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; }
.wall-dim { display: block; color: #6f6f7a; }
.wall-head p { max-width: 520px; }
.wall-cards { position: absolute; inset: 0; }
.wcard { position: absolute; display: flex; align-items: center; gap: 14px; width: 290px; padding: 16px 18px; border-radius: 22px; background: #1c1c21; border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.9); text-align: start; }
.wc-ico { position: relative; flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; background: #2a2a31; }
.wc-ico.round { border-radius: 50%; }
.wc-ico .icon, .wc-ico svg { width: 26px; height: 26px; }
.wc-ico .wc-bmark { width: 30px; height: 30px; }
.wc-blurple { background: linear-gradient(135deg, #7c83ff, #3b2fb8); }
.wc-rose { background: linear-gradient(135deg, #ff8a9a, #b0123a); }
.wc-insta { background: linear-gradient(135deg, #feda75, #d62976 55%, #4f5bd5); }
.wc-kick { background: linear-gradient(135deg, #53fc19, #157a00); color: #0b0b0f; }
.wc-slate { background: #2a2a31; }
.wc-grass { background: #24361d; color: #7ee35a; }
.wc-ink { background: #0b0b0f; border: 1px solid rgba(255, 255, 255, 0.08); }
.wc-body { min-width: 0; display: grid; gap: 3px; font-size: 13.5px; color: #a1a1ad; }
.wc-body > b { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; }
.wc-act { display: flex; align-items: center; gap: 6px; color: #d4d4dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-act b { color: #fff; font-weight: 700; }
.wc-act .icon { width: 15px; height: 15px; flex: none; }
.wc-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-meta { display: grid; gap: 1px; }
.wc-meta b { color: #fff; font-weight: 700; }
.wc-ok { width: 15px; height: 15px; flex: none; }
.wc-dot { position: absolute; right: -2px; bottom: -2px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid #1c1c21; background: #23a55a; }
.wc-dot-dnd { background: #f23f43; }
.wc-dot-live { background: #53fc19; }
.wc-dot-inline { position: static; display: inline-block; width: 9px; height: 9px; border: 0; vertical-align: 1px; }
.wc-live { padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; color: #0b0b0f; background: #53fc19; }
.wc-bar { display: block; height: 4px; margin-top: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.wc-bar i { display: block; width: 58%; height: 100%; border-radius: inherit; background: #fff; }
/* real member widgets */
a.wcard { color: inherit; text-decoration: none; transition: border-color 0.2s; }
a.wcard:hover { border-color: rgba(255, 255, 255, 0.16); }
.wc-real .wc-body { padding-inline-end: 16px; }
.wc-img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.wc-t { overflow: hidden; text-overflow: ellipsis; }
.wc-act-img { width: 15px; height: 15px; flex: none; border-radius: 4px; object-fit: cover; }
.wc-brand { position: absolute; top: 12px; inset-inline-end: 14px; display: grid; opacity: 0.9; }
.wc-brand .icon { width: 16px; height: 16px; }
.wc-dot-idle { background: #f0b232; }
.wc-dot-off { background: #80848e; }
/* positions (desktop) */
.wc-1 { left: 2%; top: 0; rotate: -3deg; }
.wc-2 { right: 2%; top: -14px; rotate: 3deg; }
.wc-3 { left: -1%; top: 230px; rotate: 2deg; }
.wc-4 { right: -1%; top: 240px; rotate: -2deg; }
.wc-5 { left: 8%; top: 470px; rotate: 3deg; }
.wc-6 { left: 50%; translate: -50% 0; top: 500px; rotate: 2deg; }
.wc-7 { right: 8%; top: 470px; rotate: -3deg; }
/* tablet + phone: headline first, cards in a grid below */
@media (max-width: 1060px) {
  .wall { min-height: 0; }
  .wall-head { position: static; translate: none; margin: 0 auto 36px; }
  .wall-cards { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .wcard { position: relative; inset: auto; width: auto; translate: none; rotate: none; }
  .wcard:nth-child(odd) { rotate: -1.2deg; }
  .wcard:nth-child(even) { rotate: 1.2deg; }
}
@media (max-width: 600px) {
  .wall-cards { grid-template-columns: 1fr; }
  .wcard:nth-child(n + 6) { display: none; }
}

/* Narrow phones: the leaderboard icon, the language menu and both buttons still fit on one line. */
@media (max-width: 420px) {
  .nav-actions { gap: 2px; }
  .nav-actions .lang-menu > summary { padding: 0 6px; }
  .nav-actions .lang-menu > summary span { display: none; }
  .nav-actions .btn-sm:not(.btn-icon) { padding-inline: 8px; font-size: 12.5px; }
  /* Longer labels (Arabic) still fit: less space around the bar. */
  .nav-inner { gap: 8px; padding-inline: 12px 6px; }
}

/* Pricing (views/pricing.ts) */
.pricing .section-head { margin-bottom: 28px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 18px; border: 1px solid var(--border); background: var(--panel); }
.plan-main { border-color: rgba(var(--accent-rgb), 0.55); }
.plan-head { display: flex; align-items: center; gap: 10px; }
.plan-head h2 { margin: 0; font-size: 18px; }
/* Same tile as the dashboard shop's item icons (dashboard.css .shop-icon), so a product looks the same everywhere. */
.plan-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.plan-icon .icon { width: 26px; height: 26px; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.plan-price b { font-size: 32px; letter-spacing: -0.02em; }
.plan-price span { color: var(--faint); font-size: 13px; }
.plan > .muted { margin: 0; }
.plan-features { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; flex: 1; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.plan-features .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--ok-text, #86efac); }
.plan-cta { justify-content: center; }
.pricing-note { margin: 28px 0 56px; text-align: center; font-size: 13px; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* Donations (views/pricing.ts) */
.donate-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--panel); }
.donate-box p { margin: 4px 0 0; }
.donate-box .btn { flex: none; }
@media (max-width: 600px) { .donate-box { flex-direction: column; align-items: stretch; text-align: center; } }
.plan-cta[aria-disabled="true"] { opacity: 0.6; cursor: default; pointer-events: none; }

/* Home page: btw.bio is free (views/pricing.ts freeSection) */
.free .section-head { margin-bottom: 28px; }
.free-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.free-card, .support-card { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 18px; border: 1px solid var(--border); background: var(--panel); min-width: 0; }
.free-card { border-color: rgba(var(--accent-rgb), 0.45); }
.free-price { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.free-price b { font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.free-price span { color: var(--muted); font-size: 15px; }
.free-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; flex: none; align-content: start; }
.free-card .btn { align-self: flex-start; margin-top: auto; }
.support-card h3 { margin: 0; font-size: 17px; }
.support-card p { margin: 4px 0 0; font-size: 14px; }
.support-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.support-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); }
.support-item > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.support-item > div b { font-size: 14.5px; }
.support-item > div span { font-size: 12.5px; }
.support-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.support-icon .icon { width: 22px; height: 22px; }
.support-price { flex: none; display: grid; justify-items: end; gap: 1px; }
.support-price b { font-size: 16px; font-variant-numeric: tabular-nums; }
.support-price span { font-size: 11.5px; color: var(--faint); }
.support-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.support-more { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.support-more:hover { color: var(--text); }
.support-more .icon { width: 14px; height: 14px; }

/* The first supporters (views/pricing.ts donorsList) */
.supporters { margin-top: 16px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--panel); display: grid; gap: 14px; }
.supporters-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.supporters-head h3 { margin: 0; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.supporters-head h3 .icon { width: 17px; height: 17px; color: #f43f5e; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.podium li { min-width: 0; }
.podium-in { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); color: var(--text); }
a.podium-in:hover { border-color: var(--border-2); background: rgba(255, 255, 255, 0.03); }
.donor-rank { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #0b0b0d; background: var(--place, var(--faint)); }
.podium-1 { --place: #f5c542; }
.podium-2 { --place: #c9ced6; }
.podium-3 { --place: #d08a4e; }
.donor-face { flex: none; width: 44px; height: 44px; border-radius: 999px; object-fit: cover; background: var(--surface-overlay, #1a1a1d); }
.donor-initial { display: grid; place-items: center; font-weight: 700; font-size: 17px; color: var(--muted); border: 1px solid var(--border); }
.donor-who { flex: 1; min-width: 0; display: grid; gap: 1px; }
.donor-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donor-handle { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donor-total { flex: none; font-variant-numeric: tabular-nums; }
.supporters-empty { margin: 0; padding: 16px; border-radius: 14px; border: 1px dashed var(--border); text-align: center; }
@media (max-width: 860px) {
  .free-grid { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .free-card, .support-card { padding: 20px; }
  .free-features { grid-template-columns: 1fr; }
  .free-card .btn { align-self: stretch; justify-content: center; }
  .support-actions .btn { flex: 1; justify-content: center; }
}

/* Real pages under the hero (views/landing.ts pageRows): the profiles' own embed cards in two sliding rows. */
.hero { padding-bottom: 24px; }
.hero:has(.pages) { padding-top: clamp(28px, 6vh, 64px); }
.pages { display: grid; gap: 14px; margin-top: clamp(28px, 5vh, 48px); }
.pages-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pages-track { display: flex; width: max-content; animation: pages-slide 90s linear infinite; }
.pages-row.rev .pages-track { animation-direction: reverse; }
.pages-row:hover .pages-track, .pages-row:focus-within .pages-track { animation-play-state: paused; }
.pages-set { display: flex; gap: 12px; padding-inline-end: 12px; }
.page-card { flex: none; display: block; width: clamp(200px, 17vw, 250px); aspect-ratio: 1200 / 630; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s; }
.page-card:hover, .page-card:focus-visible { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-3px); }
.page-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pages-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.pages-note a { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.pages-note a:hover { text-decoration: underline; }
@keyframes pages-slide { to { transform: translateX(-50%); } }
[dir="rtl"] .pages-track { animation-name: pages-slide-rtl; }
@keyframes pages-slide-rtl { to { transform: translateX(50%); } }
@media (max-width: 600px) { .page-card { width: 190px; } .pages { gap: 10px; } .pages-set { gap: 10px; padding-inline-end: 10px; } }
@media (prefers-reduced-motion: reduce) { .pages-track { animation: none; } .pages-row { overflow-x: auto; } .pages-set[aria-hidden] { display: none; } }

/* Leaderboard and pricing: the red b marks behind the page heading, like the home page hero. */
.page-wrap { position: relative; isolation: isolate; }
.page-wrap > .hero-bg { inset: 0; }
.plan { background: var(--bg-2); }
.pricing-faq { margin-top: 56px; display: grid; gap: 18px; }
.pricing-faq h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

/* Legal pages: tabs between Terms, Privacy and Refund. */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.legal-tab { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); font-size: 13.5px; font-weight: 600; transition: color 0.15s, border-color 0.15s; }
.legal-tab:hover { color: var(--text); border-color: var(--border-3); }
.legal-tab[aria-current="page"] { background: #fff; border-color: #fff; color: #0b0b10; }

/* Accepted payment marks (views/layout.ts payMethods). */
.pay-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pay-methods img { display: block; width: 38px; height: 24px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pay-center { justify-content: center; margin: 22px auto 0; }
.footer-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
